Yen currency string parser.
Installation
pip install yen-parser
Usage
Basic usage
>>> from yen_parser import parse_yen
>>> parse_yen("¥45,000")
45000
Supported cases
parse-yen function accepts string in the very rough format:
>>> parse_yen("45000")
45000
>>> parse_yen("45,000")
45000
>>> parse_yen("¥45,000")
45000
Note
As the name of this library yen-parsr describes, only support Japanese yen currency format. If you want to deal with other currency, there are more nicely library exists on PyPI, e.g. price-parser
Disclaim
This library is not intended to be used for important and/or critical work like financial situation.
Metadata
Release files for yen-parser 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yen-parser-0.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yen_parser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / yen-parser-0.1.0.tar.gz
| Download URL | yen-parser-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2313b9682fb56490a11455aa16054536c54c1a4992bd594434630f94a54806a
|
|
BLAKE2b-256 checksum How to use checksums |
1185d822fba43e2bc02e5dc039f0624dfeb5ce7e297ce22ed22f895711a11ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.4 Darwin/20.5.0
|
Release files / yen_parser-0.1.0-py3-none-any.whl
| Download URL | yen_parser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24533fdeec0f280e0eb7816183b417ec7acdc08bc341d7c2a6e7743c8f5dcfcf
|
|
BLAKE2b-256 checksum How to use checksums |
f45d42ac72f1c3ae15b3bed3eded4f8117e922257f8a5934c14de888bee86015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.4 Darwin/20.5.0
|