Hanzi Stroke Count
Install
pip install strokes
Usage
from strokes import strokes
>>> strokes('众')
6
>>> strokes('众人')
[6, 2]
>>> strokes('眾人')
[11, 2]
>>> strokes('眾人', add=True)
13
>>> strokes('人-泛称') # non-chinese characters are given a stroke count of zero
[2, 0, 7, 10]
Data Source
Stroke count data are based on Unihan_IRGSources.txt in Unihan database.
Metadata
Release files for strokes 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| strokes-0.0.1.tar.gz | 257.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strokes-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 513.5 kB
Release files / strokes-0.0.1.tar.gz
| Download URL | strokes-0.0.1.tar.gz |
|---|---|
| Size | 257.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4aebfb97b8730d0d9acf058f16128e9cad732f4a8e46990e7ece3107808b707
|
|
BLAKE2b-256 checksum How to use checksums |
85b2a68114631993c86e76403b45fe4ad8e0221bd61658ddfcfa425d596887db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10
|
Release files / strokes-0.0.1-py3-none-any.whl
| Download URL | strokes-0.0.1-py3-none-any.whl |
|---|---|
| Size | 256.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c8304267551bdc55c545a3649136036abae7a246a08b4b9a9c9fb04a33a795b
|
|
BLAKE2b-256 checksum How to use checksums |
f84fa0fa202d73931c788453c53f6266989827d1727597232a53719f687290f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10
|