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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fathom_global_client_sdk-0.16.0-py3-none-any.whl.
File metadata
- Download URL: fathom_global_client_sdk-0.16.0-py3-none-any.whl
- Upload date:
- Size: 60.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28eefc9969811e3be3d54cb4777e7b45c97e49b5d9acfe5e0ffd316f6f77ea44
|
|
| MD5 |
7a248dea47c78e19f7aa201241f8f732
|
|
| BLAKE2b-256 |
48dbee63e06fc22a31619d928c88c7dbb91352a76124367fd3cc49daeb6aee6d
|
Provenance
The following attestation bundles were made for fathom_global_client_sdk-0.16.0-py3-none-any.whl:
Publisher:
publish-sdk.yaml on fathom-global/api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fathom_global_client_sdk-0.16.0-py3-none-any.whl -
Subject digest:
28eefc9969811e3be3d54cb4777e7b45c97e49b5d9acfe5e0ffd316f6f77ea44 - Sigstore transparency entry: 169302687
- Sigstore integration time:
-
Permalink:
fathom-global/api@4d87694d41ec9d4973ae6bc2a2c9f7b7a48ae434 -
Branch / Tag:
refs/tags/sdk-0.16.0 - Owner: https://github.com/fathom-global
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yaml@4d87694d41ec9d4973ae6bc2a2c9f7b7a48ae434 -
Trigger Event:
push
-
Statement type: