Skip to main content

Autonoma SDK — automate the Autonoma Environment Factory endpoint

Project description

Autonoma Python SDK

Python implementation of the Autonoma Environment Factory SDK.

Package

Package Description
autonoma-sdk Core protocol (HMAC, refs, templates, graph, handler)
autonoma-sdk[sqlalchemy] SQLAlchemy ORM adapter
autonoma-sdk[flask] Flask server adapter
autonoma-sdk[fastapi] FastAPI server adapter

Quick Start

Install

pip install autonoma-sdk
# With extras:
pip install "autonoma-sdk[sqlalchemy,fastapi]"

FastAPI + SQLAlchemy

from autonoma.handler import handle_request, PROTOCOL_VERSION
from autonoma.types import HandlerConfig, HandlerRequest

config = HandlerConfig(
    shared_secret="your-shared-secret",
    signing_secret="your-signing-secret",
    adapter=my_adapter,
    auth=lambda user: {
        "headers": {"Authorization": f"Bearer {create_session_token(user['id'])}"}
    },
)

@app.post("/api/autonoma")
async def autonoma_endpoint(request: Request):
    body = await request.body()
    headers = dict(request.headers)
    req = HandlerRequest(body=body.decode(), headers=headers)
    result = handle_request(config, req)
    return JSONResponse(content=result.body, status_code=result.status)

Status

The Python SDK core modules (graph, hmac, refs, fingerprint, template) are complete and pass the conformance test suite. ORM and server adapters are planned.

Commands

pip install -e ".[dev]"   # install in development mode
pytest                     # run tests

Documentation

For protocol-level documentation, see the root protocol/ directory.

Project details


Release history Release notifications | RSS feed

This version

0.1.4

Download files

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

Source Distribution

autonoma_ai-0.1.4.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

autonoma_ai-0.1.4-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file autonoma_ai-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for autonoma_ai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bdd6c9fc6378af835bcb01cd9732a34f5d45f2d8aa87efe8650067da89c768fc
MD5 ef09c175138061fed867db93be92de45
BLAKE2b-256 79e270cea30adf6b3160d90801ab006d32678d7f16b9d7034a1eece544d1649b

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonoma_ai-0.1.4.tar.gz:

Publisher: publish.yml on Autonoma-AI/sdk

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

File details

Details for the file autonoma_ai-0.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for autonoma_ai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d3de4474b392c781e78c73d73089463ad338c1939577735ded065bb7b24b07cb
MD5 3d5259c27aa3864101d301166dc67f0f
BLAKE2b-256 ea5650369865a0428d9ec41f8d2c88af8df90b5a344b310077ed354d26aeee08

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonoma_ai-0.1.4-py3-none-any.whl:

Publisher: publish.yml on Autonoma-AI/sdk

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