{"id":27486,"library":"typedunits","title":"TypedUnits","description":"TypedUnits is a fast units and dimensions library with support for static dimensionality checking and protobuffer serialization, written in Cython. Current version is 0.0.2, requires Python >=3.10. Release cadence is irregular.","status":"active","version":"0.0.2","language":"python","source_language":"en","source_url":"https://github.com/quantumlib/TypedUnits","tags":["units","dimensions","type-checking","protobuf","cython"],"install":[{"cmd":"pip install typedunits","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Required for array operations","package":"numpy","optional":true},{"reason":"Required for protobuffer serialization","package":"protobuf","optional":true}],"imports":[{"wrong":"from typedunits import Unit","symbol":"A","correct":"from tunits import A"},{"wrong":"from typedunits import Unit","symbol":"Acceleration","correct":"from tunits import Acceleration"},{"wrong":"from typedunits import Unit","symbol":"Angle","correct":"from tunits import Angle"}],"quickstart":{"code":"from typedunits import Unit\n\nu = Unit('m', 3.0)  # 3 meters\nprint(u)","lang":"python","description":"Create a simple unit value and print it."},"warnings":[{"fix":"Use explicit unit conversions via the library's conversion methods.","message":"Static dimensionality checking may break code that relies on duck typing or dynamic unit conversion. Ensure unit types are consistent.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Update type annotations to match stricter expectations.","message":"Version 0.0.2 introduced tighter static typing checks, which may cause new type errors in existing code.","severity":"breaking","affected_versions":"0.0.2"}],"env_vars":null,"search_vec":"'0.0.2':25 '3.10':28 'cadenc':30 'check':15,37 'current':22 'cython':21,39 'dimens':8,34 'dimension':14 'fast':5 'irregular':32 'librari':9 'protobuf':38 'protobuff':17 'python':27 'releas':29 'requir':26 'serial':18 'static':13 'support':11 'type':36 'type-check':35 'typedunit':1,2 'unit':6,33 'version':23 'written':19","created_at":"2026-05-01T17:46:31.093154+00:00","updated_at":"2026-05-01T17:46:31.093154+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/quantumlib/TypedUnits","docs":null,"changelog":null,"pypi":"https://pypi.org/project/typedunits/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}