A Python client library for communicating with the Flask server
Project description
Agent Client
A Python client library for communicating with a Flask server. It provides an abstraction layer for interacting with multiple services, such as motor telemetry, sensor data, system logs, and more.
Installation
pip install agent-client
USAGE
from agent.client import ServerClient
from agent.services.motor_telemetry import MotorTelemetryClient
# Initialize the core client
client = ServerClient(base_url="http://localhost:5000/api")
# Initialize the motor telemetry service
motor_client = MotorTelemetryClient(client)
# Example: Send motor telemetry data
motor_telemetry_data = {
"motor_identifier": "left_arm",
"control_signals": {"pwm": 120, "voltage": 5.0},
"mechanical_feedback": {"speed": 50, "torque": 10},
"timestamp": "2025-01-06T16:00:00"
}
response = motor_client.send_telemetry(motor_telemetry_data)
print(response)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent-client-hufr-1.0.0.tar.gz.
File metadata
- Download URL: agent-client-hufr-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0292585f8f517c3173f3f5a58bf00adea1ed185dfd200452a7dce7c7b17fb95
|
|
| MD5 |
1d294f8bb18ac5d420ff35514216b224
|
|
| BLAKE2b-256 |
be978f070dbe5609c6a75fa174adc4334bd74fd642101cd5aeb5627649c5deb8
|
File details
Details for the file agent_client_hufr-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agent_client_hufr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acc1be42465f67f2c6fbe932dfbc94d1489737777cb2fc3644f793bfede5245a
|
|
| MD5 |
c9696b0ed24dea059a58d70964a28e70
|
|
| BLAKE2b-256 |
95576d3824f57833aab38975b86d0697ae8ecfa8b276ea5506b64e579312135f
|