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.

Download files

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

Source Distribution

rusticai_api-1.3.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

rusticai_api-1.3.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file rusticai_api-1.3.0.tar.gz.

File metadata

  • Download URL: rusticai_api-1.3.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-1020-azure

File hashes

Hashes for rusticai_api-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9fb3695697adddf538f5b3400d3b79a787e470a0fc96df689f2f2b776903f090
MD5 c1b279d9bc33afc9cd53d5ccd9bb95c9
BLAKE2b-256 e4a588203dad8504c8538f583b10445cd1e2e64683897219db4dbabdd123a4e4

See more details on using hashes here.

File details

Details for the file rusticai_api-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: rusticai_api-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-1020-azure

File hashes

Hashes for rusticai_api-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38b50bcf8c0c2d49e49e6d58296b22361d00f5c191adee6d79e011b092ae356d
MD5 db012867fccf0c9be9bfb2199a3c95cb
BLAKE2b-256 d69cb0ac96a1c5be0f6154dbc4d4653d85d23fc97bf8f6ac4ed066e33d9a20d8

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.0

2 files

This release

1.3.0 This release

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.1.0

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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