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.5.tar.gz (64.6 kB view details)

Uploaded Source

Built Distribution

envidat_utils-1.4.5-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: envidat-utils-1.4.5.tar.gz
  • Upload date:
  • Size: 64.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.1 CPython/3.11.2

File hashes

Hashes for envidat-utils-1.4.5.tar.gz
Algorithm Hash digest
SHA256 38cfad2e01888eab2b48ee71f64e1cdd31837b8e6cea264eb0a51c42a7ee86a6
MD5 b6e9109dc494c78e3b4f15398e2e1204
BLAKE2b-256 5bfe7ac46d7ec57d81643a95393c3707f33fa7cf3d39a42f1e3f9046dfd060f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for envidat_utils-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40efa25229c5fae5b37fd10be999fb4067cb7b3d0415db7e61f165bb62ae02f3
MD5 ea3eff66eb1be406ca6382e31896ac8a
BLAKE2b-256 6990b71e1e9d83927eca864647ccf32860ddcffc294fdb78077f9daa3c797e1f

See more details on using hashes here.

Supported by

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