Skip to main content

APEx Dispatch API Client

Python client for the APEx Dispatch API.

The package is generated from the APEx Dispatch OpenAPI schema and provides typed request and response models, synchronous and asynchronous endpoint helpers, and httpx-based client configuration.

Installation

Install the package from this repository:

pip install .

For local development, use the Hatch environments defined in pyproject.toml:

hatch run test:test
hatch run docs:build

Quick Start

from apex_dispatch_api_client.client import AuthenticatedClient
from apex_dispatch_api_client.api.unit_jobs import create_unit_job_unit_jobs_post
from apex_dispatch_api_client.models.base_job_request import BaseJobRequest
from apex_dispatch_api_client.models.base_job_request_parameters import (
    BaseJobRequestParameters,
)
from apex_dispatch_api_client.models.output_format_enum import OutputFormatEnum
from apex_dispatch_api_client.models.process_type_enum import ProcessTypeEnum
from apex_dispatch_api_client.models.service_details import ServiceDetails

client = AuthenticatedClient(
    base_url="https://dispatch-api.dev.apex.esa.int",
    token="YOUR_ACCESS_TOKEN",
)

parameters = BaseJobRequestParameters()
parameters["bbox"] = [12.0, 41.0, 13.0, 42.0]
parameters["resolution"] = 10

request = BaseJobRequest(
    title="Vegetation index",
    label=ProcessTypeEnum.OGC_API_PROCESS,
    service=ServiceDetails(
        endpoint="https://processes.example.test",
        application="/processes/vegetation-index",
        namespace="apex",
    ),
    parameters=parameters,
    format_=OutputFormatEnum.GEOJSON,
)

job = create_unit_job_unit_jobs_post.sync(client=client, body=request)
print(job)

Use sync_detailed when you need the HTTP status code, headers, or raw response content:

response = create_unit_job_unit_jobs_post.sync_detailed(
    client=client,
    body=request,
)

print(response.status_code)
print(response.parsed)

Every generated operation module follows the same pattern:

  • sync(...) returns the parsed response body.
  • sync_detailed(...) returns apex_dispatch_api_client.types.Response.
  • asyncio(...) is the asynchronous parsed-body helper.
  • asyncio_detailed(...) is the asynchronous detailed helper.

Client Types

Use Client for public endpoints such as /health.

Use AuthenticatedClient for secured endpoints. By default it sends Authorization: Bearer <token>. You can customize the header for other API gateway schemes:

from apex_dispatch_api_client.client import AuthenticatedClient

client = AuthenticatedClient(
    base_url="https://dispatch-api.dev.apex.esa.int",
    token="YOUR_API_KEY",
    prefix="",
    auth_header_name="X-Api-Key",
)

Documentation

The MkDocs documentation is organized with the Diataxis framework:

  • Tutorials for learning the client.
  • How-to guides for common tasks.
  • Reference pages for clients, operations, and models.
  • Explanation pages for generated-client behavior and model serialization.

Build the documentation locally with:

hatch run docs:build

Serve it locally with:

hatch run docs:serve

Regenerating the Client

The default Taskfile task downloads the APEx Dispatch OpenAPI schema and regenerates the client:

task

The schema is stored in schemas/openapi.json, and generated Python code is written to src/apex_dispatch_api_client.

License

This project is licensed under the Apache License 2.0. See LICENSE.

Metadata

Release files for apex-dispatch-api-client 0.7.2

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

Source distribution (sdist)

Source distribution for apex-dispatch-api-client 0.7.2
File Size Uploaded Provenance Actions
apex_dispatch_api_client-0.7.2.tar.gz 115.3 kB With provenance Details for apex_dispatch_api_client-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apex-dispatch-api-client 0.7.2
File Interpreter ABI Platform Actions
apex_dispatch_api_client-0.7.2-py3-none-any.whl Python 3 none any Details for apex_dispatch_api_client-0.7.2-py3-none-any.whl

Total release size: 188.2 kB

Release files / apex_dispatch_api_client-0.7.2.tar.gz

Download URL apex_dispatch_api_client-0.7.2.tar.gz
Size 115.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ae0e4312abc521a8f90787a42906a772d59d04a74c95a0c260277b5d90aabec
BLAKE2b-256 checksum
How to use checksums
90b6226e36daf9bbf6e1197064c3b965137c9a46f2ff856f74cddb6b8ea9b500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 5, 2026.

Transparency log

Release files / apex_dispatch_api_client-0.7.2-py3-none-any.whl

Download URL apex_dispatch_api_client-0.7.2-py3-none-any.whl
Size 72.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24438bb748022396b3637aa22be39694e9bde3d65701c577d2127f8425b5087b
BLAKE2b-256 checksum
How to use checksums
0546057029739432a476d68adff888a984d8ceb043ff191f574054f0f5eee621
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jun 5, 2026.

Transparency log

Security for apex-dispatch-api-client 0.7.2

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 apex_dispatch_api_client-0.7.2.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 Jun 5, 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.

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files Full provenance

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