Dev Center Gamma Depth is intended to provide a fully working example of a simple Dev Center application that receives events, processes data and communicates with the Corva APIs.
This repository contains two sample applications that demonstrate the differences between scheduled and stream apps. Both applications provide the same functionality and produce the same output.
- scheduled
- scheduled app runs periodically based on the incoming drilling data (e.g. every 10 minutes)
- invoked with scheduler events
- data records are fetched from the API
- stream
- stream app runs immediately when new drilling data is received
- invoked with queued data records
For more details, see Python SDK
- Python 3.8
- Clone the repository onto your computer:
git clone https://github.com/corva-ai/dev-center-gamma-depth-python.git
- Navigate to either
scheduled
orstream
directory - Create a new virtual environment:
python3 -m venv venv
- Activate virtual environment:
source venv/bin/activate
- Install dependencies:
pip3 install -r dev-requirements.txt
$ venv/bin/python3 -m pytest tests
$ venv/bin/python3 -m flake8