Skip to main content

OAHL Python SDK

The Python SDK for the Open Agent Hardware Layer (OAHL).

Installation

pip install oahl

Development

If you are working on the SDK locally:

pip install -e ./sdk-python

Usage

Local Client

from oahl import OahlClient

client = OahlClient("http://localhost:3000")

# List devices
devices = client.get_devices()

# Start a session
session = client.start_session("my-device-id")

# Execute a capability
result = client.execute(session['id'], "camera.capture", {"resolution": "1080p"})

# Stop session
client.stop_session(session['id'])

Cloud Client

from oahl import CloudClient

client = CloudClient(agent_api_key="your-api-key")

# Query capabilities across the network
capabilities = client.get_capabilities({"q": "camera"})

# Request a session
session_req = client.request_session({"capability": "camera.capture"})
session_id = session_req['session_id']

# Execute
result = client.execute(session_id, {
    "capability": "camera.capture",
    "params": {"resolution": "720p"}
})

# Stop
client.stop_session(session_id)

Metadata

Release files for oahl 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oahl 1.0.1
File Size Uploaded Provenance Actions
oahl-1.0.1.tar.gz 3.0 kB Without provenance Details for oahl-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.3 kB

Release files / oahl-1.0.1.tar.gz

Download URL oahl-1.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
66f0268b23e0ec0a5156e6b6136f184dcd1d0a8990a41da8421671bebd491ac0
BLAKE2b-256 checksum
How to use checksums
69a90b9dec9384898d1351afc3788157f249afa44e227e66d9b4215243c942aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / oahl-1.0.1-py3-none-any.whl

Download URL oahl-1.0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3a7e5ae74c3f2db0b321ada9eac1b84650b86f1ff58ef80ad1e6bae16980641
BLAKE2b-256 checksum
How to use checksums
f2acca728a25302aae1c2e333f253aa10e4becff6c1f9e749f9394bb25e5d846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Security for oahl 1.0.1

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.

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