Skip to main content

Genorbex Python SDK

Official Python client for the Genorbex Prompt Registry and OpenAI-compatible model-serving endpoints.

Install

python -m pip install genorbex

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 gflow
from genorbex.sdk import ClientSpace

prompt = gflow.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="genorbex-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 can also load the same registered prompt directly through ClientSpace:

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

genorbex-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

genorbex-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file genorbex-0.1.1.tar.gz.

File metadata

  • Download URL: genorbex-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for genorbex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ab266efc3f7b9963f71e66b09804b02b6014a940bb14ae5c6c98898ca462cb2
MD5 b0b6a265d498e368b39e6e74a9314def
BLAKE2b-256 2e5254190372ae8aa79cc848749c60b4bca2229889406973f384440e94f0a2a2

See more details on using hashes here.

File details

Details for the file genorbex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: genorbex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for genorbex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb64f5e37f1e9c033b12336a8c7394b9b42a0be696850f4bb0b74826445e7f3a
MD5 60e6491c51b55c4211b891ca88669b9e
BLAKE2b-256 42508a4f3b138c938e8ed786add4a74942480c821524d5154b541b8934183ec3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page