Python client for Serenytics
9.7K
Serenytics is a hosted or on-premises platform to analyze, visualize and share your data. With Serenytics you can create custom dashboards that fit your exact needs.
The Serenytics Python Client main features are:
You can use all these features inside your custom python scripts that you can run and schedule on Serenytics.
Full Serenytics developer documentation
To setup your project, follow these steps:
pip install --upgrade serenytics.Note: when running the script on Serenytics platform, the api_key
param is not required, it is set automatically.
import serenytics
client = serenytics.Client(api_key='YOUR_API_KEY')
Example script:
import serenytics
client = serenytics.Client(api_key='YOUR_API_KEY')
data_source = client.get_or_create_storage_data_source_by_name('new_data_source')
data_source.reload_data([
{'year': 2015, 'quarter': 'Q1', 'sales': 120},
{'year': 2015, 'quarter': 'Q2', 'sales': 80},
{'year': 2015, 'quarter': 'Q4', 'sales': 25},
{'year': 2014, 'quarter': 'Q2', 'sales': 85},
])
When writing your script, you often want to use your favorite IDE or text editor on your machine. You can use a virtualenv and install all the dependencies with:
pip install -r requirements.txt
or run the script with docker:
docker run --rm -it -v $(pwd):/usr/src/app serenytics/serenytics-python-client:RELEASE python YOUR_SCRIPT.py
where you have to replace YOUR_SCRIPT.py with the name of your python file and RELEASE with the last release of
the serenytics python client (e.g.: 0.2).
Content type
Image
Digest
Size
447 MB
Last updated
over 9 years ago
docker pull serenytics/serenytics-python-client:python3-1.4.4