Skip to main content

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.

Metadata

Release files for rxinferclient 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rxinferclient 0.1.2
File Size Uploaded Provenance Actions
rxinferclient-0.1.2.tar.gz 50.7 kB With provenance Details for rxinferclient-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rxinferclient 0.1.2
File Interpreter ABI Platform Actions
rxinferclient-0.1.2-py3-none-any.whl Python 3 none any Details for rxinferclient-0.1.2-py3-none-any.whl

Total release size: 143.2 kB

Release files / rxinferclient-0.1.2.tar.gz

Download URL rxinferclient-0.1.2.tar.gz
Size 50.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e5cd1d6c1a13899e6ddf085f6637a5864dadb3ba9720ac0e5d1ed12fb30d17a0
BLAKE2b-256 checksum
How to use checksums
83705e2fa4aae5cc70b46a004b4e2dbfd6df22ca1582793bb55cfd79cb38a384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 8, 2025.

Transparency log

Release files / rxinferclient-0.1.2-py3-none-any.whl

Download URL rxinferclient-0.1.2-py3-none-any.whl
Size 92.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d631cd5f27bee3a69ac69b81f7207fb29724292deedcfd2e6c4b905c2d8b3ec9
BLAKE2b-256 checksum
How to use checksums
afc44b0f4dc016a4e1b6aadd12cec56d00736bbfd48604f9ec152ed90552c0ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 8, 2025.

Transparency log

Security for rxinferclient 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rxinferclient-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 8, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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