Skip to main content

numerize_denumerize

A python package to numerize and denumerize numbers.

Installation

pip3 install numerize_denumerize

Usage

from numerize_denumerize import numerize, denumerize
print(numerize.numerize(10000000, decimal_points=2))  # '10.00M'
print(denumerize.denumerize('10.00M'))  # 10000000

Methods

numerize(number, decimal_points=2)

This method takes a number and returns a string in the format of x.xxM or x.xxK or x.xxB based on the number.

denumerize(number_string)

This method takes a string in the format of x.xxM or x.xxK or x.xxB and returns the actual number.

Note

Please make sure you provide correct format while calling denumerize method.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for numerize-denumerize 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numerize-denumerize 0.0.6
File Size Uploaded Provenance Actions
numerize_denumerize-0.0.6.tar.gz 4.0 kB Without provenance Details for numerize_denumerize-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numerize-denumerize 0.0.6
File Interpreter ABI Platform Actions
numerize_denumerize-0.0.6-py3-none-any.whl Python 3 none any Details for numerize_denumerize-0.0.6-py3-none-any.whl

Total release size: 7.5 kB

Release files / numerize_denumerize-0.0.6.tar.gz

Download URL numerize_denumerize-0.0.6.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
137f22d8ba3c08d95ae13e8eb320e05ccb41e1c17b8c864695c89d3496c9050d
BLAKE2b-256 checksum
How to use checksums
6d28f20a110b881ba5a48145f077ac2e34341fc3d6d9cbd400e765d081c87679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / numerize_denumerize-0.0.6-py3-none-any.whl

Download URL numerize_denumerize-0.0.6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1310a2019e88eab9992aa039d28938217ca91e1c02f82579753cfaf48b446800
BLAKE2b-256 checksum
How to use checksums
db87ab6e851f513c8e8f861e4fadedbfba3a858236e7f29383ef13e4f5327c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for numerize-denumerize 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page