Skip to main content

AveniECA Python SDK

Stream real-time data to digital twins via Kafka and interact with AveniECA’s powerful REST APIs for state management, predictions, and semantic retrieval.

from
avenieca.producers
import
Stream
from
avenieca.data
import
Signal


stream = Stream(config, sync_rate=
1
)
stream.publish(handler)

Quick Start

Get up and running with AveniECA in minutes

1

Install the SDK

Install the package using pip:
pip install avenieca-python
2

Configure your connection

Set up your Kafka broker or REST API configuration:
from avenieca.config.broker import Broker

config = Broker(
    url=os.environ["KAFKA_URL"],
    sub_topic="your_twin_topic",
    group="your_group",
    pub_topic=""
)
3

Start streaming

Stream data to your digital twin:
from avenieca.producers import Stream
from avenieca.data import Signal

def handler():
    return Signal(
        valence=10.0,
        state=[0.2, 0.3, 0.8]
    )

stream = Stream(config=config, sync_rate=1)
stream.publish(handler)

Explore the SDK

Discover what you can build with AveniECA

Kafka Streaming

Stream continuous data to digital twins with producers and consume signals with custom handlers.

REST API Client

Interact with ESS, sequences, predictions, documents, and retrieval endpoints.

State Management

Store and retrieve episodic state storage (ESS) for your digital twins.

Predictions

Use Cortex to predict next states based on historical sequences and patterns.

Document & Embeddings

Manage documents with automatic embedding generation for semantic search.

Semantic Retrieval

Query your data using natural language with vector-based retrieval.

Core Features

Everything you need to work with digital twins

Real-time Streaming

Stream continuous data to digital twins with configurable sync rates and event-driven publishing.

State Management

Store, retrieve, and search episodic state storage with support for aggregates and sequences.

Predictive Analytics

Predict next states using Cortex based on historical patterns and current twin configurations.

Semantic Search

Query your data using natural language with document embeddings and vector-based retrieval.

Ready to build with digital twins?

Start streaming data and interacting with AveniECA in minutes with our comprehensive Python SDK.

Get Started Now