Skip to main content

Official Python SDK for Poelis

Project description

Poelis Python SDK

GraphQL-first Python SDK for Poelis with a focus on great developer experience.

Quickstart (API key + org ID)

from poelis_sdk import PoelisClient

client = PoelisClient(
    api_key="poelis_live_A1B2C3...",    # Organization Settings → API Keys
    org_id="tenant_uci_001",            # same section
    # base_url defaults to https://api.poelis.ai
)

# Workspaces → Products (GraphQL)
workspaces = client.workspaces.list(limit=10, offset=0)
ws_id = workspaces[0]["id"]

page = client.products.list_by_workspace(workspace_id=ws_id, limit=10, offset=0)
print([p.name for p in page.data])

# Items for a product (GraphQL)
pid = page.data[0].id
items = client.items.list_by_product(product_id=pid, limit=10, offset=0)
print([i.get("name") for i in items])

# Property search (GraphQL)
props = client.search.properties(q="*", workspace_id=ws_id, limit=10, offset=0)
print(props["total"], len(props["hits"]))

Configuration

Base URL

The SDK defaults to the production API (https://api.poelis.ai). You can override this for different environments:

  • Local development: base_url="http://localhost:8000"
  • Staging (example): base_url="https://api.staging.poelis.ai"
  • Production (default): No need to specify, uses https://api.poelis.ai

Confirm the exact URLs for your environments.

Note: Multi-tenancy uses org_id for scoping. When using API keys, the SDK sets X-Poelis-Org automatically from org_id.

Getting your API key and org ID

  1. Navigate to Organization Settings → API Keys.
  2. Click “Create API key”, choose a name and scopes (read-only by default recommended).
  3. Copy the full key when shown (it will be visible only once). Keep it secret.
  4. The org_id for your organization is displayed in the same section.
  5. You can rotate or revoke keys anytime. Prefer storing as env vars:
export POELIS_API_KEY=poelis_live_A1B2C3...
export POELIS_ORG_ID=tenant_uci_001
# POELIS_BASE_URL is optional - defaults to https://api.poelis.ai

Dot-path browser (Notebook UX)

The SDK exposes a dot-path browser for easy exploration:

client.browser  # then use TAB to explore
# client.browser.<workspace>.<product>.<item>.<child>.properties
  • Lazy-loaded via GraphQL on-demand.
  • Autocomplete-friendly in Jupyter/VSCode.

Requirements

  • Python >= 3.11
  • API base URL reachable from your environment

License

Apache-2.0

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

poelis_sdk-0.1.1.tar.gz (70.4 kB view details)

Uploaded Source

Built Distribution

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

poelis_sdk-0.1.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poelis_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 70.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poelis_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bd0aa5bda064323ea24e72145625989e59846c708821f1ad5e17febd4411b529
MD5 ff1a50926fc18eded5100c4138cc5aab
BLAKE2b-256 c58ccc3b17040c232547a34e2d2ee5704b0d873dff7043b2fb90f9ff3c9acda7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poelis_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for poelis_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b320919142ec3e51794ff6a4ee96f50da3fa053c3cf8fa88f91dc66517336bb2
MD5 955afa296c34126a9cce3bed25ab5262
BLAKE2b-256 71e03d95fe86f5ce93e7622ca7d0da2df23865b92f8356d4035a7e7a230e7bc0

See more details on using hashes here.

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