Version 5.0.0
Note: This release is still under active development.
Warning: This release contains some breaking changes in API.
Renamed:
- Rename
enums.UnitNametoenums.MeasureUnit - Rename
enums.PrefixSigntoenums.MetricPrefixSign - Rename
Business()toFinance()
Fixed:
- Fix inheritance issues for
Generic, now it inheritsBaseProviderinstead ofBaseDataProvider - Fix locale-independent provider to make them accepts keyword-only arguments
- Fix DenmarkSpecProvider CPR to generate valid CPR numbers.
- Fix
.cvv()to make it return string - Fix
.cid()to make it return string - Fix
.price()ofFinanceto make it return float.
Added:
- Added class
Localetomimesis.locales - Added
measure_unit()and.metric_prefix()methods forScience - Added methods
.iterator()and.loop()forschema.Schema - Added methods
.slug()andip_v4_with_port()forInternet() - Added
incremental()method forNumbers() - Added methods
.stock_ticker(),.stock_name()and.stock_exchange()forFinance() - Added
BinaryFiledata provider which provides binary data files, such as.mp3,.mp4,.png, etc.
Removed:
- Removed invalid names and surnames from
person.jsonforrulocale - Removed data provider
UnitSystem(), use insteadScience() - Removed data provider
Structure(), use insteadschema.Schema - Removed
GermanySpecProvider - Removed method
copyright()ofFinance() - Removed method
network_protocol()ofInternet() - Removed params
with_portandport_rangefor.ip_v4()ofInternet(). Use.ip_v4_with_port()instead - Removed method
.sexual_orientation(),.social_media_profile()and.avatar()ofPerson() - Removed a bunch of useless custom exceptions and replaced them with
FieldError - Removed completely useless
chemical_elementandatomic_numbermethods ofSciencedata provider and made it locale-independent