Skip to main content

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

  1. Go to Organization Settings → API Keys
  2. Click "Create API key" (read-only recommended)
  3. Copy the key (shown only once) and your org_id
  4. 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.names()  # ['workspace1', 'workspace2', ...]

# Access workspace
ws = poelis.workspace1

# List products in workspace  
ws.names()  # ['product1', 'product2', ...]

# Access product
product = ws.product1

# List items in product
product.names()  # ['item1', 'item2', ...]

# Access item and its properties
item = product.item1
item_value = item.some_property.value  # Access property values directly
item_category = item.some_property.category  # Access property categories 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 names() at 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


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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poelis_sdk-0.3.7.tar.gz
Algorithm Hash digest
SHA256 74de8d9657e87f064eba628a4c5d1b2d248852e407e2953b88d56445757a0605
MD5 317f2106a5ac58f78e1eea2a3d496ca0
BLAKE2b-256 347b642e3e5b0857ee0ffd6baf6b47f21371cbb30d21b7defa523dd12a458948

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for poelis_sdk-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 479a59c7b67d2f6c3e910709351a6fe79fb0a50c62654b75921bf0262b7680c3
MD5 0d16c7150fc7c7fbe9c7cb9a60410700
BLAKE2b-256 b353287672c0b9925f87b5624d47adec8f1169727d870b7fe713a4d573c2ca0c

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