Registry / devops / tinyunicodeblock

tinyunicodeblock

JSON →
library1.3pypypi✓ verified 81d ago

A tiny utility to get the Unicode block name for any character. Current version 1.3, requires Python >=3.7. Infrequently updated.

pip install tinyunicodeblock
INSTALL
IMPORT
SIG · TINYUNICODEBLOCK
T
tinyunicodeblock
devopspythonv1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

block
from tinyunicodeblock import block
from tinyunicodeblock import uniblock

Get the Unicode block name for a character.

from tinyunicodeblock import uniblock char = '\u2603' block = uniblock(char) print(block) # Output: 'Miscellaneous Symbols'
Debug
Known issues
gotchaThe function 'uniblock' returns 'No_Block' for unassigned or control characters, not None or empty string.
fix
Handle 'No_Block' explicitly instead of checking for None.
affects: all
gotchaPassing a string with more than one character raises ValueError.
fix
Ensure input is a single-character string.
affects: all
gotchaThe library does not support Python 2 or Python <3.7.
fix
Use Python >=3.7.
affects: all
Upgrade
Version history
1.3latest on PyPI · released Jan 14, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

tinyunicodeblock — pip install tinyunicodeblock · libregistry