API Server for Rustic AI
Project description
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
- Install required dependencies:
poetry install --with dev
poetry shell
- 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
- Install required dependencies:
poetry install --with dev
poetry shell
- Start Zipkin server - requires Docker
sudo chmod 777 scripts/zipkin/data-tmp/
./scripts/zipkin/zipkin_up.sh
- 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.
- 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rusticai_api-1.2.1.tar.gz.
File metadata
- Download URL: rusticai_api-1.2.1.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.12 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
744e740a5edcb6155cfdbb4e31fb55d97a253a0f76b5a15a23679306d8d1c7e4
|
|
| MD5 |
68b25890afab21f9bba2b2c45ac20a65
|
|
| BLAKE2b-256 |
63da99b95eb7a69105a10b48901ad529bcc0358ce9f98d0ff8ffb32f99bfb59a
|
File details
Details for the file rusticai_api-1.2.1-py3-none-any.whl.
File metadata
- Download URL: rusticai_api-1.2.1-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.12 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1faf73a431abedcaf9718d9d8fccf14496ff753d4361a86d094961c2119880
|
|
| MD5 |
e25849f7afe9de9dee8baf32f4a2cf3b
|
|
| BLAKE2b-256 |
d05c0d352adc958ad0b169e2514780c668bada42c0b4b38b169da03335ec5efb
|