Skip to main content

Python SDK for Loki Mode - autonomous multi-agent development platform

Project description

loki-mode-sdk

Python SDK for Loki Mode, the autonomous multi-agent development platform.

Install

pip install loki-mode-sdk

Quick Start

from loki_mode_sdk import Client

client = Client(base_url="http://localhost:57374")

# Check dashboard status
status = client.get_status()
print(status)

# List projects
projects = client.list_projects()
for p in projects:
    print(f"{p.id}: {p.name} ({p.status})")

API Reference

The SDK wraps the Loki Mode Dashboard API (default port 57374).

Client Methods

  • client.get_status() - Dashboard status and version
  • client.list_projects() - List all projects
  • client.create_project(name) - Create a new project
  • client.get_project(id) - Get project details
  • client.list_runs(project_id) - List runs
  • client.cancel_run(run_id) - Cancel a running execution
  • client.query_audit() - Query audit trail
  • client.create_api_key(name) - Create API key
  • client.rotate_api_key(key_id) - Rotate API key

Requirements

  • Python 3.10+
  • Running Loki Mode instance (npm install -g loki-mode)

License

Business Source License 1.1 -- see LICENSE

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

loki_mode_sdk-7.18.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

loki_mode_sdk-7.18.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file loki_mode_sdk-7.18.0.tar.gz.

File metadata

  • Download URL: loki_mode_sdk-7.18.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for loki_mode_sdk-7.18.0.tar.gz
Algorithm Hash digest
SHA256 fe4dca2a790ddb53d9b7dd5d7b91f39314f2ce9cd6c4136465912a506f23aed2
MD5 92517436a1a36975ff7025c3af1f0769
BLAKE2b-256 2ea553b0685fca10c3e7fb5e63b895211eecc3e8c5edb2fbb510619283d9db90

See more details on using hashes here.

File details

Details for the file loki_mode_sdk-7.18.0-py3-none-any.whl.

File metadata

  • Download URL: loki_mode_sdk-7.18.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for loki_mode_sdk-7.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d92bc7b3ebc7d33e151f77fc1a61efd520cb7be94d2c006071d71223cb63a6
MD5 da148c70721401db749310297df58820
BLAKE2b-256 82c49f2bb580ad6eb0c207d03e8fe329e62d93a85dbb2b1fdbbf13b4574016be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page