A toolkit for scripting in Python
Project description
SCRIPTONITE
An opinionated Python toolkit for scripting
Introduction
When writing python utilites and CLI scripts there are some parts that need to be implented each time, like
- logging;
- configuration parsing;
- other nice to have;
We wrote some opinionated implementations, that gives enough flexibility, but reduce the effort required to start writing the core parts of our script.
More details on each submodule can be found in the docs/
directory of the original repository.
Install
pip intall scriptonite
or
clone the original repo, then run
poetry update
poetry build
then you can install from local copy, that you can find in dist/
directory
How to use
Logging
from scriptonite.logging import Logger
log = Logger()
log.info('Hello World!')
Configuration
For more complete configuration management, you can use Dynaconf
from scriptonite.configuration import Configuration
configuration = Configuration(configfile="config.yaml",
env_prefix="MYCONFIG")
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
Built Distribution
File details
Details for the file scriptonite-1.0.3.tar.gz
.
File metadata
- Download URL: scriptonite-1.0.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6e879ba9ba79368a0165d479c9db28620f23af01c89bde0da40e761bf75032d |
|
MD5 | df60f1a1730a4e2378ae2d283596babb |
|
BLAKE2b-256 | 479c0c5158567b47c55d837ceda3258e78bd3c9d08089c011e61c50e00bceb49 |
File details
Details for the file scriptonite-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: scriptonite-1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.2 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b843c0762e38d68eba9ff5ffa9bf56b10323f0f78556e17f67b2221e7f26cce |
|
MD5 | 7d806edaa87c039d604fb8f2627865c4 |
|
BLAKE2b-256 | 65e215f89d45517b5cd518470748487ef348a03ba71704288fecd8a251dbfa99 |