BIOCAT Python Client Library
About
A Python client library to connect to BIOCAT devices.
Installation
pip install pyocat
Usage
import asyncio
import httpx
from pyocat import AsyncAuth, AsyncApiClient
async def main():
async with httpx.AsyncClient() as client:
auth = AsyncAuth(client, "<api-key>")
api = AsyncApiClient(auth)
state = await api.get_state()
print(state)
if __name__ == "__main__":
asyncio.run(main())
Development
Execute to download dependencies:
poetry install
Execute to run the unit tests:
poetry run pytest -vv
Execute to build the library:
poetry build
License
MIT License
Copyright (c) 2026 WATERCryst GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Release files for pyocat 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyocat-1.3.0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyocat-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.5 kB
Release files / pyocat-1.3.0.tar.gz
| Download URL | pyocat-1.3.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71f76fd0082f4c674ebd4db8847416610f21b8fb890db1d970277bbbe3cbeb48
|
|
BLAKE2b-256 checksum How to use checksums |
d6052945ec5f3554e8b08191e3bf5261c423c7e92d2cb41a9142509758d0879d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / pyocat-1.3.0-py3-none-any.whl
| Download URL | pyocat-1.3.0-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c3aa7e7e30d76bc4c95a28144f831d370b0272077087c3bf48a22cf09f0a672
|
|
BLAKE2b-256 checksum How to use checksums |
c1cf8c7707022e27b1374ca4024845cdbee5c862a1f733cd57310bb994a55f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log