Skip to main content

No project description provided

Project description

Fathom Python SDK client

The Python SDK client for communicating with the Fathom API. See the SDK documentation for more information.

Example usage:

"""An example usage of the Fathom API client."""

import os

from fathom.sdk.v2 import Client, point, polygon, write_tiffs

if __name__ == "__main__":
    client = Client(
        os.getenv("FATHOM_CLIENT_ID"),
        os.getenv("FATHOM_CLIENT_SECRET"),
        os.getenv("FATHOM_API_ADDR"),
    )

    layer_ids = [
        "GLOBAL-1ARCSEC-00_OFFSET-1in10-PLUVIAL-DEFENDED-DEPTH-2020-PERCENTILE50-v0.0.0_test",
        "GLOBAL-1ARCSEC-00_OFFSET-1in100-PLUVIAL-DEFENDED-DEPTH-2020-PERCENTILE50-v0.0.0_test",
    ]

    # Get from points
    pt = point(lat=51.996147, lng=-2.159495)
    points_response = client.geo.get_points(([pt]), layer_ids)

    # Or using a polygon
    poly = polygon(
        [
            point(51.45, 0),
            point(51.55, 0),
            point(51.55, -0.1),
            point(51.45, -0.1),
            point(51.45, 0),
        ]
    )
    polygon_response = client.geo.get_polygon(poly, layer_ids)
    write_tiffs(
        polygon_response,
        output_dir,
    )

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fathom_global_client_sdk-1.1.1-py3-none-any.whl (73.2 kB view details)

Uploaded Python 3

File details

Details for the file fathom_global_client_sdk-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fathom_global_client_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c9b9faa9ee0208477bf24e7ba17d1e0c32a5f557e2f1f6dc3de09d052be22a0
MD5 49cdababc7efa90ab4ee4cdd24229371
BLAKE2b-256 cb81ef736df3921f9f8e56a1962e20db8de4c2d7997e207d5c6802e65b9ea1d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fathom_global_client_sdk-1.1.1-py3-none-any.whl:

Publisher: publish-sdk.yaml on fathom-global/api

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