The prometheux_chain Python SDK provides a high-level interface for working with all Prometheux platform features programmatically.

Installation

Configuration

First API Call

Install into Jupyter

To manually install the library in your Jupyter Lab or Jupyter Notebook follow these steps:
  1. Create a new notebook with kernel Python and run the following commands in a dedicated cell
  2. Clone the repo
  3. Navigate into the project and install it
  4. Copy the project into site-packages to allow importing and using it
  5. Restart the kernel
To update an existing installation of Prometheux Chain follow these steps:
  1. Uninstall the project
  2. Clone the repo if it is not present
    else update it to the latest changes
  3. Navigate into the project and install it
  4. Remove an existing installation if present
  5. Copy the project into site-packages to allow importing and using it
  6. Restart the kernel

Response Format

All REST API responses follow a consistent format:
The Python SDK automatically handles responses and returns the relevant data directly.

Streaming responses

Some endpoints stream their output incrementally — the AI Agent chat, Context Layer auto-seed, and the concept run-stream. In the SDK these are exposed as generator functions: iterate over them to consume events as they arrive instead of waiting for the whole response.
Each yielded event mirrors the NDJSON frames documented on the corresponding API Reference page. Streams terminate with a done event, or an error event if something goes wrong mid-stream.

API Categories

For a flat index of every px.<function> mapped to its endpoint, see the SDK Function Reference.
The API is organized into the following categories:

Error Handling

The SDK raises exceptions for errors:

Requirements

  • Python 3.9 or higher
  • Install via pip: pip install prometheux_chain