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
Release history Release notifications | RSS feed
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
File details
Details for the file fathom_global_client_sdk-0.14.2-py3-none-any.whl
.
File metadata
- Download URL: fathom_global_client_sdk-0.14.2-py3-none-any.whl
- Upload date:
- Size: 48.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1c277594a0edb152e40a47b2bb6f6a95ff30392fd623794591f45ac23fa57c |
|
MD5 | 43d29ef8ec2fd4468cfae402e19f287c |
|
BLAKE2b-256 | e3d3434c15aca6cd242121609ae0ec72e6cd7f46e5ed4cc22d3943d54bdbad0e |
Provenance
The following attestation bundles were made for fathom_global_client_sdk-0.14.2-py3-none-any.whl
:
Publisher:
publish-sdk.yaml
on fathom-global/api
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
fathom_global_client_sdk-0.14.2-py3-none-any.whl
- Subject digest:
3d1c277594a0edb152e40a47b2bb6f6a95ff30392fd623794591f45ac23fa57c
- Sigstore transparency entry: 148332681
- Sigstore integration time:
- Predicate type: