'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 14.0.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.7.tar.gz
(124.4 kB
view details)
Built Distributions
uniprop-1.7-cp39-cp39-win32.whl
(90.3 kB
view details)
File details
Details for the file uniprop-1.7.tar.gz
.
File metadata
- Download URL: uniprop-1.7.tar.gz
- Upload date:
- Size: 124.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d3424d8a1cff3e592eca528a0af26ea3fbd875a704c3f7fabfd511438b3b7b |
|
MD5 | fe34cd3bff5a6d086c2041bcc41510c3 |
|
BLAKE2b-256 | 419277401571e89aaa94b8d877fb2cd6c5f2b212a10f7f9d1cb866d197bc8593 |
File details
Details for the file uniprop-1.7-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: uniprop-1.7-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 91.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e4079086798cf73edc975eb4b6516334f4546c467d2b32dfcffa3e67c0f1d9 |
|
MD5 | 60b295d6da130e45b783cacc64258de9 |
|
BLAKE2b-256 | a5854ead00a22c1a851f054c30b2e9fb2d433a6c0fe1bc996a9b2da81bc0b63d |
File details
Details for the file uniprop-1.7-cp39-cp39-win32.whl
.
File metadata
- Download URL: uniprop-1.7-cp39-cp39-win32.whl
- Upload date:
- Size: 90.3 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e1962393b09f23491b2cd3db4c6d7ea6b51bf827f7fc6f58f824a7fd18d78c |
|
MD5 | 7d5c10a45b941c98dbb59f1d321018ce |
|
BLAKE2b-256 | 2ee643532f6a5da1d8278c28e2838ede9e41f8deaf855117cb2fa1dcbdbf6bb3 |