Skip to main content

Official Python SDK for Poelis

Project description

Poelis Python SDK

Python SDK for Poelis.

Installation

pip install -U poelis-sdk

Requires Python 3.11+.

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
)

Configuration

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_id_001

How authentication works

The SDK does not talk to Auth0. It sends your API key directly to the Poelis backend for validation on every request.

  • Default headers sent by the SDK:

    • X-API-Key: <api_key> (and X-Poelis-Api-Key as a compatibility alias)
    • Authorization: Api-Key <api_key> (compatibility for gateways expecting Authorization-only)
    • X-Poelis-Org: <org_id>

You can opt into Bearer mode (legacy) by setting POELIS_AUTH_MODE=bearer, which will send:

  • Authorization: Bearer <api_key>
  • X-Poelis-Org: <org_id>

The backend validates the API key against your organization, applies authorization and filtering, and returns data.

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

See the example notebook in notebooks/try_poelis_sdk.ipynb for an end-to-end walkthrough (authentication, listing workspaces/products/items, and simple search queries). The client defaults to https://api.poelis.ai unless POELIS_BASE_URL is set.

Requirements

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

License

MIT

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.3.1.tar.gz (71.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.3.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poelis_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 bef9832d1ad1b65a2a88d61412bc7f87f984c1b5cf228fb1d51f91b812a78874
MD5 927e17100989a3bd509152fe8405c46b
BLAKE2b-256 c84b16e1576dd861c824cb1465653cb5171564b3d26cfdc8bd7c5fe12c96b90b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for poelis_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4eccbda9592456e906b34f6e9cbf16e57df2b1b793412bbc2abc2a73a2d1dcf
MD5 b2b3a3be8126b2e79e5073c09187c74e
BLAKE2b-256 a1e6146745f5a4f873c53ea8b5ba0e63fd8cf54d7a902eab4dcf1ef08da344da

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