unicode_age
A package for determining what version a Unicode codepoint was added to the standard
This package's version X.Y.Z.U tracks Unicode version X.Y.Z, with U reserved as
a release counter for updates unrelated to the Unicode version.
Example usage
>>> import unicode_age
>>> codept = ord("\N{SNAKE}") # added in Unicode 6.0
>>> print(unicode_age.version(codept))
(6, 0)
Rationale
Before writing this module, I was parsing DerivedAge.txt into a list[int | None],
but this approach consumes an atrocious amount of memory (10 MB) for
what it is. Using the representation here consumes three orders of magnitude
less memory (~30 KB), and it was kinda fun to write besides :)
Updating
The script makeunicode_age.py consumes DerivedAge.txt and produces the
unicode_age_db.py file that holds the backing data for this library. To make
a build for another version of the Unicode Character Database, you should be
able to replace DerivedAge.txt with the latest version and re-run this
script.
Metadata
Release files for unicode-age 18.0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unicode_age-18.0.0.0.tar.gz | 18.6 kB | Without provenance | Details for unicode_age-18.0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unicode_age-18.0.0.0-py3-none-any.whl | Python 3 | none | any | Details for unicode_age-18.0.0.0-py3-none-any.whl |
Total release size: 34.5 kB
Release files / unicode_age-18.0.0.0.tar.gz
| Download URL | unicode_age-18.0.0.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6573758f4a460662326de8c6b6c1ee5da76126920789e5bd147d34a42684b831
|
|
BLAKE2b-256 checksum How to use checksums |
1cca9b0b50173b004a4e3b444dd2d4fc927aabb6ed2f274959521db39c28ea34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / unicode_age-18.0.0.0-py3-none-any.whl
| Download URL | unicode_age-18.0.0.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcc4de6155cfc861f4a55fda43bc6180173a5ee75121b2956f2b6b13e347ea84
|
|
BLAKE2b-256 checksum How to use checksums |
a4f0ddb5764c28e52d3b2419865cc348a033a02d49bc71365014c9416176e696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for unicode-age 18.0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.