Skip to main content

PyPI-Server Project generated with PyScaffold

opensemantic.quantities

Pydantic models for physical quantities, units and prefixes from world.opensemantic.quantities.

Provides typed Python classes for working with units of measure, unit prefixes, composed units, and quantity kinds based on the QUDT ontology. Includes SI, CGS, and commonly used non-SI units (bar, atm, calorie, etc.).

Installation

pip install opensemantic.quantities

Usage

from opensemantic.quantities import QuantityUnit, ComposedUnit, UnitPrefix, QuantityKind

# Pydantic v1 models
from opensemantic.quantities.v1 import QuantityUnit as QuantityUnitV1

Models

Class Description
UnitPrefix SI unit prefixes (kilo, milli, micro, etc.)
QuantityUnit Base units with prefix variants (metre, second, pascal, bar, etc.)
ComposedUnit Units composed of multiple factors (m/s, kg*m/s^2, etc.)
QuantityKind Physical quantities (Length, Mass, Pressure, etc.)
PrefixUnit Prefixed variant of a unit (subobject of QuantityUnit)
ComposedUnitElement Prefixed variant of a composed unit (subobject of ComposedUnit)

Dependencies

  • opensemantic.core - base entity models (Entity, Item, Label, etc.)

Schema source

Generated from world.opensemantic.quantities using osw-python-package-generator with manual fixes for known code generator issues (see oold-python#84).

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

Metadata

Release files for opensemantic.quantities 0.4.0.post1000002005000

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

Source distribution (sdist)

Source distribution for opensemantic.quantities 0.4.0.post1000002005000
File Size Uploaded
opensemantic_quantities-0.4.0.post1000002005000.tar.gz 36.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opensemantic.quantities 0.4.0.post1000002005000
File Interpreter ABI Platform
opensemantic_quantities-0.4.0.post1000002005000-py3-none-any.whl Python 3 none any Details

Total release size: 57.7 kB

Release files / opensemantic_quantities-0.4.0.post1000002005000.tar.gz

Download URL opensemantic_quantities-0.4.0.post1000002005000.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9140e301f40cf964e59c3610c6d3fd10d9803ecdc680bacc3da96426551d61a
BLAKE2b-256 checksum
How to use checksums
0a6e53b0c8980f646cce5d35672b0eb488ee9d8a4884a5fdbe47dbc44689f42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / opensemantic_quantities-0.4.0.post1000002005000-py3-none-any.whl

Download URL opensemantic_quantities-0.4.0.post1000002005000-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a8d7a28d4a266fa49d3e3b7d120aa0c5a1ecdfe9e003f4b056c09892910315
BLAKE2b-256 checksum
How to use checksums
ba42b52b349af11e55034fdc8b869fb2142d4533e8e3cb04cda0a773814f0089
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.4.0.post1000002005000 This release

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