botrun-hatch-client
A client library for interacting with the BotRun Flow Language (botrun_flow_lang) API. This library provides a simple and intuitive interface for applications to communicate with the BotRun Flow Language service using aiohttp for asynchronous requests.
About
botrun-hatch-client is designed to be a lightweight and easy-to-use async client for the BotRun Flow Language. It abstracts away the complexity of API communication, providing a simple interface for other applications to leverage BotRun's capabilities asynchronously.
Current Integrations
This client is currently integrated with:
- botrun_back: Backend service utilizing the client for core functionality
- botrun_ask_folder: Tool that uses the client to analyze folder structures
Installation
pip install botrun-hatch-client
Basic Usage
import asyncio
from botrun_hatch_client.client import HatchClient
async def main():
# Initialize with your API key
client = HatchClient(api_key="your_api_key")
try:
# Validate your connection
status = await client.validate_connection()
print(status)
# Make an API request
response = await client.make_request(
endpoint="some/endpoint",
method="POST",
data={"key": "value"}
)
print(response)
# Format a payload for the API
payload = {
"data": {
"key": "value",
"nested": {
"subkey": "subvalue"
}
}
}
formatted = client.format_payload(payload)
print(formatted)
finally:
# Always close the client session when done
await client.close()
# Run the async function
asyncio.run(main())
Development
Prerequisites
- Python 3.11+
- Poetry for dependency management
Setup
# Clone the repository
git clone <repository-url>
cd botrun-hatch-client
# Install dependencies
poetry install
Running Tests
# Run tests using the unittest framework
./run_tests.py
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for botrun-hatch-client 5.5.211
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| botrun_hatch_client-5.5.211.tar.gz | 4.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| botrun_hatch_client-5.5.211-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / botrun_hatch_client-5.5.211.tar.gz
| Download URL | botrun_hatch_client-5.5.211.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86f2ff747d9ccb7ff74b0116d133fb872d7ff862ab24173cf5936b9de84ecd3f
|
|
BLAKE2b-256 checksum How to use checksums |
9e2c45a2f5f69355d770605a985d05f0a9e8b83a52905ee18acb74d5f3b3875a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / botrun_hatch_client-5.5.211-py3-none-any.whl
| Download URL | botrun_hatch_client-5.5.211-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9ffeb99c37e8a29a3a9f5d8c5656c8eb9971be1114a456af5c835f16bc1918c
|
|
BLAKE2b-256 checksum How to use checksums |
6cebc664224a636bf72b3aec9c2e45a492cf7619f5804af4bd8650dbab7894df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for botrun-hatch-client 5.5.211
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.