Skip to main content

Paramus World Client - API client for the Paramus World semantic knowledge graph system

Project description

Paramus World Client

A Python client library for interacting with the Paramus World semantic knowledge graph system.

Features

  • JSON-RPC API Client: Easy-to-use client for Paramus World API
  • SPARQL Support: Execute SPARQL queries and updates against the knowledge graph
  • Chat Interface: Submit messages to the AI assistant
  • Health Monitoring: Check system status and statistics
  • Authentication: JWT token-based authentication

Installation

pip install paramus-world

Quick Start

from paramus.world.client import ParamusWorldClient

# Initialize the client
client = ParamusWorldClient(token="your-jwt-token")

# Check system health
health = client.check_system_health()
print(health)

# Submit a chat message
response = client.submit_chat("Hello, World!")
print(response)

# Execute a SPARQL query
query = """
PREFIX world: <https://paramus.ai/world/>
SELECT ?subject ?predicate ?object
WHERE { ?subject ?predicate ?object }
LIMIT 10
"""
result = client.sparql_query(query)
print(result)

API Methods

Authentication

  • authenticate(username, password) - Authenticate and get a token

Chat Interface

  • submit_chat(message, context=None) - Submit a message to the AI assistant

SPARQL Operations

  • sparql_query(query, format="json") - Execute SPARQL queries
  • sparql_update(update) - Execute SPARQL updates

System Monitoring

  • check_system_health() - Get system health and statistics

Configuration

The client connects to http://127.0.0.1:8051 by default. You can configure this:

client = ParamusWorldClient(
    base_url="https://your-server.com",
    token="your-jwt-token"
)

Examples

See the examples directory for comprehensive usage examples.

License

MIT License - see LICENSE file for details.

Links

Project details


Download files

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

Source Distribution

paramus_world-1.0.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

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

paramus_world-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file paramus_world-1.0.0.tar.gz.

File metadata

  • Download URL: paramus_world-1.0.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for paramus_world-1.0.0.tar.gz
Algorithm Hash digest
SHA256 57af77dfb5aea3d3cdb080ceac650fc1ecc68d36c76747b6026388d014d3e60a
MD5 214106b70f8c9173ece60f6127073aa2
BLAKE2b-256 cf18bc1dff9d999835227af95f388c9922f91565f564c9120dd58030c1ebf72f

See more details on using hashes here.

File details

Details for the file paramus_world-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: paramus_world-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for paramus_world-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1554242b0cbf7a7489f8b3da46037d0b7be8c57b889b914849dd1ab7f9b29905
MD5 b334b612d3d708ad6432ea7f9b02c9ca
BLAKE2b-256 8e955d0c6789a89306c9157ab48f14d6e1375b12f662b3c419b4bcd342a4260d

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