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
)

# Workspaces → Products
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
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
props = client.search.properties(q="*", workspace_id=ws_id, limit=10, offset=0)
print(props["total"], len(props["hits"]))

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
# POELIS_BASE_URL is optional - defaults to the managed GCP endpoint

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).

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.1.7.tar.gz (71.7 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.7-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: poelis_sdk-0.1.7.tar.gz
  • Upload date:
  • Size: 71.7 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.1.7.tar.gz
Algorithm Hash digest
SHA256 45c1b226f35c8c143b4f5b33ddd03489f7d74b7ce9fa6dc383ae0c15c79708d9
MD5 08b521239f32ee59970e7e659be90f99
BLAKE2b-256 1fbb2c91310f8ec9895a2c30aec0705b1199b858c6672601df6156b8063fbb6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: poelis_sdk-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 52bba00fa1f6a8759143296601657d579ebbc47fa79eaaea08b5a593d78841f6
MD5 efde07f2f1221e7197108f1b6392dd42
BLAKE2b-256 0a7d6fd3209cf8f8d69bd678df28f12f8e320ffd5f4b139539d0b95328871b97

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