uc.micro-py

raw JSON →
2.0.0 verified Sat Apr 11 auth: no python

uc-micro-py is a Python port of uc.micro, providing a micro subset of Unicode data files. This library is specifically designed to meet the needs of `linkify-it-py` projects. As of version 2.0.0, released in February 2026, it is actively maintained, though its release cadence appears to be infrequent, driven by updates to Unicode data or `linkify-it-py` requirements.

pip install uc-micro-py
error ModuleNotFoundError: No module named 'uc_micro'
cause The `uc-micro-py` package has not been installed in the current Python environment.
fix
pip install uc-micro-py
error ModuleNotFoundError: No module named 'uc-micro-py'
cause The user attempted to import the package using its PyPI distribution name (`uc-micro-py`) instead of its actual Python module name (`uc_micro`).
fix
from uc_micro import get_categories
error AttributeError: module 'uc_micro' has no attribute 'get_category'
cause The user attempted to access a non-existent attribute or function; the correct function name to retrieve categories is `get_categories` (plural).
fix
from uc_micro import get_categories # Call the function categories = get_categories()
breaking Version 2.0.0 of `uc-micro-py` raised the minimum required Python version to 3.10. Projects on older Python versions (e.g., Python 3.9 and below) will encounter compatibility issues.
fix Upgrade your Python environment to version 3.10 or newer to use uc-micro-py v2.0.0 and subsequent releases.
gotcha This package is explicitly stated to contain content 'ONLY for linkify-it-py projects needs.' It is not intended for standalone use or to expose a public API for direct application-level functionality beyond providing Unicode data to its primary consumer.
fix Do not attempt to use `uc-micro-py` directly for general Unicode parsing or linking. If you need linkification, use `linkify-it-py` which correctly leverages this library internally.
gotcha The project has an infrequent release cadence (e.g., a two-year gap between v1.0.3 and v2.0.0). While `v2.0.0` is recent, users should not expect frequent updates or rapid feature additions beyond maintaining Unicode data compatibility for `linkify-it-py`.
fix Factor in the infrequent update schedule when planning dependencies. This library is stable for its intended purpose but may not see active development of new, independent features.
breaking The package `uc-micro-py` was not found in the Python environment. This typically means it was not installed via pip or is not available in the Python path.
fix Ensure `uc-micro-py` is correctly installed in your environment using `pip install uc-micro-py`.
breaking The `uc-micro-py` package was not found in the Python environment, leading to a `ModuleNotFoundError`. This typically means the package was not installed or is not accessible in the current Python path.
fix Ensure `uc-micro-py` is installed in the environment where the script is being run, for example, by adding `pip install uc-micro-py` to your setup process. Verify that the correct Python environment is activated.

uc-micro-py is designed as an internal dependency, primarily for `linkify-it-py`. There is no direct, user-facing API for this library beyond importing it to confirm its presence. This quickstart demonstrates a basic import and version check.

import uc_micro_py
print(f"uc-micro-py version: {uc_micro_py.__version__}")
# Note: This library primarily serves as an internal dependency for linkify-it-py
# and does not expose a public API for direct feature usage.