Python databinding for the Units Markup Language (UnitsML) lite schema
Project description
UnitsML XML unit markup schema
Introduction
This schema was originally developed and published by NIST. The schema is used by the OCX schema which is managed by the OCX Consortium. The UnitsML schema is publihsed by the OCX Consortium under the original LICENSE.
Changelog
Project structure
Root
└──ocx_unitsml
└───ocx_unitsml_0918
How to contribute
The schema file is maintained using an XML editor like Altova XMLSpy.
- Installation: Simply download the schema files from the repository or clone it using git.
- Create an Issue for the proposed schema change. Follow the recipe on the Wiki on how to register an issue.
- Then create a branch from the issue, check out the branch and implement the proposed changes.
- When the implementation is completed, create a pull request.
- The pull request will have to be approved by the OCXStandard maintainer before it can be included in the working draft.
Schema versioning
The UnitsML schema is following the Python PEP 440 versioning recommendations.
Following PEP 440, the canonical public version identifiers MUST comply with the following scheme:
[N!]N(.N)*[{a|b|rc}N][.postN][.devN]
see the PEP 440 for a detailed explanation.
tbump
versioning tool
The Python tbump
tool is used to automate and bump schema versions. tbump
also provides the possibility for pre- and post-commit actions.
The project config file pyproject.toml
contains the tbump settings.
Usage
Assume that the current schema version is 0.9.18
. To bump the schema version to a new version 1.0.0
version, the following command can be issued:
> tbump 1.0.0
Naive databinding
A set of Python dataclasses are autogenerated after each version release, see databindings
Generating databindings
Public License
The UnitsML standard is governed by the OASIS Intellectual Property Rights Policy (the License).
Unless required by applicable law or agreed to in writing, the UnitsML standard and any derivative works re-distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. The OCX Consortium is not liable to any use whatsoever of the distributed standard or derivative works based on the standard.
Credits
NIST for the original schema development and OASIS UnitsML TC for publishing the schema version 1.0
in 2011.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ocx_unitsml-0.9.18.tar.gz
.
File metadata
- Download URL: ocx_unitsml-0.9.18.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 014291d4d3be057b5fd5d61958ea3c17344ac36ca6589e05a9c2ecc113ab64f2 |
|
MD5 | 48613c4fbb7fc9e3be7c46eeba0614ac |
|
BLAKE2b-256 | d6e1f42b50c171508c249b9f2a8d2c65776155cd4dfd611c1d64216a7d5637d4 |
File details
Details for the file ocx_unitsml-0.9.18-py3-none-any.whl
.
File metadata
- Download URL: ocx_unitsml-0.9.18-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f2bc4f50853cdef907b5860b51fd3ddcbfd10fd106ff3dc8664eb428150741 |
|
MD5 | 44ccbe7c3838313d77ae185e0a6c3473 |
|
BLAKE2b-256 | a1c579052e32e2566b39c8fad827064040ca02cd4fd34488e50db2919c7cb399 |