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.7.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.7.0
File Size Uploaded Provenance Actions
pyocat-1.7.0.tar.gz 10.2 kB With provenance Details for pyocat-1.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 28.1 kB

Release files / pyocat-1.7.0.tar.gz

Download URL pyocat-1.7.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
68ae41dc76d9924227e0ea6ce5d6984ae1bb96ea77fdaf3445ed34e7565988fc
BLAKE2b-256 checksum
How to use checksums
0351a52a8ed38a55c419d8bde7929eb051539010ec01024e2430f1fb33a05650
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 17, 2026.

Transparency log

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

Download URL pyocat-1.7.0-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a23293cf6f587ff41f01d40c9bced7c7edb1a69554c071c6ca3472effaff17a1
BLAKE2b-256 checksum
How to use checksums
de81217e52476ac8941342559723a011e12c0bf2907b2fa15c7de16410b2e1f6
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 17, 2026.

Transparency log

Security for pyocat 1.7.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.7.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 17, 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