Skip to main content

POE Python Client SDK (poe-py / poe-client)

The official Python client SDK for the POE (Predictive Operational Edge) intelligence daemon.

Designed for downstream systems engineers, telemetry monitoring pipelines, robotics scripts, and automated control loops.

Features

  • Type-Safe Primitive Extraction: Direct extraction of continuous Gauge, binary Gate, categorical Route, semantic Noul, discrete Choice, and ordinal Score heads.
  • Transparent Backpressure Resilience: Automatic exponential backoff with full jitter on HTTP 429 OVERLOADED and 503 DEADLINE_EXCEEDED respecting Retry-After headers.
  • Hardware Fallback Awareness: Immediate detection of neural graph fallbacks (response.is_fallback, fallback_triggered).
  • Synchronous & Asynchronous: High-performance sync (PoeClient) and async (AsyncPoeClient) clients built on top of httpx.

Installation

pip install poe-edge

Quickstart

from poe_client import PoeClient
from poe_client.exceptions import PoeOverloadError

client = PoeClient(
    base_url="http://localhost:8080",
    max_retries=3,
    base_backoff_ms=50
)

try:
    response = client.evaluate(
        domain_id="drone_flight",
        context_log="Winds at 40 knots. Vision sensor degraded. GPS altitude spiking."
    )

    # 1. Dictionary-like or attribute access
    altitude = response.gauges["altitude"].predicted_value
    sigma = response.gauges["altitude"].uncertainty_sigma
    is_breached = response.gates["geofence_breach"].decision
    maneuver = response.routes["maneuver"].selected

    # 2. Direct helper access
    alt = response.gauge("altitude").predicted_value
    breached = response.gate("geofence_breach")  # returns bool
    man = response.route("maneuver")            # returns str

    # 3. Fallback inspection
    if response.gauges["altitude"].fallback_triggered:
        print("Warning: Altitude gauge executed safe fallback envelope!")
    if response.is_fallback:
        print("Degraded heads:", response.fallback_heads)

    print(f"Maneuver: {maneuver}, Altitude: {altitude}m (±{sigma})")

except PoeOverloadError as e:
    print(f"Edge daemon saturated after {e.retries} retries: {e}")

Async Usage

import asyncio
from poe_client import AsyncPoeClient

async def main():
    async with AsyncPoeClient("http://localhost:8080") as client:
        response = await client.evaluate("drone_flight", "Clear skies, nominal telemetry")
        print("Altitude:", response.gauge("altitude").predicted_value)

asyncio.run(main())

Release files for poe-edge 1.0.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 poe-edge 1.0.0
File Size Uploaded
poe_edge-1.0.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poe-edge 1.0.0
File Interpreter ABI Platform
poe_edge-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / poe_edge-1.0.0.tar.gz

Download URL poe_edge-1.0.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d852c7c3ba2a908f67059a67a4d913d24049d05ed017a311a1be5d96987ecb13
BLAKE2b-256 checksum
How to use checksums
9eab1792304c271520fb3a77c57a738d5b2e15936b8f8089dc293d1883171785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Release files / poe_edge-1.0.0-py3-none-any.whl

Download URL poe_edge-1.0.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50cd76b53e4d13026ca4af06adf2e217c54d36c720736ca938fcb2d68c57ecfa
BLAKE2b-256 checksum
How to use checksums
da9dd3b9b21ea7e37e2db9e1df34b0a60508ee0aaf1e7dc94fd6758a8f25d975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Release history Release notifications | RSS feed

This release

1.0.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