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
- Navigate to Organization Settings → API Keys.
- Click “Create API key”, choose a name and scopes (read-only by default recommended).
- Copy the full key when shown (it will be visible only once). Keep it secret.
- The
org_idfor your organization is displayed in the same section. - 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
Release history Release notifications | RSS feed
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.6.tar.gz
(71.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poelis_sdk-0.1.6.tar.gz.
File metadata
- Download URL: poelis_sdk-0.1.6.tar.gz
- Upload date:
- Size: 71.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
367c509abebae88342923b5cd76ddac26921c1da57751c3c2d9d03930bf45bc4
|
|
| MD5 |
c987baa452922b11059401f2ec0c1398
|
|
| BLAKE2b-256 |
c066b4c8f348ebcb3eef62ca6e55072023e9fdeba7fa7caa83cc71f580a202bc
|
File details
Details for the file poelis_sdk-0.1.6-py3-none-any.whl.
File metadata
- Download URL: poelis_sdk-0.1.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e40c49775d238f92e3cda3ce69137a708d5f9ca7002a22bc01a470ce6f61d2
|
|
| MD5 |
3ef9d9eb2c2d13b6c260c081a0ec7e6d
|
|
| BLAKE2b-256 |
15d22b8a2a057b13c224362e9fe02c6e5a40cc2d2afc58a4547119a0a385533a
|