pysepal-api
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 use —
with SepalClient(...)/async with AsyncSepalClient(...). Construction never performs network I/O; entering the context creates the module results dir (whenmodule_nameis given). - Long-lived clients —
sepal = SepalClient.create(...)/sepal = await AsyncSepalClient.create(...): same eager setup without a context manager; callclose()/aclose()when done.async with AsyncSepalClient.create(...)also works. - Typed endpoints for the common cases:
files,tasks,recipes. File verbs followpathlib:read_bytes/read_text/read_json/write/mkdir. - Generic primitive —
request()/get()/post()/put()/delete()— for any other SEPAL route, with the same typed-error mapping (NotFound,Unauthorized, …). Returns the rawhttpx.Response. - One exception root — catch
PysepalErrorfor 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysepal_api-0.3.1.tar.gz | 41.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysepal_api-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / pysepal_api-0.3.1.tar.gz
| Download URL | pysepal_api-0.3.1.tar.gz |
|---|---|
| Size | 41.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
745f5bff42578bdc4fbff78490f1e60bb235f67a07ccf959fe4099055d1b885e
|
|
BLAKE2b-256 checksum How to use checksums |
1a72fc6686c9a31bb23f791f5234416b59a16c9c72bcdcc23ed0606268633aa1
|
| 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 Sep 2, 2026.
Transparency logRelease files / pysepal_api-0.3.1-py3-none-any.whl
| Download URL | pysepal_api-0.3.1-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dce396975ce6341e9f9b58382cbdbf057980654ecbdc7e475b0942b5af216b7
|
|
BLAKE2b-256 checksum How to use checksums |
a62c40af603553be318896941b6cccb3f2d1844fa9953a503d245f635335b945
|
| 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 Sep 2, 2026.
Transparency log