All Python example are written for Python 2.7.
- Install git from https://git-scm.com/ or copy code from below in your own project.
git clone https://gist.github.com/2830343c4cfea112fed10282d2fc6962.git pythonExamples
cd pythonExamples
- Install Python dependencies.
pip install -r requirements
- Run:
python basic_example.py
- Start notebook server, a web browser window will open.
jupyter notebook
- Open basic_example.ipynb
Sends a simple request to /api/data/flat/ to demonstrate how to get data for a single stream segment.
Demonstrates how to use pagination in code.