Skip to main content

Wherobots Python SDK

CI Python License Version

The official Python SDK for Wherobots. Currently wraps the Wherobots Jobs REST API — submit, monitor, cancel, and inspect Spark/Sedona job runs from Python. Additional Wherobots surfaces will be added over time.

Features

  • Submit Python scripts or JARs as Wherobots jobs
  • Auto-upload local scripts to Wherobots managed storage (only needs an API key)
  • Stream or iterate logs with pagination
  • List runs with status, name, and date filters
  • Typed dataclass models for all API responses (no pydantic dependency)
  • Environment-based configuration
  • Files: list, create folders, upload, download, rename and delete in your Wherobots file area
  • Tasks: list and run tasks such as RasterFlow inference, then follow their runs, logs and cost

Installation

pip install wherobots-python-sdk

Quickstart

The simplest way to run a local script — only an API key is needed:

from wherobots import WherobotsJob

job = WherobotsJob(
    script="my_analysis.py",  # local file — auto-uploaded to managed storage
    name="analysis-job-001",
    runtime="tiny",
    region="aws-us-west-2",
    api_key="wbk_...",  # or set WHEROBOTS_API_KEY env var
)

run_id = job.submit()
print("Run ID:", run_id)

# Block until done, streaming logs to stdout
job.wait_for_completion(stream_logs=True)

You can also pass an S3 URI directly if the script is already uploaded:

job = WherobotsJob(
    script="s3://my-bucket/scripts/analysis.py",
    name="analysis-job-001",
    runtime="tiny",
)

Script Upload Behavior

When script is a local file path (not an s3:// URI) and auto_upload=True (the default), the SDK uploads your script to Wherobots managed storage. Only needs a valid API key — no AWS credentials required.

You can also reference scripts already in a Storage Integration bucket by passing the S3 URI directly:

job = WherobotsJob(
    script="s3://my-integration-bucket/scripts/my_analysis.py",
    name="analysis-job-001",
    runtime="tiny",
    auto_upload=False,
)

Authentication

The SDK uses API key authentication via the X-API-Key header.

job = WherobotsJob(
    script="s3://bucket/script.py",
    name="my-job-001",
    api_key="wbk_...",
)

The API key can also be set via the WHEROBOTS_API_KEY environment variable.

Inside a Wherobots notebook or job, no API key is needed. The SDK authenticates as the user who launched the workload, using the token Wherobots mounts in the pod. An API key, when set, takes precedence.

job = WherobotsJob(script="s3://bucket/script.py", name="my-job-001")

Configuration

Environment Variables

Variable Description Default
WHEROBOTS_API_KEY API key (required outside Wherobots)
WHEROBOTS_REGION Region override (else org default) (none — org default)
WHEROBOTS_API_BASE_URL API base URL https://api.cloud.wherobots.com
WHEROBOTS_VERSION Runtime version (none, the org preset decides)
WHEROBOTS_REQUEST_TIMEOUT_SECONDS HTTP request timeout (seconds) 30
WHEROBOTS_CLIENT_CHAIN Upstream client-attribution chain (see below) (none)
WHEROBOTS_ID_TOKEN_PATH Workload identity token, set by Wherobots notebooks and jobs (none)

WherobotsConfig

from wherobots.config import WherobotsConfig

# Build from env vars with optional overrides
config = WherobotsConfig.from_env(
    api_key="wbk_...",
    region="aws-us-west-2",
)

# Or construct directly
config = WherobotsConfig(
    api_key="wbk_...",
    region="aws-us-west-2",
    base_url="https://api.cloud.wherobots.com",
    request_timeout_seconds=30,
    version="latest",
)
Parameter Type Default
api_key str | None None (read from env)
region str | None None
base_url str "https://api.cloud.wherobots.com"
version str | None None (org preset)
request_timeout_seconds int 30
client_chain str | None None

Client attribution

Every request the SDK sends carries an advisory X-Wherobots-Client header so Wherobots can attribute workloads to the client that started them:

X-Wherobots-Client: client=python-sdk;ver=0.3.0;plat=darwin

The header is an ordered, comma-separated chain of hops — leftmost is the origin client, and each component appends its own hop on the right. If your tool embeds this SDK, pass your own hop as client_chain and the SDK appends itself after it:

job = WherobotsJob(
    script="job.py",
    name="my-job-name",
    client_chain="client=airflow;ver=1.2.0",
)
# X-Wherobots-Client: client=airflow;ver=1.2.0, client=python-sdk;ver=0.3.0;plat=linux

client_chain also works on WherobotsJob.from_run_id(...) and WherobotsConfig, or can be set once via WHEROBOTS_CLIENT_CHAIN. The header is advisory only: it is used for attribution and analytics and never affects authentication or authorization.

SDK Reference

WherobotsJob

The primary class for managing job runs.

Constructor

WherobotsJob(
    script: str,                             # Path or S3 URI to .py or .jar
    name: str,                               # Job name (8-255 chars, [a-zA-Z0-9_\-.]+)
    runtime: str | Runtime | None = None,    # Compute size (None -> org default)
    region: str | Region | None = None,      # Region; str passed as-is (None -> org default)
    api_key: str | None = None,              # API key (or env var)
    version: str | None = None,              # "latest" | "preview" (None -> org preset)
    timeout_seconds: int = 3600,             # Job timeout
    args: list[str] | None = None,           # Script arguments
    spark_configs: dict[str, str] | None = None,  # Spark config overrides
    dependencies: list[PyPiDependency | FileDependency] | None = None,
    spark_driver_disk_gb: int | None = None, # Driver disk size (GB)
    spark_executor_disk_gb: int | None = None, # Executor disk size (GB)
    jar_main_class: str | None = None,       # Main class (required for JARs)
    auto_upload: bool = True,                # Upload local files to S3 (managed storage)
    base_url: str | None = None,             # Override API URL
    request_timeout_seconds: int | None = None,  # HTTP timeout
    config: WherobotsConfig | None = None,   # Full config object
    client_chain: str | None = None,         # Upstream X-Wherobots-Client chain
)

Instance Methods

Method Returns Description
submit() str Submit the job. Returns the run ID. Idempotent (returns existing ID if already submitted).
get_status() RunView Get current job status and full details.
get_logs(cursor=None, size=100) LogsResponse Fetch a page of log entries. The cursor is an opaque string from next_page.
get_metrics() RunMetricsResponse Fetch CPU/memory metrics for the run.
get_cpu_utilization() UtilizationStats Aggregated CPU utilization (latest, max, avg, series).
get_mem_utilization() UtilizationStats Aggregated memory utilization (latest, max, avg, series).
get_cost() float | None Total run cost in USD, or None if not yet billed.
get_consumed_spatial_units() float | None Spatial Units (SUs) consumed by the run.
refresh() RunView Re-fetch from the API and update status/name/runtime/region/version in place.
iter_logs(cursor=None, size=100) Iterator[dict] Iterate over all log entries, handling pagination automatically.
poll_for_logs(follow=True, interval=2.0, log_handler=None, max_errors=10) None Poll and print logs. If follow=True, continues until job completes. max_errors sets the max consecutive transient errors before giving up.
cancel() bool Request cancellation. Returns True on success.
wait_for_completion(poll_interval=5.0, stream_logs=True, log_interval=2.0, max_wait_seconds=None) JobStatus Block until the job reaches a terminal state. Set max_wait_seconds to limit wait time (raises WherobotsTimeoutError).
close() None Close the underlying HTTP session and release resources.

WherobotsJob supports the context manager protocol for automatic cleanup:

with WherobotsJob(script="s3://bucket/script.py", name="my-job") as job:
    run_id = job.submit()
    job.wait_for_completion()
# session is automatically closed

Alias: Job is a convenience alias for WherobotsJob:

from wherobots import Job
job = Job(script="s3://bucket/script.py", name="my-job")

Class Methods

Method Returns Description
from_run_id(run_id, api_key=None, ...) WherobotsJob Attach to an existing run for read-only log/metric access. No script required. submit() is disabled on the returned instance.
list_runs(...) RunListPage List runs with optional filters. No instance required.
add_pypi_dependency(library_name, library_version=None) PyPiDependency Create a PyPI dependency for the dependencies parameter.
add_file_dependency(file_path) FileDependency Create a file dependency (.jar, .whl, .zip, .json). Accepts an s3:// URI or a local path — local paths are auto-uploaded to managed storage at submit() time. For non-managed destinations, upload via FilesAPI first and pass the resulting s3:// URI.

Attaching to an Existing Run

If you already have a run_id (from the CLI, the Wherobots UI, or a prior SDK session) you can attach without a script:

from wherobots import WherobotsJob

job = WherobotsJob.from_run_id("run-abc-123")
print(job.status, job.name)

# Stream remaining logs
job.poll_for_logs(follow=False)

# Or paginate
for entry in job.iter_logs(size=200):
    print(entry["raw"])

# Aggregated utilization for a completed run
cpu = job.get_cpu_utilization()
print(f"CPU peak {cpu.max}, avg {cpu.avg}, samples {len(cpu.series)}")

# Billing
print(f"cost ${job.get_cost():.2f}, SUs {job.get_consumed_spatial_units()}")

Calling job.submit() on an attached instance raises WherobotsValidationError — these instances are read-only.

Listing Runs

from wherobots import WherobotsJob, JobStatus

page = WherobotsJob.list_runs(
    api_key="wbk_...",
    region="aws-us-west-2",
    status=[JobStatus.RUNNING, JobStatus.PENDING],
    name_pattern="etl-*",
    size=20,
)

for run in page.items:
    print(f"{run.id}  {run.name}  {run.status.value}")

# Paginate
if page.next_page:
    next_page = WherobotsJob.list_runs(cursor=page.next_page)

Dependencies

from wherobots import WherobotsJob

job = WherobotsJob(
    script="s3://bucket/script.py",
    name="dep-test-job",
    dependencies=[
        WherobotsJob.add_pypi_dependency("pandas", "2.0.0"),
        WherobotsJob.add_pypi_dependency("numpy", "1.24.0"),
        WherobotsJob.add_file_dependency("s3://bucket/libs/my_lib-1.0-py3-none-any.whl"),
    ],
    spark_configs={
        "spark.executor.memory": "4g",
        "spark.executor.cores": "2",
    },
)
Local Dependency Files

add_file_dependency also accepts a local path to a .whl, .jar, .zip, or .json. The SDK uploads the file just before the job is submitted, fetching short-lived AWS STS credentials from the Wherobots API (POST /storage/credentials) and using boto3 multipart under the hood — no AWS credentials need to leave your environment.

job = WherobotsJob(
    script="my_job.py",  # local script auto-upload still works
    name="job-with-local-wheel",
    dependencies=[
        # Local wheel — uploaded to managed storage at submit() time
        WherobotsJob.add_file_dependency("dist/mypkg-0.1.0-py3-none-any.whl"),
        # Already-uploaded artifact — used as-is
        WherobotsJob.add_file_dependency("s3://bucket/shared-libs/lib-2.0.jar"),
        WherobotsJob.add_pypi_dependency("pandas", "2.0.3"),
    ],
)
job.submit()

Auto-upload always targets the org's managed storage:

Artifact Destination
Script (when script is a local path) s3://<managed.path>/scripts/<filename>
Dependency (when path is a local file) s3://<managed.path>/dependencies/<filename>

Local dependency uploads honor the same auto_upload flag as the script — if auto_upload=False, attempting to submit a job with a local dependency path raises WherobotsValidationError. The 5 GiB cap on a single upload applies; for larger artifacts, pre-upload and pass an s3:// URI.

Uploading to a Storage Integration

WherobotsJob stays focused on job orchestration — it doesn't take any "where files go" kwargs. To upload to a Storage Integration or a custom subdirectory, use FilesAPI directly and pass the resulting s3:// URI to WherobotsJob:

from wherobots import FilesAPI, WherobotsJob
from wherobots.config import WherobotsConfig

with FilesAPI.from_config(WherobotsConfig.from_env()) as files:
    si = files.resolve_integration("customer-bucket")
    # Build explicit destinations; upload_file is the "upload this file
    # to this exact s3 path" primitive.
    script_uri = files.upload_file(
        "my_job.py",
        files.dest_uri_for(si, "my_job.py", "job-scripts/sdk-e2e"),
    )
    wheel_uri = files.upload_file(
        "dist/internal-lib-1.0.whl",
        files.dest_uri_for(si, "internal-lib-1.0.whl", "job-scripts/sdk-e2e"),
    )

job = WherobotsJob(
    script=script_uri,  # already-uploaded URI
    name="job-in-integration",
    dependencies=[WherobotsJob.add_file_dependency(wheel_uri)],
)
job.submit()

Both artifacts land under s3://<integration.path>/job-scripts/sdk-e2e/.

FilesAPI is also where to look for low-level controls (custom managed subdirs, raw s3:// destinations, STS credential fetch for BYO upload tooling). See FilesAPI.upload_file, upload_managed_file, upload_dependency, dest_uri_for, and get_storage_credentials.

JAR Jobs

job = WherobotsJob(
    script="s3://bucket/jars/my-app.jar",
    name="jar-job-001",
    jar_main_class="com.example.Main",
    args=["--input", "s3://data/input", "--output", "s3://data/output"],
    runtime="medium",
)

Files

Files is your Wherobots file area ("My Files" in Studio) from Python. Start from a Wherobots client; it reads WHEROBOTS_API_KEY and WHEROBOTS_REGION, or takes api_key= / region= overrides, and closes its connection as a context manager.

import wherobots
from wherobots import Drive, Region

with wherobots.Wherobots() as wb:
    drive = wb.files.my_files  # same object as wb.files.drive(Drive.MY_FILES)
    eu = wb.files.drive(Drive.MY_FILES, region=Region.EU_WEST_1)  # another region

    drive.make_directory("projects/2026/q3")  # creates projects, then projects/2026, then .../q3
    drive.upload_file("report.csv", "projects/2026/q3/report.csv")
    for entry in drive.list_directory("projects/2026/q3"):  # "" lists the root
        print(entry.name, entry.is_dir, entry.size, entry.last_modified)
    drive.download_file("projects/2026/q3/report.csv", "local-copy.csv")
    drive.rename_file("projects/2026/q3/report.csv", "final.csv")
    drive.delete_file("projects/2026/q3/final.csv")
    drive.delete_directory("projects")
  • Each path segment is encoded on its own; empty levels, . and .. are refused before any request.
  • Uploads and downloads go straight to storage through short-lived presigned URLs. The API key is never sent to storage, and no storage credentials are requested.
  • Uploads are capped at 500 MiB per file, matching the CLI and the Studio web UI; a larger file is refused before any request is sent.
  • Listing follows the server's pages until the end and returns every entry.
  • A region is required: with none passed or configured, wb.files.my_files raises WherobotsConfigError.
Failure Raised as
Files is not enabled for this drive in this region WherobotsFilesNotEnabledError (.drive, .region)
The credentials were not accepted WherobotsNotAuthenticatedError
No such file or folder WherobotsFileNotFoundError
Transfer to or from storage failed WherobotsS3Error

The three Wherobots*Error classes above subclass WherobotsAPIError.

Tasks

A task is a named unit of work, such as RasterFlow inference, that your organization can run. wb.tasks lists and runs tasks; wb.task_runs follows the runs. Tasks need the Runs feature on your organization.

import time

import wherobots

with wherobots.Wherobots() as wb:
    for task in wb.tasks.list().items:
        print(task.name, task.display_name, task.regions)

    task = wb.tasks.get("my-task")
    print(task.input_schema)  # JSON Schema the inputs must satisfy

    started = wb.tasks.run("my-task", {"aoi": "s3://bucket/aoi.geojson"}, name="nightly")
    run = wb.task_runs.get(started.task_run_id)
    while run.is_active:
        time.sleep(10)
        run = wb.task_runs.get(run.task_run_id)

    print(run.state, run.results, run.error_message)
    print(wb.task_runs.logs(run.task_run_id).entries)
    print(wb.task_runs.cost(run.task_run_id).total_cost_usd)
  • tasks.run uses region= if passed, then the configured region, then your organization's default region.
  • Listings return an OffsetPage; pass page.next_offset as offset= for the next one.
  • TaskRunState.is_active is True for PENDING, SUBMITTED, RUNNING and CANCELLING. A state the SDK does not know yet is kept as its raw string and counts as not active, so a polling loop stops on it.
  • A run's state can lag the run by up to 2 minutes.
  • task_runs.logs pages forward: pass the previous page's next_since as since=. It is None once the run has finished and every line has been returned.
  • task_runs.cost can take up to 45 minutes after a run ends to settle; is_settling stays True until then.

Enums

JobStatus

Value Terminal Description
PENDING No Queued
RUNNING No Executing
COMPLETED Yes Finished OK
FAILED Yes Errored out
CANCELLED Yes User cancelled
from wherobots import JobStatus

status = JobStatus.RUNNING
status.is_terminal  # False

Runtime

Available compute sizes (API string values):

Enum Value
Runtime.MICRO micro
Runtime.TINY tiny
Runtime.SMALL small
Runtime.MEDIUM medium
Runtime.LARGE large
Runtime.X_LARGE x-large
Runtime.DOUBLE_X_LARGE 2x-large
Runtime.QUAD_X_LARGE 4x-large
Runtime.MEDIUM_HIMEM medium-himem
Runtime.LARGE_HIMEM large-himem
Runtime.X_LARGE_HIMEM x-large-himem
Runtime.DOUBLE_X_LARGE_HIMEM 2x-large-himem
Runtime.QUAD_X_LARGE_HIMEM 4x-large-himem
Runtime.X_LARGE_HICPU x-large-hicpu
Runtime.DOUBLE_X_LARGE_HICPU 2x-large-hicpu
Runtime.X_LARGE_MATCHER x-large-matcher
Runtime.DOUBLE_X_LARGE_MATCHER 2x-large-matcher
Runtime.MICRO_A10_GPU micro-a10-gpu
Runtime.TINY_A10_GPU tiny-a10-gpu
Runtime.SMALL_A10_GPU small-a10-gpu
Runtime.MEDIUM_A10_GPU medium-a10-gpu
Runtime.LARGE_A10_GPU large-a10-gpu
Runtime.X_LARGE_A10_GPU x-large-a10-gpu
from wherobots import Runtime

job = WherobotsJob(
    script="s3://bucket/script.py",
    name="gpu-job-001",
    runtime=Runtime.SMALL_A10_GPU,
)

Region

Enum Value
Region.US_WEST_2 aws-us-west-2
Region.US_EAST_1 aws-us-east-1
Region.EU_WEST_1 aws-eu-west-1
Region.AP_SOUTH_1 aws-ap-south-1

DependencyType

Enum Value
DependencyType.PYPI PYPI
DependencyType.FILE FILE

DependencyFileType

Enum Value
DependencyFileType.JAR JAR
DependencyFileType.PYTHON_WHEEL PYTHON_WHEEL
DependencyFileType.ZIP ZIP
DependencyFileType.OTHER OTHER

Models

Models are generated from the Wherobots OpenAPI spec. They are frozen dataclasses built with keyword arguments, with from_dict() and to_dict() for the API's JSON. A missing required field or a wrong type raises WherobotsAPIError. Unknown fields are ignored, and an enum value newer than the SDK still decodes, so status.value works for it.

RunView

Returned by get_status() and list_runs(). Represents a single job run.

Field Type Description
id str Run ID
name str Job name
status JobStatus Current status
is_terminal bool The run has finished
create_time datetime Creation time
update_time datetime Last update time
start_time datetime | None Start time
complete_time datetime | None Completion time
triggered_by OrganizationCustomer User who triggered the run
kube_app RunKubeApp | None Kubernetes app details
payload RunPayload What the run was created with
runtime str | None From payload
version str | None From payload
timeout_seconds int From payload
run_python RunPythonPayload | None From payload
run_jar RunJarPayload | None From payload
environment ResolvedRunEnvironment | None From payload
region str | None From kube_app
app_meta RunAppMeta | None Spark and Sedona UI URLs, from kube_app
raw dict The response body as the server sent it

LogsResponse

Returned by get_logs().

Field Type Description
items list[LogItem] Log entries
next_page str | None Next page cursor. None on a tail page
current_page str Current page cursor
raw dict The response body as the server sent it

LogItem

Field Type Description
raw str Raw log line text
timestamp str Epoch nanoseconds, as a string

RunListPage

Returned by list_runs().

Field Type Description
items list[RunView] Runs on this page
total int Total matching runs
next_page str | None Next page cursor
previous_page str | None Previous page cursor
current_page str | None Current page cursor
current_page_backwards str | None Backward pagination cursor
raw dict The response body as the server sent it

RunMetricsResponse

Returned by get_metrics().

Field Type Description
series_metrics dict[str, SeriesMetricDetails] Time-series metrics
instant_metrics dict[str, InstantMetricDetails] Point-in-time metrics
raw dict The response body as the server sent it

Exceptions

All exceptions inherit from WherobotsJobError.

Exception Description
WherobotsJobError Base exception for all SDK errors.
WherobotsAPIError API returned an error response. Has status_code, response, request_id attributes.
WherobotsValidationError Client-side validation failed (e.g., invalid name).
WherobotsS3Error A transfer to or from storage failed, including Files presigned uploads and downloads.
WherobotsConfigError Configuration is missing or invalid.
WherobotsTimeoutError Job exceeded the specified timeout.
WherobotsNotAuthenticatedError Files: the credentials were not accepted (HTTP 401). In a Wherobots pod: the workload identity token exchange failed. Subclass of WherobotsAPIError.
WherobotsFilesNotEnabledError Files is not enabled for a drive in a region. Has drive, region. Subclass of WherobotsAPIError.
WherobotsFileNotFoundError Files: no such file or folder. Subclass of WherobotsAPIError.
from wherobots import WherobotsAPIError, WherobotsJobError

try:
    job.submit()
except WherobotsAPIError as e:
    print(f"HTTP {e.status_code}: {e}")
    print(f"Request ID: {e.request_id}")
except WherobotsJobError as e:
    print(f"Error: {e}")

Storage Integrations

The SDK can run scripts stored in Storage Integrations — user-configured S3 buckets registered with your Wherobots organization. Pass the S3 URI directly as the script parameter:

job = WherobotsJob(
    script="s3://my-integration-bucket/scripts/pipeline.py",
    name="pipeline-job-001",
    runtime="small",
    auto_upload=False,
)

To discover your integration paths programmatically:

from wherobots.api.files import FilesAPI
from wherobots.config import WherobotsConfig

config = WherobotsConfig.from_env()
with FilesAPI.from_config(config) as files_api:
    for si in files_api.list_integrations():
        print(f"{si.name}: {si.path} ({si.region})")

To set up a Storage Integration, follow the S3 Storage Integration guide.

API Endpoints

Method Endpoint Description
POST /runs?region=<region> Create a run
GET /runs/{id} Get run details
POST /runs/{id}/cancel Cancel a run
GET /runs/{id}/logs Get run logs
GET /runs/{id}/metrics Get run metrics
GET /runs List runs
GET /tasks List tasks
GET /tasks/{name} Get a task
POST /tasks/{name}/runs Run a task
GET /task-runs List task runs
GET /task-runs/{id} Get a task run
GET /task-runs/{id}/logs Get task run logs
GET /task-runs/{id}/cost Get task run cost
POST /task-runs/{id}/cancel Cancel a task run

Base URL: https://api.cloud.wherobots.com

Development

Setup

git clone https://github.com/wherobots/wherobots-python-sdk.git
cd wherobots-python-sdk
uv sync --group dev
uv run pre-commit install

Quality checks

make lint        # ruff check + ruff format --check
make format      # auto-fix lint issues and reformat
make typecheck   # pyrefly (strict config)
make rails       # import-linter + no-suppression + ast-grep
make check       # lint + typecheck + rails + tests + build

Suppression baseline

Pre-existing debt is grandfathered in .slop-suppressions.json (CODEOWNED): the inline suppressions already in the tree, plus the # noqa: CODE / # pyrefly: ignore comments that ruff check --add-noqa and pyrefly check --suppress-errors wrote for pre-existing violations. The suppressions are functional at the tool level; the keystone (.slop-repellant/check_no_suppression.py) fails any net-new one.

  • Prune after fixing baselined code (drops stale entries):
    • ruff's RUF100 auto-removes stale noqas via the pre-commit hook's --fix
    • uv run pyrefly suppress --remove-unused
    • then uv run python .slop-repellant/check_no_suppression.py --update
  • Reset (re-record from scratch): delete .slop-suppressions.json, then run the same --update.
  • Shrinking the baseline is always welcome; growing it requires CODEOWNER sign-off — fix the code instead of widening the baseline.

Releasing

See RELEASING.md for the release flow (version bump → GitHub release → automated PyPI publish).

Running Tests

make test               # unit tests (integration tests skipped by default)

# Or directly:
pytest -o "addopts="    # override pyproject.toml --cov flags if pytest-cov missing
pytest -v               # verbose
pytest --cov=wherobots --cov-report=term-missing  # with coverage

Integration Tests

Integration tests run against the live Wherobots API and are skipped by default. To run them:

export WHEROBOTS_API_KEY="your-key"
make test-integration

# Or pass the key via CLI option:
pytest -m integration -v -o "addopts=" --wherobots-api-key="your-key"

Linting & Formatting

make format             # auto-format with ruff
make lint               # ruff check + ruff format --check (same as CI)

Before You Push

make check              # lint + test + build — mirrors the CI pipeline

License

Apache-2.0. See LICENSE for details.

Metadata

Release files for wherobots-python-sdk 0.8.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 wherobots-python-sdk 0.8.0
File Size Uploaded Provenance Actions
wherobots_python_sdk-0.8.0.tar.gz 139.8 kB With provenance Details for wherobots_python_sdk-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wherobots-python-sdk 0.8.0
File Interpreter ABI Platform Actions
wherobots_python_sdk-0.8.0-py3-none-any.whl Python 3 none any Details for wherobots_python_sdk-0.8.0-py3-none-any.whl

Total release size: 219.1 kB

Release files / wherobots_python_sdk-0.8.0.tar.gz

Download URL wherobots_python_sdk-0.8.0.tar.gz
Size 139.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fbe65d8744fdb85b0c1709519f4038a69a36b5db42b6be7a67fe08024d7f34d6
BLAKE2b-256 checksum
How to use checksums
1666bb6df6519e862106e7ef5e0056d8e0b293366c3356cbde77b524a5d1b893
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / wherobots_python_sdk-0.8.0-py3-none-any.whl

Download URL wherobots_python_sdk-0.8.0-py3-none-any.whl
Size 79.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8005ba6139781cd5c995794bff65fd49d35da696063385d3c1b20c7ce23f4ea
BLAKE2b-256 checksum
How to use checksums
0789f7c92c9d26ffa6b3f72c71516fbcf9b319c7e6752b03ba3e7a4f22d4608d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for wherobots-python-sdk 0.8.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wherobots_python_sdk-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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.

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