Releases: kalaspuff/stockholm
Releases · kalaspuff/stockholm
0.3.0
Money.from_sub_units(amount, currency)
method is a classmethod which does the same thing as Money(amount, currency, from_sub_units=True)
. For example a 100
subunits of stockholm.Currency.SEK
would result in a monetary amount of 1.00 SEK
, while 100 subunits of stockholm.Currency.JPY
would result in 100 JPY
.
0.2.2
- Replaces
is_cents
with from_sub_units
which is aware of number of digits in a BaseCurrency
.
0.2.1
- Added support for custom currency types with non-uppercase ticker symbols.
0.2.0
- Restructured currency to also be able to fetch currencies directly on
stockholm.Currency
0.1.1
- Added
get_currency(currency)
method to stockholm.currency
which returns a currency type that includes metadata about formatting and the default minimum decimals digits, etc.
0.1.0
- First release with support for monetary amounts using currency types.
- All ISO 4217 currency types available in
stockholm.currency
. All currencies uses official values for the default minimum decimal digit count.