Skip to content

Utilities for EnviDat projects in Python. API helpers, S3 wrappers etc.

License

Notifications You must be signed in to change notification settings

EnviDat/envidat-python-utils

Repository files navigation

EnviDat Python Utils

WSL
Utilities for EnviDat projects in Python.

Documentation: https://envidat.gitlab-pages.wsl.ch/envidat-python-utils/

Source Code: https://gitlabext.wsl.ch/EnviDat/envidat-python-utils


PyPi Package

  • This package aims to speed up EnviDat python workflows
  • Contains:
    • Backend API function wrappers.
    • S3 bucket class, with configurable endpoint.
    • Utils to use in multiple projects (e.g. consistent logger setup).

Install

$ pip install -U pip
$ pip install envidat-utils

Usage

from envidat.utils import get_logger
from envidat.s3 import Bucket
from envidat.api.v1 import get_package_list

Config

Environment variables:

  • LOG_LEVEL: Logging level, default INFO
  • DOTENV_PATH: Path to dotenv file if in debug mode, default=.env.
  • API_URL: URL root for the API to call, default=https://www.envidat.ch
  • TEMP_DIR: Temporary path for S3 downloads, default=/tmp
  • AWS_ENDPOINT: For S3.
  • AWS_REGION: For S3.
  • AWS_ACCESS_KEY: For S3.
  • AWS_SECRET_KEY: For S3.

About

Utilities for EnviDat projects in Python. API helpers, S3 wrappers etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages