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(
    base_url="https://api.poelis.ai",   # or your environment
    api_key="poelis_live_A1B2C3...",    # Organization Settings → API Keys
    org_id="tenant_uci_001",            # same section
)

# 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

  • Local development: http://localhost:8000
  • Staging (example): https://api.staging.poelis.ai
  • Production (example): 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_BASE_URL=https://api.poelis.ai
export POELIS_API_KEY=poelis_live_A1B2C3...
export POELIS_ORG_ID=tenant_uci_001

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.0.tar.gz (48.6 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.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poelis_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for poelis_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89a4c7a7b1dce35dad00c01e15ba207bad4df91e644ad94f9b8a2cc8716603ec
MD5 5c516edcd3f9c47c63bbac96906c5d68
BLAKE2b-256 086e0c0ad6a9e55b0fa01b60705e279001af662476272f9106dd50313c006583

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for poelis_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5306380a6309d75e79612b08679e84e3890158fb6349e5dc33ddeb8685dd851b
MD5 7711216a1447db4c713aec044f438a7f
BLAKE2b-256 ab356708fef5ed04d3c0cdb50d32f41799a534e1d3968f1c138b3042217830a5

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