Skip to content

Add a small but nice wrapper around autogenerated code #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 8, 2025

Conversation

bvdmitri
Copy link
Member

@bvdmitri bvdmitri commented Apr 8, 2025

This PR adds a small wrapper around autogenerated code. The wrapper isn't doing much at the moment, but it will be expanded in the future. For now the basic API looks like:

from rxinferclient import RxInferClient

client = RxInferClient()

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

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

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

@bvdmitri bvdmitri merged commit 4347e0c into main Apr 8, 2025
6 checks passed
@bvdmitri bvdmitri deleted the nice-wrapper branch April 8, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant