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 11.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.5.tar.gz
(117.7 kB
view hashes)
Built Distributions
uniprop-1.5-cp37-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.5-cp36-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.5-cp35-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.5-cp34-none-win32.whl
(82.6 kB
view hashes)
Close
Hashes for uniprop-1.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5338d12d3aa96955557af1dbaa33934a93e205d1d15fd62df12f6e979a251ea |
|
MD5 | bbb889b74d747331b5c100ffeaeda9bf |
|
BLAKE2b-256 | 0f63f143c91240bcf7621a07a07fa04949c1d8f6c27df17becb44ad4318fd5cb |
Close
Hashes for uniprop-1.5-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77796f9cff91ff53796c7e6a7809b4fdc0eac578d3709030a4f02e58c5363db2 |
|
MD5 | bfab55c9f1ba94e6b22d8dbb1fd38af3 |
|
BLAKE2b-256 | 201cb6eb0a63e7b6ef69f26ccb58b1451b41157e480af587c4fddead174ab064 |
Close
Hashes for uniprop-1.5-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c03f242846b5ec8dcd319d72223868ad09e09048c3e807c6b0de6eb16c891c |
|
MD5 | a9f5f48a5917baf26a31fb5fdba6629d |
|
BLAKE2b-256 | 777f6c83acfa8bd1e31f784eb6c745e3c70818dda082e41502b5e8fe653056f4 |
Close
Hashes for uniprop-1.5-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfe7ef9d1fb7e77722f3d84a4eed4258919da67b8a63a462dd63e86001a36a3 |
|
MD5 | 43c75c6f9372847873a1cd90ac866221 |
|
BLAKE2b-256 | 56fc96920a11c8bff62dd010dae160b766946acb4f3e225c95db5fe04a2fbab6 |