Skip to main content

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


Download files

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

Source Distribution

agent-client-hufr-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

agent_client_hufr-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for agent-client-hufr-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c0292585f8f517c3173f3f5a58bf00adea1ed185dfd200452a7dce7c7b17fb95
MD5 1d294f8bb18ac5d420ff35514216b224
BLAKE2b-256 be978f070dbe5609c6a75fa174adc4334bd74fd642101cd5aeb5627649c5deb8

See more details on using hashes here.

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

Hashes for agent_client_hufr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acc1be42465f67f2c6fbe932dfbc94d1489737777cb2fc3644f793bfede5245a
MD5 c9696b0ed24dea059a58d70964a28e70
BLAKE2b-256 95576d3824f57833aab38975b86d0697ae8ecfa8b276ea5506b64e579312135f

See more details on using hashes here.

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