Utilities in Python for the WSL EnviDat project.
Project description
EnviDat Python Utils
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
Release history Release notifications | RSS feed
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.2.tar.gz
(64.1 kB
view details)
Built Distribution
File details
Details for the file envidat-utils-1.4.2.tar.gz
.
File metadata
- Download URL: envidat-utils-1.4.2.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85963a4e42e2f76100e3cb822fa84f18916db373ea851bd319f8d6b498ca634b |
|
MD5 | 9ee5361cb2026dd6d49491f6fceecc75 |
|
BLAKE2b-256 | f06732e325bca061c554eee92fdebc66eccd3b8d96eb3118eb89490123df8bfb |
File details
Details for the file envidat_utils-1.4.2-py3-none-any.whl
.
File metadata
- Download URL: envidat_utils-1.4.2-py3-none-any.whl
- Upload date:
- Size: 57.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a9aa27d3334b745a064058bf733af158b5280abdc496bafe33d4a512742718 |
|
MD5 | 18e99824d5dfddb020facf495ca826f0 |
|
BLAKE2b-256 | 1a9a1ca36872e538443d4591d498ea46705a258c4ae9b0f78097f7935d1ab6df |