Skip to main content

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


Release history Release notifications

This version
History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
uniprop-1.3-cp34-none-win32.whl (80.5 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 20, 2018
uniprop-1.3-cp34-none-win_amd64.whl (82.4 kB) Copy SHA256 hash SHA256 Wheel cp34 Feb 20, 2018
uniprop-1.3-cp35-none-win32.whl (80.5 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 20, 2018
uniprop-1.3-cp35-none-win_amd64.whl (82.4 kB) Copy SHA256 hash SHA256 Wheel cp35 Feb 20, 2018
uniprop-1.3-cp36-none-win32.whl (80.5 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 20, 2018
uniprop-1.3-cp36-none-win_amd64.whl (82.4 kB) Copy SHA256 hash SHA256 Wheel cp36 Feb 20, 2018
uniprop-1.3-cp37-none-win32.whl (80.4 kB) Copy SHA256 hash SHA256 Wheel cp37 Feb 20, 2018
uniprop-1.3-cp37-none-win_amd64.whl (82.4 kB) Copy SHA256 hash SHA256 Wheel cp37 Feb 20, 2018
uniprop-1.3.tar.gz (115.5 kB) Copy SHA256 hash SHA256 Source None Feb 20, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page