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.86.tar.gz
(27.7 kB
view details)
Built Distribution
File details
Details for the file voxelfarm-0.0.86.tar.gz
.
File metadata
- Download URL: voxelfarm-0.0.86.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867f24970d579fbf5eb3de595f5f7a31a6055d86e807e0c0e28afae6a2db1900 |
|
MD5 | 17a2e3f9ed1e53813cb1ddafcfc26a40 |
|
BLAKE2b-256 | 6be50a30f1cde50e9ecaf68fe9411680af6f5078367dd31ca8457c392e9ed2a4 |
File details
Details for the file voxelfarm-0.0.86-py3-none-any.whl
.
File metadata
- Download URL: voxelfarm-0.0.86-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dabfe309bb4665eb694e209b29a19b516219eb367872d5688390a9474c2194ef |
|
MD5 | 005bf5135893f2293b600634e117881c |
|
BLAKE2b-256 | 2de1fc5943b2481aa47a23689b60710fec3902c75c2d9335bd913c0fbdff80f4 |