Skip to main content

pysepal-api

📖 Documentation

UI-free HTTP client for SEPAL platform services. Powers Jupyter notebooks, Voila apps, CLI scripts, and background jobs running inside a SEPAL sandbox.

from pysepal_api import SepalClient

# sync — notebooks, CLI, jobs
with SepalClient(session_id="...") as sepal:
    listing = sepal.files.list("/")
    task = sepal.tasks.submit("image.download", params={...})
    sepal.tasks.wait(task.id)

    # escape hatch: any route the typed endpoints don't model
    image = sepal.get("/api/gee/image/json", params={"recipeId": "foo"}).json()
from pysepal_api import AsyncSepalClient

# async — Voila / Solara
async with AsyncSepalClient(session_id="...") as sepal:
    listing = await sepal.files.list("/")
    image = (await sepal.get("/api/gee/image/json", params={"recipeId": "foo"})).json()

The two clients are twins: identical surface, the only difference is await.

  • Scoped usewith SepalClient(...) / async with AsyncSepalClient(...). Construction never performs network I/O; entering the context creates the module results dir (when module_name is given).
  • Long-lived clientssepal = SepalClient.create(...) / sepal = await AsyncSepalClient.create(...): same eager setup without a context manager; call close() / aclose() when done. async with AsyncSepalClient.create(...) also works.
  • Typed endpoints for the common cases: files, tasks, recipes. File verbs follow pathlib: read_bytes / read_text / read_json / write / mkdir.
  • Generic primitiverequest() / get() / post() / put() / delete() — for any other SEPAL route, with the same typed-error mapping (NotFound, Unauthorized, …). Returns the raw httpx.Response.
  • One exception root — catch PysepalError for anything this library raises.

TLS is verified by default. host.docker.internal is auto-skipped for local dev; for any other self-signed host pass verify=False or list it in PYSEPAL_INSECURE_TLS_HOSTS (comma-separated, exact-host match).

Release files for pysepal-api 0.3.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 pysepal-api 0.3.0
File Size Uploaded
pysepal_api-0.3.0.tar.gz 41.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysepal-api 0.3.0
File Interpreter ABI Platform
pysepal_api-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size:61.8 kB

Release files / pysepal_api-0.3.0.tar.gz

Download URL pysepal_api-0.3.0.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2dbde3a8de476e9ae1a7d1241dc31c5a267a878126c7bac4883244047720b5
BLAKE2b-256 checksum
How to use checksums
61431371a54b4195c4c41e19b8203a571455e87192ea63379bc1f2204507f633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 12, 2026.

Transparency log

Release files / pysepal_api-0.3.0-py3-none-any.whl

Download URL pysepal_api-0.3.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0afb6a4ce6e6adad082af61e0968336456c6de7bbd9ccdb31727f64efe33a3f9
BLAKE2b-256 checksum
How to use checksums
9d37f927e9b62fcdd70d6e918859c6ffaae9ac8dee248cd4a78923be0188623e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.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