Yen currency string parser.
Project description
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.
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
yen-parser-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for yen_parser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24533fdeec0f280e0eb7816183b417ec7acdc08bc341d7c2a6e7743c8f5dcfcf |
|
MD5 | 2f0b45f921688f593799e774899a8311 |
|
BLAKE2b-256 | f45d42ac72f1c3ae15b3bed3eded4f8117e922257f8a5934c14de888bee86015 |