pint-compute

Solid

Unit-aware computation with Pint - convert units, dimensional analysis, unit arithmetic

AI & Automation 501 stars 42 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Unit Computation with Pint Cognitive prosthetics for unit-aware computation. Use Pint for converting between units, performing unit arithmetic, checking dimensional compatibility, and simplifying compound units. ## When to Use - Converting between units (meters to feet, kg to pounds) - Unit-aware arithmetic (velocity x time = distance) - Dimensional analysis (is force = mass x acceleration?) - Simplifying compound units to base or named units - Parsing and analyzing quantities with units ## Quick Reference | I want to... | Command | Example | |--------------|---------|---------| | Convert units | `convert` | `convert "5 meters" --to feet` | | Unit math | `calc` | `calc "10 m/s * 5 s"` | | Check dimensions | `check` | `check newton --against "kg * m / s^2"` | | Parse quantity | `parse` | `parse "100 km/h"` | | Simplify units | `simplify` | `simplify "1 kg*m/s^2"` | ## Commands ### parse Parse a quantity string into magnitude, units, and dimensionality. ```bash uv run python -m runtime.harness scripts/pint_compute.py \ parse "100 km/h" uv run python -m runtime.harness scripts/pint_compute.py \ parse "9.8 m/s^2" ``` ### convert Convert a quantity to different units. ```bash uv run python -m runtime.harness scripts/pint_compute.py \ convert "5 meters" --to feet uv run python -m runtime.harness scripts/pint_compute.py \ convert "100 km/h" --to mph uv run python -m runtime.harness scripts/pint_compute.py \ ...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
2 months ago
Last Updated
yesterday
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category