Skip to main content

Fully typed, async client library for Technical Master Data Service (TMDS)

Project description

tmdsclient.py

License: MIT Python Versions (officially) supported Pypi status badge Unittests status badge Coverage status badge Linting status badge Black status badge

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 TmdsClient, TmdsConfig

tmds_config = TmdsConfig(
    server_url=URL("https://my-tmds.xtk-test.org/"),
    usr="my-usr",
    pwd="my-pwd",
)
client = TmdsClient(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


Download files

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

Source Distribution

tmdsclient-0.2.3rc1.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

tmdsclient-0.2.3rc1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file tmdsclient-0.2.3rc1.tar.gz.

File metadata

  • Download URL: tmdsclient-0.2.3rc1.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for tmdsclient-0.2.3rc1.tar.gz
Algorithm Hash digest
SHA256 5d9e7d58df2359d53fdd13fdd133adb4b28a3b120a249dea9d1662bc9acaae12
MD5 de0c63bf8369bdb1b1eea1189704f0ac
BLAKE2b-256 b1e00d6b42c6ab77ef4edf5e3762b5cf3ed5148583cb4e3c2b608769c638d1b8

See more details on using hashes here.

File details

Details for the file tmdsclient-0.2.3rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for tmdsclient-0.2.3rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 c13d7c382ef8787e15fcfa5acfdaf3c2c62a949ec1ab850b445fdbedc28279cb
MD5 d282de978ab551023cb80e041e166d8f
BLAKE2b-256 570d35a497856da7d8b3c02a91f8f31475b3b9de4995b6eba7c36629b9dd4860

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page