Skip to main content

Utilities in Python for the WSL EnviDat project.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envidat-utils-1.4.13.tar.gz (64.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envidat_utils-1.4.13-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file envidat-utils-1.4.13.tar.gz.

File metadata

  • Download URL: envidat-utils-1.4.13.tar.gz
  • Upload date:
  • Size: 64.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.4 CPython/3.10.16 Linux/5.4.0-211-generic

File hashes

Hashes for envidat-utils-1.4.13.tar.gz
Algorithm Hash digest
SHA256 937f0ebbbc4c4b353a70b1b31b2e9958967a3573f4c1572cc59120844c7a2af0
MD5 38178f02ec573e4fd5881565e99f0d3f
BLAKE2b-256 00b160ac22d5b929e6360c0f7a3f31684b7e33905950e0e4e889fd453c4aa8bd

See more details on using hashes here.

File details

Details for the file envidat_utils-1.4.13-py3-none-any.whl.

File metadata

  • Download URL: envidat_utils-1.4.13-py3-none-any.whl
  • Upload date:
  • Size: 57.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.4 CPython/3.10.16 Linux/5.4.0-211-generic

File hashes

Hashes for envidat_utils-1.4.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f4fdb171781e81a4717b2bf1772db2ab7a83b6a300b631cd871c5038f42ef3c3
MD5 8d68752f75e05482cf7f7784e6e58873
BLAKE2b-256 1d7a2abe83b230d2aa4d077d8c937f37298b9eb4be50e53d8dd1452a51b07d93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page