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.1.tar.gz (11.8 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.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qunits-0.4.1.tar.gz
  • Upload date:
  • Size: 11.8 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.1.tar.gz
Algorithm Hash digest
SHA256 bea88a3fc1438f053c6b44c1d8c781f43a1dc18c67a97a8b59c5e5b7c0e31802
MD5 022c13cfcc802d79ca554270ac998105
BLAKE2b-256 9af6a4012c13dd91f118a9a18d49744dd314d5120afa55b0cec54a31d2cdd453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qunits-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c69751ea15b9d66f7b475492f1786dc0e1ca9002b2e9c4dcbf0f7071924da84
MD5 acc7bb0ffbe278d23f1fd25e7b1b9bf6
BLAKE2b-256 c46666e02b3cd2fc454d0667d63ed4b0635b8454dc081a4986dab27c77737f56

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