Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

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 Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting