$npx skillfedfor your agent

ucumvert

Python parser & interface for UCUM (Unified Code for Units of Measure).

With conditionsPyPI Scientific/EngineeringReleased Jun 2026120.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ucumvert-0.3.2-py3-none-any.whl
v0.3.2 · released 2026-06-04 · Python >=3.11 · 2 runtime deps: lark, pint

Yes, if you work with UCUM unit codes and need to convert them to pint. The package is actively maintained, has low install friction, and includes comprehensive UCUM definitions. However, it is in Beta status—the maintainer explicitly warns that bugs may be present and recommends reviewing definitions before production use. Not necessary if you only use standard pint units.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later.
  • Low friction install with only two runtime dependencies (lark and pint).
  • Actively maintained with a recent release; however, the package is in Beta status and the maintainer explicitly notes that bugs may still be present and recommends reviewing definitions before trusting them in production.

License · maintenance · safety

MIT (permissive) — MIT license with a permissive treatment. Code in the repository is MIT-licensed except for ucum-*.* files in src/ucumvert/vendor, which fall under the UCUM Copyright Notice and License; the maintainer clarifies this is not considered derivative work under §1.3 of that license.

last release 2026-06-04 (71 days) · last repo commit 2026-08-01 · 15 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,451 downloads/mo, #12,023 on PyPI

Verify before relying

pip install ucumvert

from ucumvert import PintUcumRegistry
ureg = PintUcumRegistry()
result = ureg.from_ucum("m/s2.kg")
print(result)  # <Quantity(1.0, 'kilogram * meter / second ** 2')>
  • Whether the UCUM-to-pint conversion covers all real-world UCUM codes used in your domain, given the note that only conversion from UCUM to pint is currently supported.
  • Performance characteristics when parsing or converting large volumes of UCUM codes.
Same gist for agents: .md · .json

What it is and what it does

ucumvert bridges UCUM (Unified Code for Units of Measure) and Python's pint library. UCUM is a standardized code system for expressing units unambiguously in electronic communication; ucumvert provides a full parser for UCUM syntax and a converter that turns UCUM codes into pint Quantity objects. It includes a custom pint UnitRegistry pre-loaded with all UCUM unit definitions from specification version 2.2, so you can work with UCUM codes directly in pint without manual setup.

The parser is built on lark and generated from the official UCUM specification file (ucum-essence.xml), making it straightforward to update for new UCUM releases. The package handles the fact that some UCUM unit atoms are invalid in pint by maintaining explicit mappings (e.g., cal_[15] → cal_15). It is actively maintained and supports Python 3.11 through 3.14, though it remains in Beta and the maintainer recommends reviewing definitions and test coverage before production use.

Use it for

  • Parse and convert UCUM unit codes in scientific or medical data pipelines where units must be unambiguous and standardized.
  • Build a pint-based unit conversion system that needs to handle UCUM notation from external data sources or standards.
  • Validate UCUM unit strings and convert them to pint quantities for dimensional analysis in research or engineering applications.
  • Extend pint's default unit definitions with the full UCUM catalog for domains that require comprehensive unit coverage.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with UCUM unit codes and need to convert them to pint.

The package is actively maintained, has low install friction, and includes comprehensive UCUM definitions. However, it is in Beta status—the maintainer explicitly warns that bugs may be present and recommends reviewing definitions before production use. Not necessary if you only use standard pint units.

Install

ucumvert on PyPI

Before you install

Low friction install with only two runtime dependencies (lark and pint). Actively maintained with a recent release; however, the package is in Beta status and the maintainer explicitly notes that bugs may still be present and recommends reviewing definitions before trusting them in production.

Requires Python 3.11 or later.

License in practice

MIT license with a permissive treatment. Code in the repository is MIT-licensed except for ucum-*.* files in src/ucumvert/vendor, which fall under the UCUM Copyright Notice and License; the maintainer clarifies this is not considered derivative work under §1.3 of that license.

Quickstart

pip install ucumvert

from ucumvert import PintUcumRegistry
ureg = PintUcumRegistry()
result = ureg.from_ucum("m/s2.kg")
print(result)  # <Quantity(1.0, 'kilogram * meter / second ** 2')>

Verify before relying

  • Whether the UCUM-to-pint conversion covers all real-world UCUM codes used in your domain, given the note that only conversion from UCUM to pint is currently supported.
  • Performance characteristics when parsing or converting large volumes of UCUM codes.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
larkpint
MaintenanceActively maintained 71 days since the last release
Last repo commit
First released
Downloads120,451 / month, #12,023 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: ucumvert-0.3.2-py3-none-any.whl

Tags

Capabilities
UCUM unit parserconvert UCUM to pintunits of measure parsingUCUM code converterscientific unit handlingunit string parser
Topics
unit-conversionscientific-computing
PyPI keywords
UCUMparserunits of measurement

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “UCUM unit parser”

  • ucumvertParses UCUM (Unified Code for Units of Measure) unit strings and…
  • PySpicePySpice provides a Python interface to Ngspice and Xyce circuit…
  • xlcalculatorReads MS Excel files and translates Excel formulas into Python code…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also Pint · pint-xarray · Pint-Pandas · hepunits · unyt · ansys-units · typedunits · isqx · measurement · cf-units