pint-compute

Solid

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

AI & Automation 3,809 stars 297 forks Updated 4 months ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
100
Recency 20%
50
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 \ convert "1 atmosphere" --to pascal ``` ###...

Details

Author
parcadei
Repository
parcadei/Continuous-Claude-v3
Created
5 months ago
Last Updated
4 months ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category