Skip to main content

Hanzi stroke counts

Project description

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.

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

strokes-0.0.1.tar.gz (257.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strokes-0.0.1-py3-none-any.whl (256.2 kB view details)

Uploaded Python 3

File details

Details for the file strokes-0.0.1.tar.gz.

File metadata

  • Download URL: strokes-0.0.1.tar.gz
  • Upload date:
  • Size: 257.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for strokes-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d4aebfb97b8730d0d9acf058f16128e9cad732f4a8e46990e7ece3107808b707
MD5 f1f5daa69297646253139e5c1aefb651
BLAKE2b-256 85b2a68114631993c86e76403b45fe4ad8e0221bd61658ddfcfa425d596887db

See more details on using hashes here.

File details

Details for the file strokes-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: strokes-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 256.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for strokes-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c8304267551bdc55c545a3649136036abae7a246a08b4b9a9c9fb04a33a795b
MD5 fdc29596556eeea7ff9c10ee4e6e36a8
BLAKE2b-256 f84fa0fa202d73931c788453c53f6266989827d1727597232a53719f687290f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page