Skip to main content

Elara Wrapper

A FastAPI middleware package to validate requests to Elara agents based on the permissions set in their ENS name.

Installation

pip install elara-wrapper

Usage

Basic Usage

import os
from fastapi import FastAPI
from elara_wrapper import add_elara_middleware

app = FastAPI()

# Add the Elara middleware with the agent name automatically injected in Oasis ROFL
middleware = add_elara_middleware(app, os.getenv("ELARA_AGENT_ENS_NAME"))


@app.get("/")
async def root():
    return {"message": "Hello World"}

Development

This package uses Poetry for dependency management:

poetry install
poetry run python example_usage.py

License

MIT License

Metadata

Release files for elara-wrapper 0.0.18

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

Source distribution (sdist)

Source distribution for elara-wrapper 0.0.18
File Size Uploaded Provenance
elara_wrapper-0.0.18.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for elara-wrapper 0.0.18
File Interpreter ABI Platform
elara_wrapper-0.0.18-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / elara_wrapper-0.0.18.tar.gz

Download URL elara_wrapper-0.0.18.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5789321b112b91b9a1466c1db5474bb9e1092b208fe86b0c029bfb11d9c3f074
BLAKE2b-256 checksum
How to use checksums
33523b80112c2dbd1165536a85e46a30956f27df4a97e653af5fd6e69d0bc6d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Darwin/24.5.0

Release files / elara_wrapper-0.0.18-py3-none-any.whl

Download URL elara_wrapper-0.0.18-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a932327c4dd174be4c01dc83465905b6d2f556f4562f67f9348a267f6b4ad07
BLAKE2b-256 checksum
How to use checksums
29a16000f4852b315747069650b11ebfe646553cdda7b7cdb26fa0589474dbb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.13.1 Darwin/24.5.0

Security for elara-wrapper 0.0.18

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