Unidata Blocks

February 8, 2026 ยท View on GitHub

Python PyPI

A library that helps query Unicode blocks by Blocks.txt.

Installation

pip install unidata-blocks

Usage

import unidata_blocks

block = unidata_blocks.get_block_by_chr('A')
assert block.code_start == 0x0000
assert block.code_end == 0x007F
assert block.name == 'Basic Latin'

Dependencies

  • Langcodes

License

MIT License

Contents

  1. 1Installation
  2. 2Usage
  3. 3Dependencies
  4. 4License