Voxel Farm Python Lambdas
Project description
Voxel Farm Client Package
This is a simple example package. You can use Voxelfarm PythonCookbook
to write your content.
Initialize API
This example shows how to create a new instance of the Voxel Farm client Python API.
# Import the Voxel Farm Client Library
from voxelfarm import voxelfarmclient
# The URL for the Voxel Farm API
vf_api_url = os.getenv('YOUR_VOXELFARM_API_URL')
# Create instance of the Voxel Farm REST API
vf = voxelfarmclient.rest(vf_api_url)
Provide Credentials
This example shows how to provide credentials for API authentication.
# Set credentials
aad_app_secrets = os.getenv('AAD_APP_SECRETS')
if (aad_app_secrets!=None):
vf.set_file_credentials(aad_app_secrets)
Specify an HTTP proxy
This example shows how to specify an HTTP proxy to be used in all HTTP calls made by the API.
# Use a proxy to debug HTTP requests using Fiddler or similar
proxies = {
"http": os.getenv('YOUR_PROXY_URL'),
}
# Set the proxy to debug HTTP calls
vf.set_proxy(proxies)
Get CRS from project
This example shows how to retrieve the project's CRS (Coordinate Reference System).
# Get the coordinate system given project ID
result = vf.get_project_crs(project)
if not result.success:
print(result.error_info)
exit()
crs = result.crs
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 Distribution
voxelfarm-0.0.158.tar.gz
(34.4 kB
view details)
Built Distribution
File details
Details for the file voxelfarm-0.0.158.tar.gz
.
File metadata
- Download URL: voxelfarm-0.0.158.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e591a47ef7c376f37c4e66b8b3ba5c5c51197bc4089cf0572510bc99bf0af334 |
|
MD5 | 3e7d7ee74731af2b33450a2fafd4bd86 |
|
BLAKE2b-256 | 2c955756f511ed2d6310e207e6f2b7426a704916a2583cdb59b54b1614798c0e |
File details
Details for the file voxelfarm-0.0.158-py3-none-any.whl
.
File metadata
- Download URL: voxelfarm-0.0.158-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea17b48f8c6ff7fcae3fdb396042b3fd5282b3aa8f5cd254b42a63bf52271453 |
|
MD5 | e07b7759cc4f07702923d3a26b22460d |
|
BLAKE2b-256 | bd86e259017beaa8f0307aaa248653371846e162c086494f9e708ec189ff2a8c |