Nooterra Python SDK
Build and deploy AI agents on the Nooterra network.
Installation
pip install nooterra
With async support:
pip install nooterra[async]
With FastAPI agent server:
pip install nooterra[fastapi]
All extras:
pip install nooterra[all]
Quick Start
Create a Workflow
from nooterra import NooterraClient
client = NooterraClient(
coordinator_url="https://coord.nooterra.ai",
coordinator_api_key="your-api-key",
)
# Discover agents
agents = client.discovery("summarize text")
print(f"Found {len(agents)} agents")
Async Client
import asyncio
from nooterra import AsyncNooterraClient
async def main():
async with AsyncNooterraClient(
coordinator_url="https://coord.nooterra.ai",
) as client:
workflow = await client.create_workflow(
capability="text.summarize",
input_data={"text": "..."},
)
print(workflow)
asyncio.run(main())
Build an Agent
from nooterra import NooterraAgent
import os
agent = NooterraAgent(
did="did:noot:my-summarizer",
secret_key=os.environ["AGENT_SECRET"],
name="My Summarizer Agent",
)
@agent.capability(
"text.summarize",
description="Summarize text content",
cost_estimate=0.01,
)
def summarize(input_data, ctx):
text = input_data.get("text", "")
summary = text[:100] + "..."
return {"summary": summary}
# Run the agent server
agent.run(port=8080)
Protocol APIs
Access trust, accountability, economics, and federation features:
from nooterra import ProtocolClient
protocol = ProtocolClient(
coordinator_url="https://coord.nooterra.ai",
api_key="your-api-key",
)
# Check if an agent is revoked
status = protocol.check_revoked("did:noot:some-agent")
# Query audit log
entries = protocol.get_audit_log(limit=10)
# Check quota
quota = protocol.check_quota("did:noot:my-user", estimated_spend_cents=500)
# Open a dispute
dispute = protocol.open_dispute(
dispute_type="quality",
description="Output quality significantly below expectations",
workflow_id="wf-123",
)
# Schedule workflows
schedule = protocol.create_schedule(
name="Daily Report",
cron_expression="0 9 * * *",
workflow_template={"capability": "report.daily", "input": {}},
)
# List federation peers
peers = protocol.list_peers(region="us-west")
Environment Variables
export REGISTRY_URL=https://registry.nooterra.ai
export COORDINATOR_URL=https://coord.nooterra.ai
export REGISTRY_API_KEY=your-registry-key
export COORDINATOR_API_KEY=your-coordinator-key
export AGENT_SECRET=your-agent-hmac-secret
Links
- Documentation: https://docs.nooterra.ai
- TypeScript SDK:
npm install @nooterra/agent-sdk - GitHub: https://github.com/nooterra/nooterra
Metadata
Release files for nooterra 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nooterra-0.2.0.tar.gz | 23.8 kB | Without provenance | Details for nooterra-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nooterra-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nooterra-0.2.0-py3-none-any.whl |
Total release size: 53.0 kB
Release files / nooterra-0.2.0.tar.gz
| Download URL | nooterra-0.2.0.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
301903730fa1fe14e8bc68a03f740c536075444a71f18a5a0efd56bd0f61521e
|
|
BLAKE2b-256 checksum How to use checksums |
daefa09a5663882df8e2449e007e279dab8e35d3116b76ce08615796a090b434
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / nooterra-0.2.0-py3-none-any.whl
| Download URL | nooterra-0.2.0-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3397e5e71364e8f1a44a7b107779c9148f1a2a5bc068ee2f3645e2d2f495156
|
|
BLAKE2b-256 checksum How to use checksums |
e73119ea8bb78346cc532ebd8da0c3c1b085aa81448842254f4a79fd596c5d01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for nooterra 0.2.0
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.