Skip to main content

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.environ["FATHOM_CLIENT_ID"],
        os.environ["FATHOM_CLIENT_SECRET"],
        os.environ["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,
    )

Metadata

Release files for fathom-global-client-sdk 1.4.0

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

Built distribution (wheel)

Table of built distributions (wheels) for fathom-global-client-sdk 1.4.0
File Interpreter ABI Platform
fathom_global_client_sdk-1.4.0-py3-none-any.whl Python 3 none any Details

Release files / fathom_global_client_sdk-1.4.0-py3-none-any.whl

Download URL fathom_global_client_sdk-1.4.0-py3-none-any.whl
Size 76.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b481b54391c71f41991e3c860a3c35f1a74edf50a2e3465b10c5a5471c39e589
BLAKE2b-256 checksum
How to use checksums
b78aec1199bf048ae5d6e98895fb67432c299ce40fa51fc9a8fb892415f5ed9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
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