Coverage for thumbhash / __init__.py: 75%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-28 17:06 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-28 17:06 +0000
1import importlib.metadata
3try:
4 __version__ = importlib.metadata.version("thumbhash-python")
5except importlib.metadata.PackageNotFoundError:
6 __version__ = "unknown"
8from thumbhash.decode import thumbhash_to_image as thumbhash_to_image
9from thumbhash.encode import image_to_thumbhash as image_to_thumbhash
11__all__ = ["image_to_thumbhash", "thumbhash_to_image"]