Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@lk-geimfari lk-geimfari released this 15 Dec 15:49
· 1146 commits to master since this release

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() for Datetime() provider
  • Added method formatted_date() for Datetime() provider
  • Added method formatted_datetime() for Datetime() provider
  • Added support of timezones (optional) for Datetime().datetime()
  • Added method to bulk create datetime objects:
    Datetime().bulk_create_datetimes()
  • Added kpp for RussiaSpecProvider
  • Added PolandSpecProvider builtin data provider
  • Added context manager to temporarily overriding locale -
    BaseDataProvider.override_locale()
  • Added method token_urlsafe() for Cryptographic provider
  • Added 6k+ username words

Updated:

  • Updated documentation
  • Updated data for pl and fr
  • Updated SNILS algorithm for RussiaSpecProvider
  • Updated method Datetime().time() to return only datetime.time
    object
  • Updated method Datetime().date() to return only datetime.date
    object
  • Completely annotated all functions
  • Locale independent providers inherit BaseProvider instead of
    BaseDataProvider (it's mean that locale independent providers does
    not support parameter locale anymore)
  • Now you can add to Generic only providers which are subclasses of
    BaseProvider to ensure a single instance of random.Random() for
    all providers

Renamed:

  • Renamed provider ClothingSizes to Clothing, so now it can
    contain any data related to clothing, not sizes only
  • Renamed Science().dna() to Science().dna_sequence()
  • Renamed Science().rna() to Science().rna_sequence()
  • Renamed module helpers.py to random.py
  • Renamed module config.py to locales.py
  • Renamed module utils.py to shortcuts.py
  • Renamed Cryptographic().bytes() to Cryptographic.token_bytes()
  • Renamed Cryptographic().token() to Cryptographic.token_hex()

Removed:

  • Removed deprecated argument fmt for Datetime().date(), use Datetime().formatted_date() instead
  • Removed deprecated argument fmt for Datetime().time(), use Datetime().formatted_time() instead
  • Removed deprecated argument humanize for Datetime().datetime(), use Datetime().formatted_datetime() instead
  • Removed deprecated method Science.scientific_article()
  • Removed deprecated providers Games
  • Removed deprecated method Structure().json(), use schema.Schema() and schema.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()