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 10.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.3.tar.gz
(115.5 kB
view hashes)
Built Distributions
uniprop-1.3-cp37-none-win32.whl
(80.4 kB
view hashes)
uniprop-1.3-cp36-none-win32.whl
(80.5 kB
view hashes)
uniprop-1.3-cp35-none-win32.whl
(80.5 kB
view hashes)
uniprop-1.3-cp34-none-win32.whl
(80.5 kB
view hashes)
Close
Hashes for uniprop-1.3-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f45b13d89202dbb435c27e32bc838a916718414ea4117e202370c4de821b0475 |
|
MD5 | 5b1ea45868284b0265f4e9ee591e98be |
|
BLAKE2b-256 | 709cc8db3becd723039749f1b8b7f456c1aa9c0c6fb52b5759fdb60966c21254 |
Close
Hashes for uniprop-1.3-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c91cbdb838e6481f5247ab919e99d6f63bc84b75fd72c9b15ff9510e771658b |
|
MD5 | 96492e812b1cace47f52ae0c9da3769f |
|
BLAKE2b-256 | a214f3af7a48b0be47e9f44acd84b482e49bd072a5596b48a79985dc7514c96f |
Close
Hashes for uniprop-1.3-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9841237b8300e38cb791c45661c33a254ebce22db7f22bf4d3086c7aab46797 |
|
MD5 | 6d0be54cebba00964ff26954a59cb4a4 |
|
BLAKE2b-256 | d3d01e533bd77eb5e2f403a0c1a219324e584ea50b07775d8491ef41a6049d20 |
Close
Hashes for uniprop-1.3-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11f78b1284de7e87f160d43f4719a4641f57d8a78e4ff299ba03f2449631007 |
|
MD5 | 65843b024e2aa4036e0f58691efb35fa |
|
BLAKE2b-256 | fef7360d88e310fe225d685a242f2ad06a83a1655cd25f5908b41038d9a38ab3 |