Py-dutch-numerals

Latest version: v1.0.3

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

Scan your dependencies

1.0.3

**Full Changelog**: https://github.com/grootstebozewolf/py_dutch_numerals/compare/v1.0.2...v1.0.3

1.0.2

**Full Changelog**: https://github.com/grootstebozewolf/py_dutch_numerals/compare/v1.0.1...v1.0.2

1.0.1

**Full Changelog**: https://github.com/grootstebozewolf/py_dutch_numerals/compare/v1.0.0...v1.0.1

1.0.0

I'm excited to announce the initial release of py_dutch_numerals, a Python package for parsing and converting Dutch written numbers into their numeric equivalents.

Features

- Parse Dutch written numbers and convert them to integers
- Support for numbers up to one million
- Handle compound numbers (e.g., "eenentwintig" for 21)
- Robust parsing using ANTLR4
- Easy-to-use API with a single function `tel()`

Installation

Install py_dutch_numerals using pip:


pip install py_dutch_numerals


Usage

Here's a quick example of how to use py_dutch_numerals:

python
from py_dutch_numerals import tel

result = tel("driehonderdvijfenveertig")
print(result) Output: 345

result = tel("een miljoen tweehonderdduizend")
print(result) Output: 1200000


Documentation

For more detailed information, please refer to the [GitHub repository](https://github.com/grootstebozewolf/py_dutch_numerals).

Acknowledgements

I'd like to thank the ANTLR4 project for providing the parsing tools that make this package possible.

Feedback

I welcome your feedback! Please feel free to open issues on the [GitHub repository](https://github.com/grootstebozewolf/py_dutch_numerals) if you encounter any problems or have suggestions for improvements.

Thank you for using py_dutch_numerals!

- Jeroen Bloemscheer

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.