Skip to main content

A python package for unit-aware numerical data handling.

Project description

WELCOME TO mudu

mudu is a package for units and dimension handling, unit conversion and unit arithemtic, with support for custom units definition.

mudu was created as part of a larger project (my final year project), [flightperformance]{.title-ref}, which is a Python package for analyzing aircraft (fixed wing) performance. As it is standard in engineering to specify the units of data so as to ensure dimensional homogeniety and reproducability, the [flightperformance]{.title-ref} package required a means of specifying the units of data, the quantity they represents, convert between units and do arithemtic operations efforlessly with emphasis on flexibiliy and readability, this is what mudu does.

mudu provides a set of classes and methods, while retaining Python's expressiveness, to add unit signatures to numeric data, convert between units and perform valid arithemtic operations on dimension (or quantities) and unit objects. At its core, mudu creates dimensions using the [DimensionUnitBase]{.title-ref} base class while units are all instances or child classes of the [_UnitType]{.title-ref} class, both these classes are composed of other classes.

<hr style='border-top: 3px dashed #2e7d32; margin: 30px 0'>}

Why use mudu

  • It provides an simple and expressive way of specifying units
  • Capability to perform conversion from one unit to another while ensuring dimensional homogeniety as it applies in mathematics
  • Supports valid arithemtic operations on [_DimensionUnitBase]{.title-ref} child objects and [_UnitType]{.title-ref} objects
  • It provides interfaces to define custom units, dimensions ( or quantities) and define relationships between custom units and existing units

This documentation, contains information about the general structure of mudu, a quick tutorial that captures almost all the important functionalities of mudu and some selected examples to give to an easy start on the usage of the package.

Installation

To install using pip, run:

$ pip install mudu

You can view a better documentation of this project on https://mudu.readthedocs.io or if you already have the package installed, use:

$ mudu --doc

local webpage version of the documentation.

<hr style='border-top: 3px dashed #2e7d32; margin: 30px 0'>}

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

mudu-1.1.500.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mudu-1.1.500-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file mudu-1.1.500.tar.gz.

File metadata

  • Download URL: mudu-1.1.500.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mudu-1.1.500.tar.gz
Algorithm Hash digest
SHA256 0cf41b6b77396af6bdd6361a3677d619a82851023b8fa536a0d74395afd85c68
MD5 57e26d73a0cb34f90c29fcca72a5183f
BLAKE2b-256 afef07d13ac66057aec440b736321178104792c872a145990e790c6b7c64d801

See more details on using hashes here.

File details

Details for the file mudu-1.1.500-py3-none-any.whl.

File metadata

  • Download URL: mudu-1.1.500-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mudu-1.1.500-py3-none-any.whl
Algorithm Hash digest
SHA256 28435d0265a9e88de133f8b07acc2b9e605aedcf016a0f66b6765f763716f7db
MD5 8c08f17a3915fc744fd454176b7d6ff3
BLAKE2b-256 fda83d17f716fa9aa5039d52451bda18d337aac8dcbf63668d15ec790409cbd3

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