iwell-deo is a project aimed at automating the collection, validation, and aggregation of your operational oil & gas data from iwell.info.
Available on DockerHub!
- Install poetry package manager:
pip3 install poetry
- Install the dependencies from pyproject.toml:
poetry install
- Define the necessary environment variables (example below)
- Run the app:
docker-compose up
Example development configuration. Environment variables can either be defined at the system level or in a filed named '.env' in the project's root directory.
.env
IWELL_CLIENT_ID=YOUR_CLIENT_ID
IWELL_CLIENT_SECRET=YOUR_CLIENT_SECRET
IWELL_URL=https://api.iwell.info/v1
IWELL_USERNAME=YOUR_USERNAME
IWELL_PASSWORD=YOUR_PASSWORD
IWELL_TOKEN_PATH=/oauth2/access-token
DATABASE_DRIVER="postgres"
DATABASE_USERNAME="iwell"
DATABASE_PASSWORD=""
DATABASE_HOST="localhost"
DATABASE_NAME="iwell"
DATABASE_SCHEMA="public"
SENTRY_DSN=""
SENTRY_ENABLED=false
LOG_LEVEL=10
FLASK_APP=iwell.manage.py
FLASK_ENV=development
APP_SETTINGS=iwell.config.DevelopmentConfig
SECRET_KEY=my_precious
- add documentation
- finish unit tests