Skip to main content

No project description provided

Project description

OTLMOW-Model

PyPI otlmow-model-downloads Unittests PyPI - Python Version GitHub issues coverage

Summary

The main use case of otlmow-model is to provide a class model, allowing instances of OTL compliant classes. The classes have data validation and automatic conversion for attributes. Helper classes assist you to create relations between objects.

Code examples and usage

See the Readme notebook. This notebook contains examples on how to use the OTL classes and how to create relations between objects.

Project overview

This project aims to implement the Flemish data standard OTL (https://wegenenverkeer.data.vlaanderen.be/) in Python. It is split into different packages to reduce compatibility issues.

The otlmow-model project is a Python implementation model of the OTL standard. This is a collection of OTL compliant classes, which can be used to create instances of OTL objects. When assigning data to the attributes of the classes, the data is validated and converted to the correct type (if incorrect). There is support for conversion from and to Python dictionaries.

A few times during a year a new version of the OTL standard is released. The otlmow-modelbuilder project takes an OTL SQLite as input and generates the classes for the new version of the OTL standard. The otlmow-model project is then updated with the new classes. This way the otlmow-model project is always up to date with the latest version of the OTL standard.

In the otlmow-converter project, the instantiated classes can be converted to and from DAVIE compliant file formats (such as CSV, Excel, ...). There is also support for json-ld files. The objects can also be converted to dotnotation dictionaries or loaded into or from a pandas Dataframe. Because of all these possibilities, the converter has multiple dependencies on other Python packages.

The otlmow-template project produces a CSV or Excel template, based on a subset of the OTL. The created template can then be used to input data and upload into the DAVIE platform of AWV.

The otlmow-postenmapping project implements the mapping artifact and allow the creation or modification of OTL objects.

The otlmow-davie project has a REST client to the DAVIE platform to allow automation of deliveries.

The otlmow-visuals project provides a way to visualize OTL objects and their relations. The result is an interactive HTML file that can be opened in any browser.

The otlmow-gui project is a deployable local application that allows the user to create templates, edit, visualize and export data.

Installation

I recommend working with uv. Install this first:

pip install uv

Then install this package by using the uv pip install command:

uv pip install otlmow-model

If you are a developer, use this command to install the dependencies, including those needed to run the test suite.

uv pip install -r pyproject.toml --extra test

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

otlmow_model-2.18.5.9.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

otlmow_model-2.18.5.9-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file otlmow_model-2.18.5.9.tar.gz.

File metadata

  • Download URL: otlmow_model-2.18.5.9.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for otlmow_model-2.18.5.9.tar.gz
Algorithm Hash digest
SHA256 43b912cf96d815ce8bfdf518da0ed6db05ca6c407e569e1d0da0f54e21356a82
MD5 ba918c1d76613fc1d579358cfb583cde
BLAKE2b-256 c95d01d17982bddb654edb78ae1c2c670cac4d380c2025f42184e2e03c9cf3bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for otlmow_model-2.18.5.9.tar.gz:

Publisher: release.yml on davidvlaminck/OTLMOW-Model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file otlmow_model-2.18.5.9-py3-none-any.whl.

File metadata

File hashes

Hashes for otlmow_model-2.18.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 50abefebf92e471f9e02a7a18401c806007289011773f24b950eebf401e53d67
MD5 463a2103cecf1b27b900e45b3e921a3c
BLAKE2b-256 1440550c08cc5e7c8e0f8baa1091940cb7b9397ebd7f528543e32e60b40e5c08

See more details on using hashes here.

Provenance

The following attestation bundles were made for otlmow_model-2.18.5.9-py3-none-any.whl:

Publisher: release.yml on davidvlaminck/OTLMOW-Model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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