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_as_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_inputs_as_df(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([43])
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)
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-0.1.7.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for llcsciencesdk-0.1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c87a3dda56dc8b35f15ed5d14cc2e6d95e725c66bf29a8907291a522931ad70a |
|
MD5 | 0bb458ae66bffad884d13c7af6ebf15c |
|
BLAKE2b-256 | 7b71462b1691efcdac2595b6c31f625f9787b2c3acbc2833927b3d699ac6a2c4 |