# hgrecco/pint

Operate and manipulate physical quantities in Python

Repository: https://github.com/hgrecco/pint
Canonical: https://ross.abutalabs.com/products/hgrecco-pint
Homepage: http://pint.readthedocs.org/
Language: Python
License: NOASSERTION
License Family: other
Topics: python, science, units
Last push: 2026-08-05T20:07:31+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 5164, "days_push": 28, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2786, forks 528 (observed 2026-08-28T04:07:21.920689+00:00)

## What it is
Pint is a Python library for defining, operating on, and manipulating physical quantities (a numerical value paired with a unit of measurement). It supports arithmetic between quantities, unit conversions, a comprehensive built-in set of units and constants, and numpy integration.

## Use cases
- convert between units of measurement in Python
- do arithmetic on quantities with units like meters and seconds
- avoid unit conversion bugs in scientific code
- work with numpy arrays that carry physical units
- build a unit converter CLI
- define custom units and constants for a domain

## When to choose
- your Python code mixes quantities with different units and needs safe conversions
- you want numpy-compatible physical quantities with minimal dependencies
- you need an extensible units registry with custom units, prefixes, and constants

## When to avoid
- you need symbolic math or a full computer algebra system
- your project is not in Python
- you only need a one-off unit conversion without a library dependency

## Facets
- artifact type: library
- maturity: stable
- function: math, serialization
- domain: data-science, developer-tools
- platform: python, cross-platform
- tags: units-of-measurement, physical-quantities, unit-conversion, numpy, scientific-computing, science

## Member repositories
- hgrecco/pint (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:21.920689+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:16:01.157443+00:00, confidence not recorded.
  - readme: https://github.com/hgrecco/pint (fetched 2026-08-28T04:07:21.920689+00:00, sha 59b868e7fc93)
  - registry_pypi: https://pypi.org/pypi/pint/json (fetched 2026-08-29T09:55:49.096966+00:00, sha 2ffaca53d722)
- Data as of 2026-08-30T08:39:29.467469+00:00.
