Skip to main content

PyUnit

PyUnit is a lightweight Python library for creating, manipulating, and comparing units in a readable and performant way.
It provides trigonometric, geometric, and arithmetic utilities, enabling clean and understandable code for unit-based calculations.


Features

  • Create unit types like Distance, Weight, Angle, Time, Temperature, etc.
  • Perform arithmetic operations and comparisons on units.
  • Access trigonometric and geometric functions for calculations.
  • Lightweight and readable syntax without heavy dependencies.
  • Supports Python 3.10+ on Windows.

Installation

pip install PyUnit

(Note: This package is currently in early development. Some features may be unstable.)


Usage Example

from pyunit import Distance, Angle, Char, new_char

# Create a distance unit
d1 = Distance(10)
d2 = Distance(5)

# Perform arithmetic
total = d1 + d2

# Create a character
a = new_char("A")  # type: Char["A"]

# Angle calculation
from pyunit import UnitMath as um
angle = um.alpha(3, 4).radians  # returns angle in radians

Licence

This project is licensed under the MIT License – see the LICENCE file for details.


Contributing

Contributions, bug reports, and feature requests are welcome! Visit the repository: PyUnit on GitHub

Metadata

Release files for PyUnit-Neo 1.0.2

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

Source distribution (sdist)

Source distribution for PyUnit-Neo 1.0.2
File Size Uploaded Provenance Actions
pyunit_neo-1.0.2.tar.gz 18.8 kB Without provenance Details for pyunit_neo-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyUnit-Neo 1.0.2
File Interpreter ABI Platform Actions
pyunit_neo-1.0.2-py3-none-any.whl Python 3 none any Details for pyunit_neo-1.0.2-py3-none-any.whl

Total release size: 40.6 kB

Release files / pyunit_neo-1.0.2.tar.gz

Download URL pyunit_neo-1.0.2.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0c8b668bc085fe1c59845309f79a538d96ef8d2d206ca4dbe78e8d632c44ace2
BLAKE2b-256 checksum
How to use checksums
f0156a0e006bec0b344c9e695484b5a5a1ee7894fdf9ba04d69efbd9fe758e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / pyunit_neo-1.0.2-py3-none-any.whl

Download URL pyunit_neo-1.0.2-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fbe47d25b90483bbfbdc1189d67cd8c402d8128a5882e04ba05a90ff26c69eb
BLAKE2b-256 checksum
How to use checksums
1fab36bceed16506bf1363a2d5935b69b1a7501310ce4b028e979784b1798734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for PyUnit-Neo 1.0.2

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.

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