Skip to main content

parallelworks-client

Official Python client for the Parallel Works ACTIVATE platform API.

Installation

pip install parallelworks-client

Quick Start

The simplest way to create a client - just pass your credential:

import os
from parallelworks_client import Client

# The platform host is automatically extracted from your credential
with Client.from_credential(os.environ["PW_API_KEY"]).sync() as client:
    response = client.get("/api/buckets")
    for bucket in response.json():
        print(f"Bucket: {bucket['name']}")

See the examples directory for complete runnable examples.

Authentication

Automatic Host Detection

API keys (pwt_...) and JWT tokens contain the platform host encoded within them. Use from_credential to automatically extract it:

# API key - host decoded from first segment after pwt_
client = Client.from_credential("pwt_Y2xvdWQucGFyYWxsZWwud29ya3M.xxxxx")
# Connects to: https://cloud.parallel.works

# JWT token - host read from platform_host claim
client = Client.from_credential("eyJhbGci...")
# Connects to the host in the token's platform_host claim

Explicit Host

If you prefer to specify the host explicitly:

# API Key (Basic Auth) - best for long-running integrations
client = Client.with_api_key(
    "https://cloud.parallel.works",
    "pwt_..."
)

# JWT Token (Bearer) - best for scripts, expires in 24h
client = Client.with_token(
    "https://cloud.parallel.works",
    "eyJhbGci..."
)

# Auto-detect credential type
client = Client.with_credential(
    "https://cloud.parallel.works",
    os.environ["PW_CREDENTIAL"]
)

Credential Helpers

from parallelworks_client import is_api_key, is_token, extract_platform_host

is_api_key("pwt_abc.xyz")           # True
is_token("eyJ.abc.def")             # True
extract_platform_host("pwt_...")    # "cloud.parallel.works"

Async Support

import asyncio
from parallelworks_client import Client

async def main():
    async with Client.from_credential(os.environ["PW_API_KEY"]) as client:
        response = await client.get("/api/buckets")
        print(response.json())

asyncio.run(main())

Documentation

For full API documentation, visit https://parallelworks.com/docs.

License

MIT

Release files for parallelworks-client 7.104.0

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

Source distribution (sdist)

Source distribution for parallelworks-client 7.104.0
File Size Uploaded
parallelworks_client-7.104.0.tar.gz 698.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parallelworks-client 7.104.0
File Interpreter ABI Platform
parallelworks_client-7.104.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / parallelworks_client-7.104.0.tar.gz

Download URL parallelworks_client-7.104.0.tar.gz
Size 698.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd0cca1e4e93ccca7dd0f967f4c2bd827c40bc470b9dec821ca45580feff72a4
BLAKE2b-256 checksum
How to use checksums
4bee4404f95879c864d26f83947e3927be7bcba769412056f52acc277a0be461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / parallelworks_client-7.104.0-py3-none-any.whl

Download URL parallelworks_client-7.104.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ceb3ff8950a660cbf016e0a9a6a08764728245e65f164940889c102e921d42e8
BLAKE2b-256 checksum
How to use checksums
8800a1aa769d68b63e475dd49dcab4ed94ccc80de83e56dbe3a4b06ab2c8e060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

7.104.0 This release

2 release files

7.96.1

2 release files

7.96.0

2 release files

7.95.1

2 release files

7.95.0

2 release files

7.94.0

2 release files

7.93.0

2 release files

7.92.0

2 release files

7.91.0

2 release files

7.90.0

2 release files

7.89.0

2 release files

7.88.0

2 release files

7.84.0

2 release files

7.83.0

2 release files

7.82.0

2 release files

7.81.1

2 release files

7.81.0

2 release files

7.80.0

2 release files

7.79.0

2 release files

7.78.0

2 release files

7.77.0

2 release files

7.69.0

2 release files

7.68.0

2 release files

7.67.0

2 release files

7.66.1

2 release files

7.66.0

2 release files

7.65.0

2 release files

7.64.0

2 release files

7.63.0

2 release files

7.62.3

2 release files

7.62.2

2 release files

7.62.1

2 release files

7.62.0

2 release files

7.61.0

2 release files

7.60.0

2 release files

7.59.0

2 release files

7.57.0

2 release files

7.56.0

2 release files

7.55.0

2 release files

7.54.1

2 release files

7.54.0

2 release files

7.53.0

2 release files

7.52.0

2 release files

7.51.0

2 release files

7.43.0

2 release files

7.42.0

2 release files

7.41.0

2 release files

7.40.1

2 release files

7.40.0

2 release files

7.39.0

2 release files

7.38.0

2 release files

7.36.0

2 release files

7.35.0

2 release files

7.34.0

2 release files

7.28.0

2 release files

7.27.0

2 release files

7.25.0

2 release files

7.24.0

2 release files

7.23.0

2 release files

7.21.1

2 release files

7.21.0

2 release files

7.20.2

2 release files

7.20.0

2 release files

7.19.0

2 release files

7.18.1

2 release files

7.18.0

2 release files

7.17.0

2 release files

6.12.0

2 release files

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