Metadata-Version: 2.4
Name: unidata-blocks
Version: 0.0.21
Summary: A library that helps query Unicode blocks by Blocks.txt
Keywords: unicode
Author: TakWolf
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: langcodes>=3.5.0
Maintainer: TakWolf
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Unidata Blocks

[![Python](https://img.shields.io/badge/python-3.10-brightgreen)](https://www.python.org)
[![PyPI](https://img.shields.io/pypi/v/unidata-blocks)](https://pypi.org/project/unidata-blocks/)

A library that helps query Unicode blocks by [Blocks.txt](https://www.unicode.org/Public/UNIDATA/Blocks.txt).

## Installation

```shell
pip install unidata-blocks
```

## Usage

```python
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](https://github.com/rspeer/langcodes)

## License

[MIT License](LICENSE)
