Skip to main content

Fully typed, async client library for Basic Supply Service (BSS)

Project description

bssclient.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 bssclient. It is an async, fully typed Python client for the Basic Supply Service (BSS).

Its features are handwritten and extended as we need them. So it is not autogenerated from the BSS OpenAPI.

Installation

Install it from PyPI:

pip install bssclient

Usage

from yarl import URL
from bssclient import bssclient, BssConfig

bss_config = BssConfig(
    server_url=URL("https://my-bss.xtk-test.org/"),
    usr="my-usr",
    pwd="my-pwd",
)
client = bssclient(bss_config)
ermittlungsauftraege = await client.get_all_ermittlungsauftraege()

Even though we did not fully replicate the BSS data model, 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

bssclient-0.3.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

bssclient-0.3.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file bssclient-0.3.0.tar.gz.

File metadata

  • Download URL: bssclient-0.3.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for bssclient-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1639db53364852763d23b74b38000ba91d819369164c52321e7a0d30e2a889d8
MD5 b0358e34b4f95e791ad04c0db5a2e246
BLAKE2b-256 f981b45f5ce7767ebab329074c92ef1c8c7d6b18872d15a6f6f2baba7d97333a

See more details on using hashes here.

Provenance

The following attestation bundles were made for bssclient-0.3.0.tar.gz:

Publisher: python-publish.yml on Hochfrequenz/bssclient.py

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

File details

Details for the file bssclient-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bssclient-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for bssclient-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 896616f15e8de8a2d4850689250055fd2698907414c5021f0036684428b7d2ba
MD5 afcb5471372120c831f18abf1ece282f
BLAKE2b-256 e6dd2ecf0e47ecc731b7c3ec10dddfbcf163aab08a0f2d5e6bdb5b86e56077a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for bssclient-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on Hochfrequenz/bssclient.py

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