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.1.3rc1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

bssclient-0.1.3rc1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file bssclient-0.1.3rc1.tar.gz.

File metadata

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

File hashes

Hashes for bssclient-0.1.3rc1.tar.gz
Algorithm Hash digest
SHA256 0598fcae39f75cb7ddd842419933c00b0265379c25c842aedc2d1c4ee72b8c05
MD5 f58271b20cac509b9845f6ee1698a036
BLAKE2b-256 0fd26d6d3272507a4c7ec6f83c9ef8aaa7ff1bdde8fee722cb1f3ab391548381

See more details on using hashes here.

File details

Details for the file bssclient-0.1.3rc1-py3-none-any.whl.

File metadata

  • Download URL: bssclient-0.1.3rc1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for bssclient-0.1.3rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4d1810d8c943fa8634173ef918484467440fc8f74d60ff068db5a82e7b1f32
MD5 c86125e8e81862cc3cd6bf04e3fbb721
BLAKE2b-256 d4679411ea15a2e3e883f96e35a06030d1e778789736d832ca1f57ddd3273913

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