Skip to main content


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  # >>> 168000.0 e⋅m⋅mT/s
F = F.to_base_units()  # >>> 2.6916567451199998e-17 N
F = F.to(u.e * u.V / u.m)  # >>> 168.0 e⋅V/m

Dependencies

Modules

  • dimension: Contains the dimension definitions.
  • prefix: Contains resources for prefix handling.
  • registry: Contains the unit registry u.
  • unit: Contains the Unit and the Quantity classes.

Metadata

Release files for qunits 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qunits 0.5.0
File Size Uploaded
qunits-0.5.0.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qunits 0.5.0
File Interpreter ABI Platform
qunits-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.4 kB

Release files / qunits-0.5.0.tar.gz

Download URL qunits-0.5.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
69c555cbd3606aac014794c887c4caed5ede9a00d00291873d07d4b618e14430
BLAKE2b-256 checksum
How to use checksums
224f1e9bec478c7f9ac63d933fcec5c4dfbc08c0542b853886e471793072c42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / qunits-0.5.0-py3-none-any.whl

Download URL qunits-0.5.0-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af930a34d36129ebe9c042577139730cd8fc558b9b353d06a749c189c18bc07b
BLAKE2b-256 checksum
How to use checksums
06328149fa37e6b847ad68f66ea34f6275a611e264aa97ba9fca721ae64e81c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page