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.123.tar.gz
(32.7 kB
view details)
Built Distribution
File details
Details for the file voxelfarm-0.0.123.tar.gz
.
File metadata
- Download URL: voxelfarm-0.0.123.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4aaee23a96930b29a36604ca2ce22baa1291aa7cf6215b83135ec72ed186c9 |
|
MD5 | dec6e16e6ced90ac88dc8b96775201ba |
|
BLAKE2b-256 | e63cf7b2717e1f3633975bc6a9cd0dcc878c51ae77b8d45e6a9efeeba6bcdc62 |
File details
Details for the file voxelfarm-0.0.123-py3-none-any.whl
.
File metadata
- Download URL: voxelfarm-0.0.123-py3-none-any.whl
- Upload date:
- Size: 38.8 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 | df9ca79983730229a7dd10b6f64f69e6287dd544c8a787b655528eababb7f193 |
|
MD5 | 482c42d45327a11301bffbe2df07b3b4 |
|
BLAKE2b-256 | 44f563c0e0a48639458f030606afc91b906bed53a25096df90bfd09203768032 |