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.3.0.tar.gz (10.5 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.3.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qunits-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e35a41c4a85594f01f428cf63cfee0e007a278a1f782d04bf4b2d76f40005426
MD5 12a87fcd54ff19adc8662a13beb05fa1
BLAKE2b-256 e76d95e1829f5651fa3eac4eb8c489b1d9e0b171b10f7bfdabd7d5c594939fe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qunits-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a853375b790a953a028c77f22b740d66325387bf5122998a937df4e7224bd9c
MD5 d82741f89120147a18d64f3a2984958c
BLAKE2b-256 9337ee42fd49d56b05b5be45e2a3dab2c30162fa14b004f056c05828bd1e83c2

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