Skip to main content

Python SDK for Navian Pulse — real-time stateful event engine + structured-entity memory layer for AI agents

Project description

Navian Pulse Python SDK

pip install navian-pulse

Quick Start

from navian_pulse import PulseConfig, NavianClient

# Load TOML config — syncs SDK with engine's event types and field definitions
config = PulseConfig.from_toml_file("config/fraud-comprehensive.toml")

# Generate typed event classes (run once, check into repo)
# navian-codegen config/fraud-comprehensive.toml --output my_events.py

from my_events import PulseEventFactory

# Connect to engine
client = NavianClient("localhost:50051", config)

# Send typed events — IDE catches missing fields, SDK validates before sending
event = PulseEventFactory.cash_deposit(entity_token="cust-001", amount=9400.0)
result = client.send(event)
print(result)  # SendResult(response='ALLOW', rules=25, score=1.00)

Features

  • TOML config sync — parses known_types, fields, policies, agent scopes
  • Code generation — typed dataclass per event type with required payload fields
  • Pre-send validation — unknown event types rejected before network call
  • Field protection — HMAC-SHA-256 + AES-256-GCM + HKDF (cross-SDK conformance)
  • gRPC + HTTP fallback — connects via gRPC, falls back to REST

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

navian_pulse-2.3.0.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

navian_pulse-2.3.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

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