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.2

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

Built distribution (wheel)

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

Total release size: 28.1 kB

Release files / pyocat-1.7.2.tar.gz

Download URL pyocat-1.7.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e281b372cd93021c22cffc4f69457961cf286ed3efb056b51f54843b123fa7c7
BLAKE2b-256 checksum
How to use checksums
02776b6f3465abaf80ca2265710b18b48c482b8526a8b16ce31b7bead13c578c
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.7.2-py3-none-any.whl

Download URL pyocat-1.7.2-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
810d5e8be663ba98eaa1b9abb8cd284c91d659d3d2ab7bbcf90c77a327474dac
BLAKE2b-256 checksum
How to use checksums
32dfa2d08ecb632d65f63c7ff676bbde3b0a7f3593413537b700433c04eb996b
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.7.2

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.2.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