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.4.tar.gz
(117.7 kB
view hashes)
Built Distributions
uniprop-1.4-cp37-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.4-cp36-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.4-cp35-none-win32.whl
(82.6 kB
view hashes)
uniprop-1.4-cp34-none-win32.whl
(82.6 kB
view hashes)
Close
Hashes for uniprop-1.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36714ad90ff6396a33dec5c82572bee311ba2c6853572276db551c86247f7d67 |
|
MD5 | 288f366208e02f03e848af24cf7c28ab |
|
BLAKE2b-256 | df65822dd963855f8031be00900a8575c2668cc7825718b24887a163521e86e3 |
Close
Hashes for uniprop-1.4-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd9f5a67be820591fe8de3594dcaf4b4e76c99655ded07c8074c592088b896d |
|
MD5 | d221a66ff03f679a8aa3985d8247145d |
|
BLAKE2b-256 | b2a407281539ab54448393d3e2833be0b53fd5f7cb14cb1e37b946eaf1482099 |
Close
Hashes for uniprop-1.4-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b3b012b75420ea4789297dc1dd13c2fc854b51c74769953ea9004db1b530e1 |
|
MD5 | c7290784743e99da240fe86ee9f5bcbe |
|
BLAKE2b-256 | 5098de74383834e15b2b39ddb1512f626012962325d04e138028459868a37227 |
Close
Hashes for uniprop-1.4-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8ed8695da5cc9d2bb9050ab669800fdd0ef62485eed3d8aa4d05daf86b4617 |
|
MD5 | 49a314d8f48917d8458cea92b14571ac |
|
BLAKE2b-256 | 29531fece5865a944d27095e98ae9cc18de96b160682de092798d9157552d270 |