Genorbex Python SDK
Official Python client for the Genorbex Prompt Registry and OpenAI-compatible model-serving endpoints.
Install
python -m pip install genorbex
Install MLflow support when your environment does not already include MLflow:
python -m pip install "genorbex[mlflow]"
Authenticate
Create an API key at https://www.genorbex.com/settings/api-keys, then configure it as an environment variable:
export GENORBEX_API_KEY="your_api_key"
Managed Genorbex notebooks authenticate automatically and do not require this variable.
For a self-hosted installation, also set:
export GENORBEX_HOST="https://your-genorbex-host.example"
Load and invoke a registered prompt
import mlflow
from genorbex.sdk import ClientSpace
prompt = mlflow.genai.load_prompt(
"prompts:/main.data_science.sales_summary@production"
)
formatted_prompt = prompt.format(
number_of_sentences=3,
sales_data="Revenue increased by 12% in July.",
)
client = ClientSpace().serving_endpoints.get_open_ai_client()
response = client.chat.completions.create(
model="databricks-claude-sonnet-4-5",
messages=[{"role": "user", "content": formatted_prompt}],
)
print(response.choices[0].message.content)
The SDK uses only the Python standard library at runtime. Python 3.9 or newer is required.
Direct prompt loading
Applications that do not use MLflow can load the same registered prompt directly:
from genorbex.sdk import ClientSpace
workspace = ClientSpace()
prompt = workspace.prompts.load(
"prompts:/main.data_science.sales_summary@production"
)
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genorbex-0.1.0.tar.gz.
File metadata
- Download URL: genorbex-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a22eaf86cfb2490fdb091f2096663ef2659d3dc81d448e0684180368d775686d
|
|
| MD5 |
2cf6d4563c757b1e1b3bf0f852dea5e1
|
|
| BLAKE2b-256 |
e724395451e77542f064f3c06765469485d1152e6dc65c48fe79ff2ed76e4952
|
File details
Details for the file genorbex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: genorbex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d939fc1d6d8429c07b9a2e24af3efb6be1a0bf6d491d765edb0a5fdd3b8406
|
|
| MD5 |
d2dc7a3a3f8e365d5f44f2d0e6e815c8
|
|
| BLAKE2b-256 |
9d07433ee9b06cef2c05b08d3d6931cfd6cdcd70058e94de0a03f5ae04bd2753
|