# 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
Under the [MIT license](LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "unidata-blocks",
"maintainer": "TakWolf",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "unicode",
"author": "TakWolf",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/28/e9/a09645161da84b29769f55ca46d277044c77291d03061f233ea97a8f339d/unidata_blocks-0.0.10.tar.gz",
"platform": null,
"description": "# Unidata Blocks\n\n[![Python](https://img.shields.io/badge/python-3.10-brightgreen)](https://www.python.org)\n[![PyPI](https://img.shields.io/pypi/v/unidata-blocks)](https://pypi.org/project/unidata-blocks/)\n\nA library that helps query unicode blocks by [Blocks.txt](https://www.unicode.org/Public/UNIDATA/Blocks.txt).\n\n## Installation\n\n```shell\npip install unidata-blocks\n```\n\n## Usage\n\n```python\nimport unidata_blocks\n\nblock = unidata_blocks.get_block_by_chr('A')\nassert block.code_start == 0x0000\nassert block.code_end == 0x007F\nassert block.name == 'Basic Latin'\n```\n\n## Dependencies\n\n- [Langcodes](https://github.com/rspeer/langcodes)\n\n## License\n\nUnder the [MIT license](LICENSE).\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A library that helps query unicode blocks by Blocks.txt.",
"version": "0.0.10",
"project_urls": {
"homepage": "https://github.com/TakWolf/unidata-blocks",
"issues": "https://github.com/TakWolf/unidata-blocks/issues",
"source": "https://github.com/TakWolf/unidata-blocks"
},
"split_keywords": [
"unicode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fd935bf1cf7f3032217b6758a5eba6502537857c37796e798e61f95392dc5097",
"md5": "961221ae31f9a1f2c35f057e8938d55e",
"sha256": "13ac721cc4df54a5d309709d711bdcd410cb66598d885eaa3889e2920a1e0d95"
},
"downloads": -1,
"filename": "unidata_blocks-0.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "961221ae31f9a1f2c35f057e8938d55e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 13329,
"upload_time": "2024-04-17T07:45:08",
"upload_time_iso_8601": "2024-04-17T07:45:08.599338Z",
"url": "https://files.pythonhosted.org/packages/fd/93/5bf1cf7f3032217b6758a5eba6502537857c37796e798e61f95392dc5097/unidata_blocks-0.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "28e9a09645161da84b29769f55ca46d277044c77291d03061f233ea97a8f339d",
"md5": "3abd24663fa6aa6b96ffca57c17816fb",
"sha256": "c3088e8df200c7a019b4af7cbae3d0d23c1b96af82767310a7e26441687e4603"
},
"downloads": -1,
"filename": "unidata_blocks-0.0.10.tar.gz",
"has_sig": false,
"md5_digest": "3abd24663fa6aa6b96ffca57c17816fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 14132,
"upload_time": "2024-04-17T07:45:10",
"upload_time_iso_8601": "2024-04-17T07:45:10.244767Z",
"url": "https://files.pythonhosted.org/packages/28/e9/a09645161da84b29769f55ca46d277044c77291d03061f233ea97a8f339d/unidata_blocks-0.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-17 07:45:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TakWolf",
"github_project": "unidata-blocks",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "langcodes",
"specs": [
[
"==",
"3.3.0"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"8.1.1"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
}
],
"lcname": "unidata-blocks"
}