Stockholm

Latest version: v0.5.7

Safety actively analyzes 688917 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.3.2

* Updated README with examples about `units` and `nanos` properties.
* Added `get_currency(ticker)` method available directly from root package, to make it importable with `from stockholm import get_currency`.

---

0.3.1

* Adds method `to_sub_units()` on monetary amounts which for most currencies multiplies the value with 100, but for example for `stockholm.currency.JPY` wouldn't change the value at all.
* Adds method `to_currency(currency)` (and shorted `to(currency)`) on monetary amounts which just changes the currency of the monetary amount without any kind of changes to the amount itself.

---

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`

---

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.