Skip to main content

The official Python library for the RxInferServer API

Project description

RxInferClient

A Python client for interacting with RxInfer, a probabilistic programming framework.

Note: This project is currently a work in progress. The implementation is under active development and may undergo significant changes.

Overview

RxInferClient provides a simple and intuitive interface to work with RxInfer from Python. It allows you to define models, run inference, and process results with a clean API.

The client functionality is organized into several subfields:

  • server: Access to server-related operations
  • authentication: Authentication and token management
  • models: Model management and operations

Quickstart

from rxinferclient import RxInferClient

# Initialize with default settings (auto-generates API key)
client = RxInferClient()

# Or initialize with custom server URL
client = RxInferClient(server_url="http://localhost:8000/v1")

# Or initialize with your own API key
client = RxInferClient(api_key="your-api-key")

# Ping the server to check if it's running
response = client.server.ping_server()
print(response.status)  # 'ok'

# Create a model instance
response = client.models.create_model_instance({ 
    "model_name": "BetaBernoulli-v1"
})
instance_id = response.instance_id

# Delete the model instance when done
client.models.delete_model_instance(instance_id=instance_id)

Installation

pip install rxinferclient

Requirements

  • Python 3.9+
  • Dependencies are managed through pyproject.toml

Development Commands

The project uses a Makefile for common development tasks. Run make help to see all available commands.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

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

rxinferclient-0.1.2.tar.gz (50.7 kB view details)

Uploaded Source

Built Distribution

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

rxinferclient-0.1.2-py3-none-any.whl (92.5 kB view details)

Uploaded Python 3

File details

Details for the file rxinferclient-0.1.2.tar.gz.

File metadata

  • Download URL: rxinferclient-0.1.2.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rxinferclient-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5cd1d6c1a13899e6ddf085f6637a5864dadb3ba9720ac0e5d1ed12fb30d17a0
MD5 90be6b84730fe8c26024861985587dcd
BLAKE2b-256 83705e2fa4aae5cc70b46a004b4e2dbfd6df22ca1582793bb55cfd79cb38a384

See more details on using hashes here.

Provenance

The following attestation bundles were made for rxinferclient-0.1.2.tar.gz:

Publisher: publish.yml on lazydynamics/RxInferClient.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rxinferclient-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rxinferclient-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 92.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rxinferclient-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d631cd5f27bee3a69ac69b81f7207fb29724292deedcfd2e6c4b905c2d8b3ec9
MD5 58350aa63018263edbca2a5c66927901
BLAKE2b-256 afc44b0f4dc016a4e1b6aadd12cec56d00736bbfd48604f9ec152ed90552c0ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for rxinferclient-0.1.2-py3-none-any.whl:

Publisher: publish.yml on lazydynamics/RxInferClient.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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