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.1.tar.gz
(211.1 kB
view hashes)
Built Distributions
uniprop-1.1-cp36-none-win32.whl
(77.2 kB
view hashes)
uniprop-1.1-cp35-none-win32.whl
(77.2 kB
view hashes)
uniprop-1.1-cp34-none-win32.whl
(77.2 kB
view hashes)
Close
Hashes for uniprop-1.1-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f13194ba0b1f8b96618dfeb2bbdc220c69688edbcbaf9a35780be3c54df622a |
|
MD5 | 6bbbd790aadd0c2031779f21aaa0b6cd |
|
BLAKE2b-256 | 65f2622708948488f88560a1ada7457d61976c5b7699f75e1cd4bf20337ae6ea |
Close
Hashes for uniprop-1.1-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30767be0a7df62dc546a156d5605416e3bc39b42a0a9c79bbe4054a401e1c82 |
|
MD5 | 45ee12f4b8ea2a2a3dcc9db77baab710 |
|
BLAKE2b-256 | 6aad781a999d8bb681db85d6b77ec364926c5b08e9652f21c6d7a7391425da9b |
Close
Hashes for uniprop-1.1-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eada3c38f02bad117b16270bcac281e84fd2414b2912a73d738cd0255bbb0429 |
|
MD5 | a0b837b974010a2399646bf4e06328e1 |
|
BLAKE2b-256 | d3a48f1c838543116e95c15af3f7562004c7077a79227dc29e415d7e2e7f17c3 |