Skip to main content
octoparse-client is the official Python client for Data Hub. It wraps only the public /v1 REST API and depends on httpx alone. Methods map one-to-one to endpoints, parameter names match REST, and return values are the raw data payload (dict / list). Current version 0.2.9, Python 3.10+.

Install

Initialize

Client supports the with statement and closes connections on exit. You can also call client.close(). The SDK does not load .env files; load them yourself if needed.

Method to endpoint map

Run-list filters support status, data_app, triggered_by, run_kind, credential, created_from, created_to, plus offset / limit. Publishing, operations, and secrets endpoints are not wrapped; call REST directly.

Typical usage

Error handling

API error responses raise ApiError. Fields match the REST error object:
RunFailed is raised when call(..., raise_on_failure=True) ends in FAILED / CANCELLED / EXPIRED. Its run attribute holds the full run object.

App references

get_app(), run(), call(), and the run-list data_app filter accept both forms: two-segment <namespace>/<app_name> (human-readable, breaks after rename) and stable app_id (app_<hex>, survives rename). For long-lived integrations, store app_id. Point-to-point shared apps are absent from market search; use search("", shared_with="me").