Skip to main content

Poelis Python SDK

Python SDK for Poelis - explore your data with simple dot notation.

IDE Compatibility & Autocomplete

The Poelis SDK works in all Python environments, but autocomplete behavior varies by IDE:

  • 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_*().names at each level to prime autocomplete

Examples

See notebooks/try_poelis_sdk.ipynb for complete examples including authentication, data exploration, and search queries.

Installation

  • Python >= 3.11
  • API base URL reachable from your environment
pip install -U poelis-sdk

Quick Start

  1. Go to Organization Settings → API Keys
  2. Click "Create API key"
  3. Copy the key (shown only once) and store it securely, for example as an environment variable:
from poelis_sdk import PoelisClient

# Create client
poelis_client = PoelisClient(
    api_key="poelis_live_A1B2C3...",    # Get from Organization Settings → API Keys
)

Upload a file

files.upload asks for a signed URL, sends the file bytes to storage, then completes the upload. It uses the API key already set on the client. A file over 5 GiB, or an empty file, is refused before any request.

Pass an item id, or a property id together with its type.

uploaded = poelis_client.files.upload("specs/drawing.pdf", item_id="item-id")
uploaded.file_id

uploaded = poelis_client.files.upload(
    "notes.docx",
    property_id="property-id",
    property_type="text",
)

A second file with the same size and content type in the workspace returns HTTP 409. Pass allow_duplicate=True to store it anyway.

Browser Usage

The browser lets you navigate your Poelis data with simple dot notation:

# Navigate through your data
poelis = poelis_client.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

Formula properties

For property type formula, property.category and property.unit is always None. The unit is part of the value itself: the value is the computed result of the expression (e.g. "10 kg"), so there is no separate unit field. For invalid formulas, property.value is None.

Property Change Detection

The SDK can automatically warn you when property values change between script/notebook runs. This is useful when you're using property values for calculations and want to be notified if a colleague changes them in the webapp.

License

MIT

Metadata

Release files for poelis-sdk 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poelis-sdk 1.4.1
File Size Uploaded Provenance Actions
poelis_sdk-1.4.1.tar.gz 138.0 kB Without provenance Details for poelis_sdk-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for poelis-sdk 1.4.1
File Interpreter ABI Platform Actions
poelis_sdk-1.4.1-py3-none-any.whl Python 3 none any Details for poelis_sdk-1.4.1-py3-none-any.whl

Total release size: 207.1 kB

Release files / poelis_sdk-1.4.1.tar.gz

Download URL poelis_sdk-1.4.1.tar.gz
Size 138.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0b5e3575ffea40b62c0e7d3d3aaa2a91d9f38e3dfaebad146f71f1dccca35b2a
BLAKE2b-256 checksum
How to use checksums
cd6060c405fcb924a7ff93acf5d87ef893e3aaf69b849b97adc49af9ae8755b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / poelis_sdk-1.4.1-py3-none-any.whl

Download URL poelis_sdk-1.4.1-py3-none-any.whl
Size 69.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8be2492d47a9142ea7d142321eecb397d8f1b162eaf119daba9a3249c356b33
BLAKE2b-256 checksum
How to use checksums
a37f697fb18d68bb0de46763207d8799df512e01e8d65a20d594d977ca2a6b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for poelis-sdk 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page