Fully typed, async client library for Technical Master Data Service (TMDS)
Project description
tmdsclient.py
This repository contains the package tmdsclient
.
It is an async, fully typed Python client for the Technical Master Data Service (TMDS).
Its features are handwritten and extended as we need them. So it is not autogenerated from the TMDS OpenAPI.
Installation
Install it from PyPI:
pip install tmdsclient
Usage
from yarl import URL
from tmdsclient import BasicAuthTmdsClient, BasicAuthTmdsConfig
tmds_config = BasicAuthTmdsConfig(
server_url=URL("https://my-tmds.xtk-test.org/"),
usr="my-usr",
pwd="my-pwd",
)
client = BasicAuthTmdsClient(tmds_config)
netzvertrage = await client.get_netzvertraege_for_melo("DE1234567890123456789012345678901")
Even though we did not fully replicate the TMDS data model (mainly BO4E.net + some wrapper classes),
we tried to make the client as flexible as possible.
You can use any unmapped field returned by TMDS by using the model_extra
property of pydantic.
Development
For development of this library, follow the instructions in our Python Template Repository.
tl;dr: tox -e dev
will set up a development environment for you.
Release (CI/CD)
To release a new version of this library, create a new release in GitHub.
Make sure its tag starts with v
and the version number, e.g. v1.2.3
.
Releases are not restricted to the main branch, but we prefer them to happen there.
Contribute
You are very welcome to contribute to this template repository by opening a pull request against the main branch.
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 tmdsclient-0.4.0.tar.gz
.
File metadata
- Download URL: tmdsclient-0.4.0.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7ea853899313106a577e550ce424208db038176b05513d992605627ffd97bb |
|
MD5 | 2bb836b5b09b9a59985da6235d87fff5 |
|
BLAKE2b-256 | ce18381669ce8b04abdbfa316581bb52dc819696a27851b6796222daba1527c2 |
File details
Details for the file tmdsclient-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: tmdsclient-0.4.0-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac99ab67a4cb1ca0844ddbea5f447154fd8e3c87e87f641716dcd160351df8e |
|
MD5 | f3c0ed20954c594f21b397548d3ea8d8 |
|
BLAKE2b-256 | 65fd036323d591dc2cc809c105001bd7758701860b45b137bd92d74503c69178 |