Skip to main content

Python client library to connect to BIOCAT devices.

Project description

BIOCAT Python Clients

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyocat-0.7.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyocat-0.7.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file pyocat-0.7.1.tar.gz.

File metadata

  • Download URL: pyocat-0.7.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyocat-0.7.1.tar.gz
Algorithm Hash digest
SHA256 b9202d99d7beb6d20a58c2215cfec8900f867caa0a1a3518c0f357e470c43ffa
MD5 9658dc2c8900a29c4bca484c2e530cb5
BLAKE2b-256 2675cd80b0e15d81008d672298c1957b3b155ece3514bdfdf01395a713cf7a02

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyocat-0.7.1.tar.gz:

Publisher: release.pipeline.yml on WATERCryst/pyocat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyocat-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: pyocat-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyocat-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44f5eaf8e1ac8ccf55e54f129c8ad640bcf054ffef64bc6fc9ba5dba6f40af97
MD5 11608c283a63cbd5013a655e4c2ff127
BLAKE2b-256 8d61456359b4bec6b82b636d725fdf08fe7fc1bef7c6a34a7dbb095a398314a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyocat-0.7.1-py3-none-any.whl:

Publisher: release.pipeline.yml on WATERCryst/pyocat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page