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.MoneyToNumberz.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
Release history Release notifications | RSS feed
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.4.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file money2number-0.4.tar.gz
.
File metadata
- Download URL: money2number-0.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f911cc9e691debf4d7fc25ea4f157683964abfe936381ebdfa029ebd1b33855 |
|
MD5 | d981c56266f5bf6cdb014e3fc769165b |
|
BLAKE2b-256 | b570e6c4da24949b4dfad8e0f7a0430479315fcfc648e1437ac7e1061757ec41 |
File details
Details for the file money2number-0.4-py3-none-any.whl
.
File metadata
- Download URL: money2number-0.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2667e5711864858f40f516aeeb3b550e49e8ffbd703472af41dc3eed4b8c99d |
|
MD5 | 0539eb644d64c69e34e64f0dbff546a4 |
|
BLAKE2b-256 | 93eed01bbca6cf2315a47bdb56fc26720b964051adb80aaf96296ef340eb2f45 |