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.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: money2number-0.7.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

File hashes

Hashes for money2number-0.7.tar.gz
Algorithm Hash digest
SHA256 d297f06a2e0dd07eb207f673d903bad4ffb59baa939e6164d24b22c696b34895
MD5 654bff28a04853f4d3fd3cd594da5a3d
BLAKE2b-256 f262e217829a205a7d2a3ac56bb23def3b2c1d139db60495ae1fd22669c10067

See more details on using hashes here.

File details

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

File metadata

  • Download URL: money2number-0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

File hashes

Hashes for money2number-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0e05c605975ebfe7a8aee19ea6e97a88028b6d45954633bbbb16e1451a7ae0e1
MD5 2a38785edb14a00c43dc4fc4e73172d1
BLAKE2b-256 d51c98761a9f99ee4c3b843ae51a74246e79aa86e4839348f555f5fda6e2aa62

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