Skip to main content

Python library for working with the QUDT (Quantity, Unit, Dimension and Type) ontology.

Project description


pyqudt is a Python library for working with QUDT units and convertions between them. It is based on jQUDT, a similar Java library.

QUDT is "Quantities, Units, Dimensions and Data Types in OWL and XML".

QUDT is a CC-SA-BY project by NASA Ames Research Center and TopQuadrant, Inc.

License of this Python library: 3-clause BSD ("New BSD License")


pip3 install pyqudt


The package is relatively complete and test cases cover most code. Version 1.0.0 has been released.

Quick demo

Keep in mind, these conversions are purely derived from data in the QUDT ontology.


from qudt.quantity import Quantity
from qudt.units.concentration import ConcentrationUnit
from qudt.units.temperature import TemperatureUnit

obs = Quantity(0.1, ConcentrationUnit.MICROMOLAR)
print(f'{obs} = {obs.convert_to(ConcentrationUnit.NANOMOLAR)}')

temp = Quantity(20, TemperatureUnit.CELSIUS)
print(f'{temp} = {temp.convert_to(TemperatureUnit.KELVIN)}')


0.1 μM = 100.00000000000001 nM
20 degC = 293.15 K

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyqudt, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyqudt-1.1.0-py3-none-any.whl (218.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyqudt-1.1.0.tar.gz (190.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page