A mini SDK for interacting with the LLC Science Admin
Project description
LLC Science SDK
A simple way to fetch scientific data from the Science Admin.
Installation
pip install llcsciencesdk
Updating to a new version
pip install llcsciencesdk -U
Usage
Getting the data in JSON format
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk()
llc_api.login("username", "password")
model_input = llc_api.get_model_input_fast_track_json(1)
Getting the data as a list of DataFrames
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk()
llc_api.login("username", "password")
model_input = llc_api.get_model_input_fast_track(1)
Getting data with legacy version8 and version11 parameter names
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk()
llc_api.login("username", "password")
model_input = llc_api.get_model_input_as_json(1, legacy_parameters=True)
Getting data for old model runs using the old API structure
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk()
llc_api.login("username", "password")
model_input = llc_api.get_old_model_inputs([46])
Getting data about a Planting Design
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk()
llc_api.login("username", "password")
planting_design_list = llc_api.get_planting_design_list()
planting_design_detail = llc_api.get_planting_design(10)
Connecting to staging and local envs is also possible
from llcsciencesdk.llc_api import ScienceSdk
llc_api = ScienceSdk(environment="staging")
# or
llc_api = ScienceSdk(environment="local")
llc_api.login("username", "password")
model_input = llc_api.get_model_inputs(1)
Supported endpoints
The following endpoints can be called
Fast Track Endpoints (Refer to FT API docs for more info)
- llc_api.get_model_input_fast_track_json
- llc_api.get_model_input_fast_track
- get_model_input_calibrate_fast_track_json
- get_model_input_calibrate_fast_track
- get_model_input_density_analyses_fast_track_json
- get_model_input_density_analyses_fast_track
Planting Design Endpoints
- llc_api.get_planting_design_list -> Returns a list of the Planting Designs(id, name)
- llc_api.get_planting_design(id) -> Returns a detail object of the Planting Design (id, name, species, location)
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
llcsciencesdk-1.1.6.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for llcsciencesdk-1.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a4f0ad625cac32f50ca886eee41e0b61691f6ecb22ef2ece577d791c19e384 |
|
MD5 | 234c5c4e17652a89d4daff36a9290ed6 |
|
BLAKE2b-256 | 555994b82bb31cb7b0746ff87051d014bd7e7e657f9f99cb4323bf5b5252205f |