Version 3.0.0
Warning: This release (3.0.0) contains some breaking changes in API.
Warning: In this release (3.0.0) we've reject support of Python 3.5.
Added:
- Added provider
Choice()
- Added method
formatted_time()
forDatetime()
provider - Added method
formatted_date()
forDatetime()
provider - Added method
formatted_datetime()
forDatetime()
provider - Added support of timezones (optional) for
Datetime().datetime()
- Added method to bulk create datetime objects:
Datetime().bulk_create_datetimes()
- Added
kpp
forRussiaSpecProvider
- Added
PolandSpecProvider
builtin data provider - Added context manager to temporarily overriding locale -
BaseDataProvider.override_locale()
- Added method
token_urlsafe()
forCryptographic
provider - Added 6k+ username words
Updated:
- Updated documentation
- Updated data for
pl
andfr
- Updated SNILS algorithm for
RussiaSpecProvider
- Updated method
Datetime().time()
to return onlydatetime.time
object - Updated method
Datetime().date()
to return onlydatetime.date
object - Completely annotated all functions
- Locale independent providers inherit
BaseProvider
instead of
BaseDataProvider
(it's mean that locale independent providers does
not support parameterlocale
anymore) - Now you can add to Generic only providers which are subclasses of
BaseProvider
to ensure a single instance ofrandom.Random()
for
all providers
Renamed:
- Renamed provider
ClothingSizes
toClothing
, so now it can
contain any data related to clothing, not sizes only - Renamed
Science().dna()
toScience().dna_sequence()
- Renamed
Science().rna()
toScience().rna_sequence()
- Renamed module
helpers.py
torandom.py
- Renamed module
config.py
tolocales.py
- Renamed module
utils.py
toshortcuts.py
- Renamed
Cryptographic().bytes()
toCryptographic.token_bytes()
- Renamed
Cryptographic().token()
toCryptographic.token_hex()
Removed:
- Removed deprecated argument
fmt
forDatetime().date()
, useDatetime().formatted_date()
instead - Removed deprecated argument
fmt
forDatetime().time()
, useDatetime().formatted_time()
instead - Removed deprecated argument
humanize
forDatetime().datetime()
, useDatetime().formatted_datetime()
instead - Removed deprecated method
Science.scientific_article()
- Removed deprecated providers
Games
- Removed deprecated method
Structure().json()
, useschema.Schema()
andschema.Field
instead - Removed deprecated and useless method:
Development().backend()
- Removed deprecated and useless method:
Development().frontend()
- Removed deprecated and useless method:
Development().version_control_system()
- Removed deprecated and useless method:
Development().container()
- Removed deprecated and useless method:
Development().database()