Official Python SDK for Poelis
Project description
Poelis Python SDK
Python SDK for Poelis - explore your data with simple dot notation.
Installation
pip install -U poelis-sdk
Requires Python 3.11+.
Quick Start
from poelis_sdk import PoelisClient
# Create client
poelis = PoelisClient(
api_key="poelis_live_A1B2C3...", # Get from Organization Settings → API Keys
org_id="tenant_uci_001", # Same section
)
# Use the browser for easy exploration
poelis = poelis.browser # Now you can use dot notation!
# Explore your data
poelis.workspace_name.product_name.item_name
Getting Your Credentials
- Go to Organization Settings → API Keys
- Click "Create API key" (read-only recommended)
- Copy the key (shown only once) and your
org_id - Store securely as environment variables:
export POELIS_API_KEY=poelis_live_A1B2C3...
export POELIS_ORG_ID=tenant_uci_001
Browser Usage
The browser lets you navigate your Poelis data with simple dot notation:
# Navigate through your data
poelis = poelis.browser
# List workspaces
poelis.list_workspaces().names # ['workspace1', 'workspace2', ...]
# Access workspace
ws = poelis.workspace1
# List products in workspace
ws.list_products().names # ['product1', 'product2', ...]
# Access product
product = ws.product1
# List items in product
product.list_items().names # ['item1', 'item2', ...]
# Access item and its properties
item = product.item1
# List children by type for more control
item.list_items().names # ['child_item1', 'child_item2'] - only child items
item.list_properties().names # ['Color', 'Weight', ...] - only properties
# Access property values directly
item_value = item.some_property.value # Access property values directly
item_category = item.some_property.category # Access property categories directly
item_unit = item.some_property.unit # Access property units directly
IDE Compatibility & Autocomplete
The Poelis SDK works in all Python environments, but autocomplete behavior varies by IDE:
✅ VS Code (Recommended for Notebooks)
- Autocomplete: Works perfectly with dynamic attributes
- Setup: No configuration needed
- Experience: Full autocomplete at all levels
⚠️ PyCharm (Jupyter Notebooks)
- Autocomplete: Limited - PyCharm uses static analysis and doesn't see dynamic attributes
- Code execution: Works perfectly (attributes are real and functional)
- Workaround: Call the relevant
list_*().namesat each level to prime autocomplete
Examples
See notebooks/try_poelis_sdk.ipynb for complete examples including authentication, data exploration, and 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
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.4.4.tar.gz.
File metadata
- Download URL: poelis_sdk-0.4.4.tar.gz
- Upload date:
- Size: 84.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f0cde15374f25d5673bdd646a183476994aa0bfdd603e0dc751b00d6cd92473
|
|
| MD5 |
0a3583b6c23a6a76aea79281defe5d47
|
|
| BLAKE2b-256 |
56a97476524c0f117cac01df7b8c6224396d8095e47bde453b2d3ce97670c896
|
File details
Details for the file poelis_sdk-0.4.4-py3-none-any.whl.
File metadata
- Download URL: poelis_sdk-0.4.4-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaf10e2d100c04c1ec2fe1099d19327979e1c5839389bddb96af831b6749a373
|
|
| MD5 |
4391fa658b391170646e9c1ff8d2bdad
|
|
| BLAKE2b-256 |
cf3155594d314f01c653542f9175127eac2ecc81bd6707eb98332edbf24b3e83
|