Swiss Army Knife-like toolbox for data processing
Project description
jittok
jittok is a Swiss Army Knife-like toolbox for data processing.
Installation
pip install jittok
Features
jptext - Japanese text related functions
text normalization
>>> from jittok import jptext
>>> jptext.normalization("ゼンカクカナ")
'ゼンカクカナ'
parsing Japanese numeric string
>>> from jittok import jptext
>>> jptext.to_numeric("一二,三四五億2百十万987")
1234502100987
jpdatetime - Japanese datetime related functions
parsing Japanese "wareki" string
>>> from jittok import jpdatetime
>>> jpdatetime.strptime("令和元年10月3日", "%Y年%m月%d日")
datetime.datetime(2019, 10, 3, 0, 0)
>>> jpdatetime.strptime("昭和64年1月1日", "%Y年%m月%d日")
datetime.datetime(1989, 1, 1, 0, 0)
It parses "明治", "大正", "昭和", "平成", "令和" and does not support consistency check:
>>> from jittok import jpdatetime
>>> jpdatetime.strptime("大正90年10月3日", "%Y年%m月%d日")
datetime.datetime(2001, 10, 3, 0, 0)
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
jittok-0.0.6.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jittok-0.0.6.tar.gz.
File metadata
- Download URL: jittok-0.0.6.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8281de4aaf07a68e3ec01802ecf05b127d4e989965d7c07de0ef1b6bcc73a3
|
|
| MD5 |
699e563478933acc66b88dbc39ab36c3
|
|
| BLAKE2b-256 |
d3c379a6463182534efd8fe9987e0d050219223d745a26fd8f45b17428f73896
|
File details
Details for the file jittok-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: jittok-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bacddd554dbc5f5aa180bf06023d8808c97938b10aacde686961c8c5e57cc40a
|
|
| MD5 |
d8b38c4a47a3108c41832501744a9889
|
|
| BLAKE2b-256 |
c86eaba00bd99559188224403de52f60f5ca2f0fd07f3593d5ddc5d73d9a998c
|