Skip to main content

nono Python SDK

A type-safe async Python SDK for the nono orchestrator server.

Features

  • Fully async - Built on httpx for async HTTP requests
  • Type-safe - Full Pydantic models with type hints
  • Kebab-case compatible - Handles both snake_case and kebab-case field names
  • Auto-configuration - Reads NONO_HOST and NONO_PORT from environment variables
  • Comprehensive - Covers all nono API endpoints

Installation

# From the sdks/python directory
pip install -e .

# Or with uv
uv pip install -e .

Quick Start

import asyncio
from nono import NonoClient, CallingFrame, OperationPushValue

async def main():
    # Client reads NONO_HOST and NONO_PORT from environment
    async with NonoClient() as client:
        # Read configuration
        config = await client.config_read()
        print(f"Config: {config.config}")

        # Create a session
        frame = CallingFrame(
            calling_entity_id="my-entity",
            data={"frame_data": "initial"},
            value_stack=[],
            op_stack=[],
            handler_stack=[],
        )

        session_id = await client.session_create(
            name="my-session",
            data={"counter": 0},
            frame=frame,
        )
        print(f"Created session: {session_id}")

        # Execute operations
        await client.frame_push_value(session_id, 42)
        
        # Read session data
        data = await client.session_get_data(session_id)
        print(f"Session data: {data}")

        # Clean up
        await client.session_delete(session_id)

asyncio.run(main())

License

MIT

Metadata

Release files for nono 0.1.0

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

Source distribution (sdist)

Source distribution for nono 0.1.0
File Size Uploaded
nono-0.1.0.tar.gz 21.8 kB Details

Built distribution (wheel)

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

Total release size: 27.7 kB

Release files / nono-0.1.0.tar.gz

Download URL nono-0.1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c1d984c725766270b5c367910e0627f9038463206aeb1a4e140d3687d6a6bb21
BLAKE2b-256 checksum
How to use checksums
14cdab6624dd31639008b3d21eae1b619b0cd8d5c5d71b12d49d61276d390bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / nono-0.1.0-py3-none-any.whl

Download URL nono-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
792bbd327a663523ff657276cacdd017dd8ce66a76ad2cb31c88f439bda45d98
BLAKE2b-256 checksum
How to use checksums
e492c8d6a7dac0e02e639ae7e5d3cb1544ae3b8ebf1e96d8d63faf06284c6f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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