Comments (8)
I'm going to change this behavior in upcoming release, to make country()
return random country each time.
from mimesis.
You have to pass allow_random=True
, like this:
address.country(allow_random=True)
See: https://mimesis.name/en/master/api.html#mimesis.Address.country
from mimesis.
I will release 8.0.0
later this month.
from mimesis.
Great, thank you!
from mimesis.
I've fixed this behavior.
There are two methods now:
country()
always returns random country
default_country()
always returns country associated with current locale i.e United States
for en
, Россия
for ru
from mimesis.
I've fixed this one in 8.0.0 which is already available on PyPi, btw.
from mimesis.
Yes, it was even available in Conda Forge on the same day. Tested and loving it. Thanks for your blazing-fast resolution!
from mimesis.
@rgoubet You're welcome! Thank you for your interest!
from mimesis.
Related Issues (20)
- Reseeding doesn't return consistent data for some providers HOT 7
- NSFW words generated by `Text.words` in `en` HOT 3
- Improve the quality of tests
- 8.0.0: pytest is failing in 34 units HOT 8
- Schema Generation from JSON HOT 3
- 9.0.0: sphinx warnings `reference target not found`
- Cache heavy providers when the same parameters are passed.
- Refactor tests to eliminate unnecessary repetitions
- Wrong translation in Swedish HOT 1
- finance.company() presented inconsistently HOT 1
- Use better font for docs
- Type hint the providers in the `Generic` class HOT 3
- Swedish names contains illegal letter
- Broken entry for Swedish surname
- Translate documentation into Russian. HOT 3
- Add Arabic language support HOT 6
- Sunsetting support for older versions of Python. HOT 5
- Add Hindi language support HOT 1
- Add support for additional locales
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimesis.