Skip to main content

No project description provided

Project description

CI PyPI Dependencies

unicodedata-reader

This package reads and parses the Unicode Character Database files.

Many of them are available in the unicodedata module, or in other 3rd party modules. When the desired data is not in any existing modules, such as the Line_Break property or the Vertical_Orientation property, this package can read the data files at https://www.unicode.org/Public/UNIDATA/.

This package can also generate JavaScript functions that can read the property values of the Unicode Character Database in browsers. Please see the JavaScript section below.

Install

pip install unicodedata-reader

If you want to clone and install using poetry:

git clone https://github.com/kojiishi/unicodedata-reader
cd unicodedata-reader
poetry install
poetry shell

Python

import unicodedata_reader

reader = unicodedata_reader.UnicodeDataReader.default
lb = reader.line_break()
print(lb[0x41])

The example above prints AL, the Line_Break property value for U+0041. Please also see line_break_test.py for more usages.

JavaScript

The UnicodeDataCompressor class in this package can generate JavaScript functions that can read the property values of the Unicode Character Database in browsers.

Following examples are available in the "js" directory:

The following command generates a JavaScript file for the Line_Break property using js/template.js as the template file:

unicodedata-reader lb -t js/template.js

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

unicodedata_reader-1.3.9.tar.gz (540.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unicodedata_reader-1.3.9-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file unicodedata_reader-1.3.9.tar.gz.

File metadata

  • Download URL: unicodedata_reader-1.3.9.tar.gz
  • Upload date:
  • Size: 540.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unicodedata_reader-1.3.9.tar.gz
Algorithm Hash digest
SHA256 24a52d90b9f911cb7f15712502c2bb735961229abd927d81051f7f428086ebd5
MD5 e9130c187f8d467969be3d70f572c53f
BLAKE2b-256 775d73799640658a65d4feb8583f35424866c7d0c1dbba45fc7088e4cfe98451

See more details on using hashes here.

File details

Details for the file unicodedata_reader-1.3.9-py3-none-any.whl.

File metadata

  • Download URL: unicodedata_reader-1.3.9-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unicodedata_reader-1.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1a9b73adede0549bf0ab3a8cf262acc6cec52f569fba2d937aacd5e46bdba7cf
MD5 46575fe6239cab9073381afcc01b26ff
BLAKE2b-256 2ab2a227b56bad5da9ad1a26d4b37abf3cf22b5219bc98b62ac1b542198f6bcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page