Python SDK for interacting with the Evolve App Server
Project description
Evolve App Server Python Client
This library provides a wrapper to the Evolve App Server's API, allowing users of the evolve SDK to authenticate with the Evolve App Server and upload studies.
Usage
from zepben.eas import EasClient, Study
eas_client = EasClient(
host="<host>",
port=1234,
client_id="<client_id>",
username="<username>",
password="<password>",
client_secret="<client_secret>"
)
eas_client.upload_study(
Study(
name="<study name>",
description="<study description>",
tags=["<tag>", "<tag2>"],
results=[
Study.Result(
name="<result_name>",
geo_json_overlay=Study.Result.GeoJsonOverlay(
data=FeatureCollection( ... ),
styles=["style1"]
),
sections=Study.Result.Section(
type="TABLE",
name="<table name>",
description = "<table description>",
columns=[
{ "key": "<column 1 key>", "name": "<column 1 name>" },
{ "key": "<column 2 key>", "name": "<column 2 name>" },
],
data=[
{ "<column 1 key>": "<column 1 row 1 value>", "<column 2 key>": "<column 2 row 1 value>" },
{ "<column 1 key>": "<column 1 row 2 value>", "<column 2 key>": "<column 2 row 2 value>" }
]
)
)
],
styles=[
{
"id": "style1",
# other Mapbox GL JS style properties
}
]
)
)
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
zepben.eas-0.1.0-py3-none-any.whl
(11.5 kB
view hashes)
Close
Hashes for zepben.eas-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe5787362de6d516fffa889b02970b42b908b6c95641b96a09c726049b16748 |
|
MD5 | e1f5007e6f464430b79f16a442159806 |
|
BLAKE2b-256 | 549b2476459e0b202b654edcfa1ff19142cc9bbb190bafb1f1d726512b234ba7 |