Comparison
ansys-units vs measurement vs Pint vs unyt
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Pythonic interface for units, unit systems, and unit conversions.
Actively maintained. Last release 4 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
pip install ansys-unitsEasily use and manipulate unit-aware measurements in Python.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install measurementPhysical quantities module
Actively maintained. Last release 6 weeks ago, commits in 13 of the last 26 weeks. A safe choice.
pip install pintA package for handling numpy arrays with units
Actively maintained. Last release 6 weeks ago, commits in 16 of the last 26 weeks. A safe choice.
pip install unytIn short
- measurement is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- Pint is the most used: 9.3M downloads a month, 7.0× more than measurement.
- Maintenance is comparable: ansys-units 88, Pint 88, unyt 80 on Pythie’s Index.
- ansys-units is growing fastest: downloads +43% over the last month.
- Safe default for a new project: Pint.
Side by side
| Metric | ansys-units | measurement | Pint | unyt |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 88 | 26 |