Polish spelled-out numbers and amounts.
Project description
slownie
Polish spelled-out numbers and amounts.
Overview
Provides routines to spell out numbers and amounts in Polish.
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:
Python 3.7 or higher
3.7 is a primary test environment.
pip and setuptools
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-2022 Adam KarpierzLicensed under the zlib/libpng LicensePlease refer to the accompanying LICENSE file.
Changelog
1.1.3 (2022-09-02)
Add support for Python 3.10 and 3.11
Add support for PyPy 3.7, 3.8 and 3.9
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 patchfrom 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.0b3 (2018-02-26)
Improve and simplify setup and packaging.
1.0.0b2 (2018-01-28)
Fix a bug and inconsistencies in tox.ini
Update of README.rst.
0.9.7b2 (2018-01-24)
Little update of README.rst
0.9.7b1 (2018-01-24)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file slownie-1.1.3.zip
.
File metadata
- Download URL: slownie-1.1.3.zip
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c43811f4fddefb061c7379dcf36ca146b9d99a174b9991b4e2df1f9df417d51 |
|
MD5 | df39bac433f6b8929be4dada230b4d29 |
|
BLAKE2b-256 | 86e6983e95ecc2d4e14fd0a639762c90d058a736c734a3e1514edfeadca51e6d |
File details
Details for the file slownie-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: slownie-1.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 210ad979b0ed8cc6fa75ad726ae09d3d6760ed6abcbb9b761d632c322d03c23f |
|
MD5 | 5920eb6d95a90c612d349f22a8e460e1 |
|
BLAKE2b-256 | 4ad985ac725bb894ebb35600da3663d13714e0d217366ccea88612b5ce015323 |