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.2.tar.gz
(111.6 kB
view hashes)
Built Distributions
uniprop-1.2-cp36-none-win32.whl
(78.5 kB
view hashes)
uniprop-1.2-cp35-none-win32.whl
(78.4 kB
view hashes)
uniprop-1.2-cp34-none-win32.whl
(78.4 kB
view hashes)
Close
Hashes for uniprop-1.2-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69914d31ccce7b599c301873a6a5d4803dc1bcef0adbe59892789bc6367faae8 |
|
MD5 | b16e804f0d3dccc0deac555f13328efc |
|
BLAKE2b-256 | a659aec1ffbdae0c5ab294724dddc80e7f27afb4cfdc7ac6851bbb230202d489 |
Close
Hashes for uniprop-1.2-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4897aa759589c66139b3fbe1105576ecbaca05fcf23d76b699548b275de5850 |
|
MD5 | 0d78c34ebba0c3e1ec812db6323f4636 |
|
BLAKE2b-256 | b2feef803f108808afd1166bedd147ee1cc6142bf62d203b5852cdc8cbed5b07 |
Close
Hashes for uniprop-1.2-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a7def8eac2e301c9bf5bfc4b07b2f661de428ea01062a5d19986a40095b739a |
|
MD5 | 7c00c4c6a16ca1194fc2e6120abaaac3 |
|
BLAKE2b-256 | 9e090e52e4d9dc82cabe75b1fbcbde99a7eba4a69defd40ab65c9ee96002c7c7 |