Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

'uniprop' provides the Unicode properties of codepoints similar to those of the unicodedata module.

Project description

Summary

This module reports the Unicode properties of codepoints, beyond what Python’s unicodedata module provides.

Unicode

This module supports Unicode 13.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.

Files for uniprop, version 1.6
Filename, size File type Python version Upload date Hashes
Filename, size uniprop-1.6-cp36-cp36m-manylinux1_i686.whl (140.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp36-cp36m-manylinux1_x86_64.whl (156.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp36-cp36m-manylinux2010_i686.whl (140.8 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp36-cp36m-manylinux2010_x86_64.whl (156.7 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp36-cp36m-win32.whl (93.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp36-cp36m-win_amd64.whl (94.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-manylinux1_i686.whl (142.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-manylinux1_x86_64.whl (157.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-manylinux2010_i686.whl (142.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-manylinux2010_x86_64.whl (157.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-win32.whl (93.5 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp37-cp37m-win_amd64.whl (94.1 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-manylinux1_i686.whl (141.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-manylinux1_x86_64.whl (157.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-manylinux2010_i686.whl (141.5 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-manylinux2010_x86_64.whl (157.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-win32.whl (88.8 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6-cp38-cp38-win_amd64.whl (89.6 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size uniprop-1.6.tar.gz (118.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page