Skip to content

Siderust/qtty-py

Repository files navigation

qtty-py

Rust-backed physical quantities for Python.

qtty-py exposes the qtty-ffi unit registry directly through UnitId, exported in Python as Unit, so conversions and dimension checks stay fast and typo-proof.

Quick start

pip install qtty
from qtty import Quantity, Unit

distance = Quantity(1000.0, Unit.Meter)
duration = Quantity(120.0, Unit.Second)

print(distance.to(Unit.Kilometer))
print(distance / duration)

Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors