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.6.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.6.0
File Size Uploaded Provenance Actions
pyocat-1.6.0.tar.gz 9.9 kB With provenance Details for pyocat-1.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 27.5 kB

Release files / pyocat-1.6.0.tar.gz

Download URL pyocat-1.6.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fdc0b1bff9e8bdd91300b3fdbb759bb57b04ff890987e580431ffebeab834203
BLAKE2b-256 checksum
How to use checksums
bd9d30b25ee138d80d72a4e9443cba29ee49762102a15ca36d7c2311d8a1e45d
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 Oct 28, 2026.

Transparency log

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

Download URL pyocat-1.6.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
054255975ea8e89a6291023ee931db5f50b65b26c672a7a0e9cce7a5934b176f
BLAKE2b-256 checksum
How to use checksums
e965d88063e7ca8c9631fe2c3562d0ee9d820f82d40722da149079b0c5d47a53
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 Oct 28, 2026.

Transparency log

Security for pyocat 1.6.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.6.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 Oct 28, 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