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.

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-2020 Adam Karpierz
Licensed under the zlib/libpng License
Please refer to the accompanying LICENSE file.

Authors

Changelog

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.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


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.1.2.zip (16.6 kB view details)

Uploaded Source

File details

Details for the file slownie-1.1.2.zip.

File metadata

  • Download URL: slownie-1.1.2.zip
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for slownie-1.1.2.zip
Algorithm Hash digest
SHA256 e996fc524d78b3980544313152049959f063e239ad7727cec654e0c4790ba9bb
MD5 ac2ba873fed173189beb0c509a98fa6f
BLAKE2b-256 55df8a59230e9f04777d1da1b492489c8b481e86ed68d84e9cdeec1c8ef625d3

See more details on using hashes here.

Supported by

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