Skip to main content

Autogenerated API client conforming to the OGC API - Processes

Project description

ogc-api

This document is an API definition document provided alongside the OGC API - Processes standard. The OGC API - Processes Standard specifies a processing interface to communicate over a RESTful protocol using JavaScript Object Notation (JSON) encodings. The specification allows for the wrapping of computational tasks into executable processes that can be offered by a server and be invoked by a client application.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://www.ogc.org/contacts

Requirements.

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import ogc_api_processes_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import ogc_api_processes_client

Tests

Execute task test (or hatch run test:run) to run the tests.

Development Tasks

Use Taskfile targets for local development:

  • task build-safe: regenerate code, apply post-generation fixes, run lint checks, and run tests
  • task check: run Ruff checks with auto-fix
  • task lint: format with Ruff
  • task test: run the test suite

Code Generation Caveats

Code generation can overwrite repository files if run directly via OpenAPI Generator.

  • Prefer task build-safe instead of raw generation commands.
  • The low-level build task is internal and is orchestrated by build-safe.
  • .openapi-generator-ignore protects project-maintained files (pyproject.toml, CI workflows, etc.); keep it up to date.
  • build-safe includes deterministic post-generation fixes (including the known bytearray/pydantic>=2 incompatibility), then runs check and test.

Getting Started

Please follow the installation procedure and then run the following:

import ogc_api_processes_client
from ogc_api_processes_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://example.org/ogc
# See configuration.py for a list of all supported configuration parameters.
configuration = ogc_api_processes_client.Configuration(
    host = "http://example.org/ogc"
)



# Enter a context with an instance of the API client
with ogc_api_processes_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ogc_api_processes_client.CapabilitiesApi(api_client)

    try:
        # landing page of this API
        api_response = api_instance.get_landing_page()
        print("The response of CapabilitiesApi->get_landing_page:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling CapabilitiesApi->get_landing_page: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://example.org/ogc

Class Method HTTP request Description
CapabilitiesApi get_landing_page GET / landing page of this API
ConformanceDeclarationApi get_conformance_classes GET /conformance information about standards that this API conforms to
DismissApi dismiss DELETE /jobs/{jobId} cancel a job execution, remove a finished job
ExecuteApi execute POST /processes/{processID}/execution execute a process.
JobListApi get_jobs GET /jobs retrieve the list of jobs.
ProcessDescriptionApi get_process_description GET /processes/{processID} retrieve a process description
ProcessListApi get_processes GET /processes retrieve the list of available processes
ResultApi get_result GET /jobs/{jobId}/results retrieve the result(s) of a job
StatusApi get_status GET /jobs/{jobId} retrieve the status of a job

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

standards-team@ogc.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ogc_api_processes_client-0.5.0.tar.gz (94.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ogc_api_processes_client-0.5.0-py3-none-any.whl (115.9 kB view details)

Uploaded Python 3

File details

Details for the file ogc_api_processes_client-0.5.0.tar.gz.

File metadata

  • Download URL: ogc_api_processes_client-0.5.0.tar.gz
  • Upload date:
  • Size: 94.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ogc_api_processes_client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d08a56272ce9eb927063f3baea5cfcfa4580a959f95450147631a55ee5c4337d
MD5 b3a50f24e26f24911578c67ac9834395
BLAKE2b-256 dd6aa8ebc2fca4540f4749614b955453f730574279c7cd2305b4fb8f89e5139d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ogc_api_processes_client-0.5.0.tar.gz:

Publisher: package.yaml on EOEPCA/ogc-api-processes-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ogc_api_processes_client-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ogc_api_processes_client-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc469ca5180f9d895da97bbba4101f47228d0cc92a88f4276b0ae3398accf9d1
MD5 e6e57ceffc2a0ee25329fad8b835204a
BLAKE2b-256 fa03bf246f22051499da2026448568ff739d65d5be5659402772e3e2896b7846

See more details on using hashes here.

Provenance

The following attestation bundles were made for ogc_api_processes_client-0.5.0-py3-none-any.whl:

Publisher: package.yaml on EOEPCA/ogc-api-processes-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page