Unicode properties of codepoints.
Project description
Summary
This module reports the Unicode properties of codepoints, beyond what Python’s unicodedata module provides.
Unicode
This module supports Unicode 9.0.
Examples
>>> import uniprop >>> uniprop.script('A') 'Latin' >>> uniprop.script('\N{GREEK SMALL LETTER ALPHA}') 'Greek' >>> uniprop.block('A') 'Basic_Latin' >>> uniprop.block('\N{GREEK SMALL LETTER ALPHA}') 'Greek_And_Coptic' >>> uniprop.numeric_value('\N{VULGAR FRACTION ONE THIRD}') '1/3' >>> uniprop.numeric_value('A') 'NaN' >>> uniprop.numeric_type('\N{VULGAR FRACTION ONE THIRD}') 'Numeric' >>> uniprop.numeric_type('A') 'None'
Please note that all of the results are strings. This differs from the unicodedata module where numeric_value returns a float.
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
uniprop-1.0.tar.gz
(105.7 kB
view hashes)
Built Distributions
uniprop-1.0-cp36-none-win32.whl
(77.2 kB
view hashes)
uniprop-1.0-cp35-none-win32.whl
(77.2 kB
view hashes)
uniprop-1.0-cp34-none-win32.whl
(77.2 kB
view hashes)
Close
Hashes for uniprop-1.0-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae838d80fc3444e53437e1ee1278e10600cd43a7cfa8a645b350610b7d5fbbb7 |
|
MD5 | b3ae6d245c55c4e5111bb7df1a6a2ece |
|
BLAKE2b-256 | e2716cfe68f13239d69d861d5d50761636dff3e2dfd73070f3281d1711170cbd |
Close
Hashes for uniprop-1.0-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a411b80e77581daac7cca44f2bcc1df43cef1947be80aa708be925f560c9e8 |
|
MD5 | 7a97ac5d7fe8fb9feb215cdba8543a9f |
|
BLAKE2b-256 | 741c673c49b5721643b8222bd3567551c923d44e9fdbb4c8916794720f633aa4 |
Close
Hashes for uniprop-1.0-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938b78f1414af3456caf06eaea2ce4713c1d9d9673c2d0680a938c55625083b2 |
|
MD5 | aefd51a9fdae4ce0eb8f7dc369185623 |
|
BLAKE2b-256 | 93ffc805c68d1b431fbc2ecfeb0d59f02ef540e92710942376890d2cbac9e20a |