Skip to main content

Polish spelled-out numbers and amounts.

Project description

slownie

Polish spelled-out numbers and amounts.

Overview

slownie(value):
slownie_zl(amount):
slownie_zl100gr(amount):

Provides routines to spell out numbers and amounts in Polish.

PyPI record.

Documentation.

Usage

>>> from slownie import *
>>> slownie(12892)
dwanaście tysięcy osiemset dziewięćdziesiąt dwa
>>> slownie_zl(123.34)
sto dwadzieścia trzy złote trzydzieści cztery grosze
>>> slownie_zl100gr(123.34)
sto dwadzieścia trzy złote 34/100

Installation

Prerequisites:

To install run:

python -m pip install --upgrade slownie

Development

Prerequisites:

  • Development is strictly based on tox. To install it run:

    python -m pip install --upgrade tox

Visit Development page.

Installation from sources:

clone the sources:

git clone https://github.com/karpierz/slownie.git slownie

and run:

python -m pip install ./slownie

or on development mode:

python -m pip install --editable ./slownie

License

Copyright (c) 2016-2025 Adam Karpierz
Licensed under the zlib/libpng License
Please refer to the accompanying LICENSE file.

Authors

Changelog

1.4.4 (2025-06-11)

  • Setup (dependencies) update.

1.4.3 (2025-05-15)

  • The distribution is now created using ‘build’ instead of ‘setuptools’.

  • Setup (dependencies) update (due to regressions in tox and setuptools).

1.4.1 (2025-05-04)

  • Setup (dependencies) update.

1.4.0 (2025-04-28)

  • Add support for Python 3.14

  • Drop support for Python 3.9 (due to compatibility issues).

  • Update readthedocs’s python to version 3.13

  • Update tox’s base_python to version 3.13

  • Setup (dependencies) update.

1.3.11 (2025-03-20)

  • Add support for PyPy 3.11

  • Drop support for PyPy 3.9

  • Setup (dependencies) update.

1.3.8 (2025-03-15)

  • Setup (dependencies) update.

1.3.7 (2025-02-14)

  • Setup (dependencies) update.

1.3.6 (2025-01-25)

  • Setup (dependencies) update.

1.3.5 (2025-01-20)

  • Copyright year update.

  • Setup (dependencies) update.

1.3.4 (2024-12-13)

  • Source distribution (*.tar.gz now) is compliant with PEP-0625.

  • Setup (dependencies) update.

1.3.3 (2024-11-13)

  • More unittests.

  • 100% code linting.

  • 100% code coverage.

  • Tox configuration is now in native (toml) format.

  • Setup (dependencies) update.

1.3.2 (2024-10-30)

  • Drop support for Python 3.8

  • Setup (dependencies) update.

1.2.4 (2024-08-13)

  • Add support for Python 3.13

  • Setup (dependencies) update.

1.2.3 (2024-01-26)

  • Setup update (now based on tox >= 4.0).

  • Cleanup.

1.2.0 (2023-12-15)

  • Added ‘conjunction’ parameter for the slownie_zl() function.
    Thanks to Tomasz Pichlinski (@tomaszpichlinskiapz).
  • The supported parts of the amount have been extended up to
    ‘duodecyliard’.
  • Add support for Python 3.12

  • Drop support for Python 3.7

  • Add support for PyPy 3.9 and 3.10

  • Copyright year update.

  • Tox configuration has been moved to pyproject.toml

1.1.3 (2022-09-02)

  • Add support for Python 3.10 and 3.11

  • Drop support for Python 3.6

  • Copyright year update.

  • Setup update (currently based mainly on pyproject.toml).

1.1.2 (2020-10-17)

  • Add support for Python 3.8 and 3.9

  • Drop support for Python 3.5

  • Drop support for Python 2

  • Fix a bug in slownie_zl().

  • Add unittests.

  • General update and cleanup.

  • Fixed docs setup.

1.0.0rc1 (2018-11-21)

  • Fix a bug in slownie_zl() and slownie_zl100gr()

  • Code improvement according to the suggestion and the patch
    from Michal Borkowski (https://github.com/wielkiborsuk).
    Thank you very much, Michal!

1.0.0b5 (2018-11-08)

  • Drop support for Python 2.6 and 3.0-3.3

  • Update required setuptools version.

1.0.0b4 (2018-05-08)

  • Update required setuptools version.

  • Improve and simplify setup and packaging.

1.0.0b2 (2018-01-28)

  • Fix a bug and inconsistencies in tox.ini

  • Update of README.rst.

  • Update required Sphinx version.

  • Update doc Sphinx configuration files.

0.9.5b1 (2017-11-18)

  • Add slownie_zl and slownie_zl100gr.

  • Setup improvements.

  • Other minor improvements.

0.9.0b0 (2017-04-03)

  • First useful release.

0.1.0 (2016-09-23)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slownie-1.4.4.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

slownie-1.4.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file slownie-1.4.4.tar.gz.

File metadata

  • Download URL: slownie-1.4.4.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for slownie-1.4.4.tar.gz
Algorithm Hash digest
SHA256 72034723c7ddc1bb0a4a1d10ec213bc688531a771a5b664e14b6ef39c76a23ee
MD5 07b5cb613435afa8863091abf47ef737
BLAKE2b-256 35147e35ac0b07fb637afb6a436feba0d07c7844c6422203a361f38ec52b2dce

See more details on using hashes here.

File details

Details for the file slownie-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: slownie-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for slownie-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7ba559e7f46bf8983e26570b47b7fa0472a8a7d9216744c5a204883011eb86
MD5 44af86e8ba9e2f4a174713625dfa1185
BLAKE2b-256 d9afb356046a8c17f1dedceb57a730b92e1ff06300045af4b217481e8b222975

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page