Skip to main content

Convert a single money related term in a sentence in any format to float.

Project description

This library will convert any money related term in a string to numbers

from money2number import m2n
m2n.m2n.process_money_tags('here is 120 million dollars '))

will return >>> 120000000.0

Limitations

  • Only one money related term in a string can be identified.
  • Examples of inputs:
    2.7 million
    12 Billion
    five hundred and seventy four million 
    

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

money2number-0.6.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

money2number-0.6-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file money2number-0.6.tar.gz.

File metadata

  • Download URL: money2number-0.6.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for money2number-0.6.tar.gz
Algorithm Hash digest
SHA256 3ac10485f139600dba0dbc971c1825d82104f09a248d03d83881005136b7d7e5
MD5 e33c15298df2f3462ada5246ac5711cb
BLAKE2b-256 bc03c0dea66c90e2266801101bcbf004440417bdf6a1cb3a8850b4680b2a77ad

See more details on using hashes here.

File details

Details for the file money2number-0.6-py3-none-any.whl.

File metadata

  • Download URL: money2number-0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.1

File hashes

Hashes for money2number-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d69925639a1f1a8103883907970fa1b8d60e11177e4e4a98abec0581004bd60b
MD5 5dc546e6bc722dda241e1a63be4c8f42
BLAKE2b-256 e7ccf5c1a9ae05202083b6a87c9dbad964b3526aa33e4dde9775bcdba4345b16

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