Skip to main content

A performant, verbose and generic physical unit system.

Project description


Static Badge Static Badge

NOTE: Early development. Not fully functional yet.

The qunits Python package provides a performant, verbose and generic physical unit system. Tutorials and the API documentation are available on the Homepage. Additional example scripts can be found in the example folder on GitHub.

Getting started

from qunits import u

q = 2 * u.e  # >>> 2.0 e
v = 2e5 * u.m / u.s  # >>> 200000.0 m/s
B = 0.42 * u.mT  # >>> 0.42 mT

F = q * v * B  # >>> 2.69165674512e-17 N

Dependencies

Modules

  • dimension: Contains the dimension definitions.
  • registry: Contains the unit registry u.
  • unit: Contains the Unit and the Quantity classes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qunits-0.4.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qunits-0.4.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file qunits-0.4.0.tar.gz.

File metadata

  • Download URL: qunits-0.4.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for qunits-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3832a410ef9e1be31bcc30eee788ef8b00dcd34bdacd0c889ce42f7c7bcfcf43
MD5 41a958c452eeb19c763cf74d2f0eb38f
BLAKE2b-256 5fda5a31202600a9768002be75f5ee1091fe7cb094bf101874b35ddeb6f0f319

See more details on using hashes here.

File details

Details for the file qunits-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: qunits-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for qunits-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46c5cf65e58fdd3be0f4613b7fce06c77a4550056d35e665040a65d61fdca21e
MD5 cf7550bd7f5acd7b54fb231d0da3c1c7
BLAKE2b-256 6b4a33daec75d5d0e714d981bfda49a262da60872a91f94188c4e8ab5765c1a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page