Fully typed, async client library for Basic Supply Service (BSS)
Project description
bssclient.py
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1639db53364852763d23b74b38000ba91d819369164c52321e7a0d30e2a889d8
|
|
| MD5 |
b0358e34b4f95e791ad04c0db5a2e246
|
|
| BLAKE2b-256 |
f981b45f5ce7767ebab329074c92ef1c8c7d6b18872d15a6f6f2baba7d97333a
|
Provenance
The following attestation bundles were made for bssclient-0.3.0.tar.gz:
Publisher:
python-publish.yml on Hochfrequenz/bssclient.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bssclient-0.3.0.tar.gz -
Subject digest:
1639db53364852763d23b74b38000ba91d819369164c52321e7a0d30e2a889d8 - Sigstore transparency entry: 163858205
- Sigstore integration time:
-
Permalink:
Hochfrequenz/bssclient.py@e08187c90c9b7d0b1a7734422170a4aa163a7007 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Hochfrequenz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e08187c90c9b7d0b1a7734422170a4aa163a7007 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
896616f15e8de8a2d4850689250055fd2698907414c5021f0036684428b7d2ba
|
|
| MD5 |
afcb5471372120c831f18abf1ece282f
|
|
| BLAKE2b-256 |
e6dd2ecf0e47ecc731b7c3ec10dddfbcf163aab08a0f2d5e6bdb5b86e56077a0
|
Provenance
The following attestation bundles were made for bssclient-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on Hochfrequenz/bssclient.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bssclient-0.3.0-py3-none-any.whl -
Subject digest:
896616f15e8de8a2d4850689250055fd2698907414c5021f0036684428b7d2ba - Sigstore transparency entry: 163858208
- Sigstore integration time:
-
Permalink:
Hochfrequenz/bssclient.py@e08187c90c9b7d0b1a7734422170a4aa163a7007 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Hochfrequenz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e08187c90c9b7d0b1a7734422170a4aa163a7007 -
Trigger Event:
release
-
Statement type: