pyveu – Value Error Unit
The python package pyveu (Value Error Unit) handles real-life experimental data which includes uncertainties and physical units. The package implements arithmetic operations and many mathematical functions for physical quantities. Gaussian error propagation is used to calculate the uncertainty of derived quantities.
The package is built with the day-to-day requirements of people working a laboratory kept in mind. The package offers an imperative programming style, which means that the operations are evaluated when they are typed interactively in python, giving researchers the freedom and flexibility they need.
Quickstart
Install the package using pip
$ pip install pyveu
The working horse of the package is the pyveu.Quantity class. It can be used to convert units, for example, it can convert meter per second into kilometer per hour.
>>> from pyveu import Quantity
>>> speed = Quantity("32 +- 3 m / s")
>>> speed.str("km / hr")
'(115 +- 11) km / hr'
Quantities from a measurement usually come with a measurement uncertainty. The class pyveu.Quantity propagates the uncertainty automatically.
>>> time = Quantity("3.23 +- 0.1 min")
>>> distance = speed * time
>>> distance.str("km")
'(6.2 +- 0.6) km'
Binder
Try pyveu without installation right from your browser:
Links
Metadata
Release files for pyveu 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyveu-0.1.0.tar.gz | 74.8 kB | Without provenance | Details |
Release files / pyveu-0.1.0.tar.gz
| Download URL | pyveu-0.1.0.tar.gz |
|---|---|
| Size | 74.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9609d7442cc8d9785ce4d251e721809521abad5870dc16210664fc0bc813c01f
|
|
BLAKE2b-256 checksum How to use checksums |
31ec53efa24921567598299920df1721ef0e059170cbd0b16a90557818c15d09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for pyveu 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.