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.3.tar.gz
(64.3 kB
view details)
Built Distribution
File details
Details for the file envidat-utils-1.4.3.tar.gz
.
File metadata
- Download URL: envidat-utils-1.4.3.tar.gz
- Upload date:
- Size: 64.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7024a51f575aaabf58831b5de6fb1f7e8479b9b52b1ba927d74a99f12bad5e94 |
|
MD5 | 83065159b5058fda214c7b207fc9b9d5 |
|
BLAKE2b-256 | 7a6203201a8f5d3e55200c9e1f308f04bc7899e3e505ec52a2e604ccc553d862 |
File details
Details for the file envidat_utils-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: envidat_utils-1.4.3-py3-none-any.whl
- Upload date:
- Size: 57.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ce7c3478f47065208157b83fe3b1da24443fc4dd72d8090dd2d1e37c6b893a |
|
MD5 | d2a88403fef232ef88a4a6632ddf6814 |
|
BLAKE2b-256 | 1ce1ec2cf1f92b095b50e5862ead51e9f9f87a3f85149e26dbf5198ee7ee46da |