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.1.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.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bssclient-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d5788bc1c136b2250ece4558b3a49b8ede3a492edda37a5f10477cbb3d2bceb8
MD5 aebb8f2f868df65ae4a697af0db15875
BLAKE2b-256 c0e75360e5be6d27dfef2a06097eaa12b42a6d25c9deabf78c957ae2dfa209dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for bssclient-0.3.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for bssclient-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d3df02aca36410562d0ae79c6f55199b7b351c34cc737407007c12ee4e30ec8
MD5 d32c6b24871c67f8d023eccc183d9e1d
BLAKE2b-256 390be1c260f1daa8d1fdc4e87270fd70630abea93d2383c22d5af0d2e6429563

See more details on using hashes here.

Provenance

The following attestation bundles were made for bssclient-0.3.1-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