Skip to main content

BIOCAT Python Client Library

Test Python Package PyPI version PyPI License

About

A Python client library to connect to BIOCAT devices.

Installation

pip install pyocat

Usage

import asyncio
import httpx2

from pyocat import AsyncAuth, AsyncApiClient

async def main():
    async with httpx2.AsyncClient(timeout=10) as client:
        auth = AsyncAuth(client, "<api-key>")
        api = AsyncApiClient(auth)
        state = await api.get_state()
        print(state)

if __name__ == "__main__":
    asyncio.run(main())

Development

Set-up poetry and venv:

sudo apt update
sudo apt install pipx -y
pipx ensurepath
pipx install poetry
source ~/.bashrc
poetry install

Execute to download dependencies:

poetry install

Execute to run the unit tests:

poetry run pytest -vv

Execute to build the library:

poetry build

Release

Update version string in pyproject.toml. On GitHub navigate to Releases and create a new tag and release with the same version. The CI/CD pipeline autoamtically builds and releases the new version on PyPI.

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.

Metadata

Release files for pyocat 1.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyocat 1.9.0
File Size Uploaded Provenance Actions
pyocat-1.9.0.tar.gz 10.2 kB With provenance Details for pyocat-1.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyocat 1.9.0
File Interpreter ABI Platform Actions
pyocat-1.9.0-py3-none-any.whl Python 3 none any Details for pyocat-1.9.0-py3-none-any.whl

Total release size: 28.4 kB

Release files / pyocat-1.9.0.tar.gz

Download URL pyocat-1.9.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4397444c43f7e0fa50432cee729b6f3f3b8c1b25d19ca74ce5149b82d4f8c3d5
BLAKE2b-256 checksum
How to use checksums
a1e72f19b60344551e4fa94cf66e0abbdf6cd6141cc5925b437d2841ba6a5a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / pyocat-1.9.0-py3-none-any.whl

Download URL pyocat-1.9.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f02b54b9df9c15789ba06a9f01225c7ffce47305cedf37b84f99029485ac2fcd
BLAKE2b-256 checksum
How to use checksums
e40b4ad0b75ae7b1056bbc68ddf7351d904d2c3c34142056da8620af51eab0ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for pyocat 1.9.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyocat-1.9.0.tar.gz

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 Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page