Skip to main content

Rustic AI API

This module provides the backend server for the Rustic AI framework. It provides the interface for creating and interacting with guilds. The interaction with a guild is supported through a Websocket interface, allowing for real-time communication and updates.

Installing

pip install rusticai-api

Note: It depends on rusticai-core and rusticai-ray.

Running from source

  1. Install required dependencies:
poetry install --with dev
poetry shell
  1. Start the server:
# If using an external SQL database, expose RUSTIC_METASTORE to the corresponding url 
# For example, if using postgres, export RUSTIC_METASTORE=postgresql+psycopg://user:pwd@localhost:5432
./scripts/dev_server.sh

Server will be available at http://localhost:8880 by default. The API documentation can be accessed at http://localhost:8880/docs.

Running from source with Telemetry

  1. Install required dependencies:
poetry install --with dev
poetry shell
  1. Start Zipkin server - requires Docker
sudo chmod 777 scripts/zipkin/data-tmp/
./scripts/zipkin/zipkin_up.sh
  1. Set the otel env variables -
export OTEL_SERVICE_NAME=GuildCommunicationService
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://localhost:4318/v1/traces"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"

Refer docs for details.

  1. Start the server -
./scripts/dev_server_with_otel.sh

Traces will be visible in Zipkin UI at http://localhost:9411/zipkin/

Note: To stop the Zipkin server, use ./scripts/zipkin/zipkin_down.sh

To run with all the available rusticai packages, use the poetry environment from the root directory, and prefix commands with api/ — for example, use ./api/scripts/dev_server_with_otel.sh instead of ./scripts/dev_server_with_otel.sh.

Metadata

Release files for rusticai-api 1.5.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 rusticai-api 1.5.0
File Size Uploaded Provenance Actions
rusticai_api-1.5.0.tar.gz 29.0 kB Without provenance Details for rusticai_api-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rusticai-api 1.5.0
File Interpreter ABI Platform Actions
rusticai_api-1.5.0-py3-none-any.whl Python 3 none any Details for rusticai_api-1.5.0-py3-none-any.whl

Total release size: 66.3 kB

Release files / rusticai_api-1.5.0.tar.gz

Download URL rusticai_api-1.5.0.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1aef2a4551efaeb08d12743825f4ed2d75597f69ef8f3ef64f3dd45c523b6b03
BLAKE2b-256 checksum
How to use checksums
dc639e1fd8ba9178dddcc1ad09a703c8cba9de0b821dabc6cad82dee5003298c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.13.12 Linux/7.0.0-1020-azure

Release files / rusticai_api-1.5.0-py3-none-any.whl

Download URL rusticai_api-1.5.0-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28abc53c8d2cda3777356b9a575631c3d1d07a90300e3976e43a23e871869c4f
BLAKE2b-256 checksum
How to use checksums
e9bd7305a3a20330778857e16eb6cc267d6b74f5298cd2507304cf45e42b9a9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.13.12 Linux/7.0.0-1020-azure

Security for rusticai-api 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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