{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Implements unit of measurement arithmetic with static type checking and protobuffer serialization support, allowing operations on quantities with compatible units.","skillfed_tags":["dimensional-analysis","type-safe-units","scientific-computing"],"use_cases":["Physics simulations where dimensional consistency prevents unit-conversion bugs.","Type-safe function signatures that reject incompatible unit types at type-check time.","Serializing and deserializing physical quantities via protobuffer for inter-process communication.","Scientific data pipelines where unit tracking and validation reduce calculation errors.","Array-based computations on quantities with consistent dimensionality."],"what_it_does":"TypedUnits is a Cython-based library that adds dimensional analysis to Python arithmetic. It lets you attach units to numbers and enforces that only compatible units can be combined\u2014adding meters to kilometers works, but adding meters to seconds fails at runtime or, with static type hints, at type-check time. The library ships precompiled wheels for modern Python versions and supports protobuffer serialization for a selected set of units.\n\nThe core use case is scientific and engineering code where dimensional consistency matters: you can write functions that accept only specific unit types, and mypy will catch type mismatches. It also provides array support via numpy integration and can convert values to base SI units for inspection or comparison.","worth_installing":"Yes, if you work with physical quantities and want compile-time dimensional safety. The active maintenance, permissive license, and precompiled wheels make it low-friction to adopt. No known vulnerabilities. Start with the caveat that protobuffer support is limited to selected units\u2014verify your units are covered before relying on serialization."},"id":"typedunits","links":{"html":"https://skillfed.io/packages/typedunits","md":"https://skillfed.io/packages/typedunits.md","pypi":"https://pypi.org/project/typedunits/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-13","license_spdx":null,"license_treatment":"permissive","name":"typedunits","python_support":"supports_current","summary":"A fast units and dimensions library with support for static dimensionality checking and protobuffer serialization."},"popularity":{"monthly_downloads":93034,"position":13406,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.2"}
