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
File details
Details for the file bssclient-0.1.3.tar.gz
.
File metadata
- Download URL: bssclient-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3feb7834e6920ae2a4382217b49f77edcafebc721eaa6ac96dcbdd11e3342f9 |
|
MD5 | 7f19f0d0ddfadfdbed07d8854f72a7a5 |
|
BLAKE2b-256 | e807f7a5d5989786d30f2302f44a62e167bd2326a5ccb56494aaaed9a0b48093 |
File details
Details for the file bssclient-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: bssclient-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a099eb00ba6571eee6f90a4ff3ad937155b1a36c80d44f4fe69b6d4576987a44 |
|
MD5 | ec4b1d3b8e574a25fcbf1551ceca78b9 |
|
BLAKE2b-256 | 3a3085cdacdab4d0728eeba2e2c90a55c0f27b0434ceb09257dba80f0ea28e9e |