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,
)

@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.2

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.2.tar.gz (23.4 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.2-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autonoma_ai-0.1.2.tar.gz
  • Upload date:
  • Size: 23.4 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.2.tar.gz
Algorithm Hash digest
SHA256 f352260ca84cd6bc0db77728633768ec1a8af09c950ba661d9db832101dd2d5f
MD5 73731b36e8f8eceafccba6c244fabed2
BLAKE2b-256 e58d9cb7f483c0855e196d0047bf2bc09ca0853fb4b7a0c27740178f28263580

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonoma_ai-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: autonoma_ai-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c14edbfe4a847c53bb08bccf8fcc5ff645497702e2e0797932c594698da8f1
MD5 41faf1126832e22a65a52d82fde57425
BLAKE2b-256 5631055c995f3f8749d355588f152019d7b786ae6eba15f7e742dad4e95e47a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonoma_ai-0.1.2-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