Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 685 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 685 Bytes

Unidata Blocks

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

License

Under the MIT license.