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.2.tar.gz
.
File metadata
- Download URL: scriptonite-1.0.2.tar.gz
- Upload date:
- Size: 9.5 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 | 6dc9a2acabae502a09be39d0f8e324be28ae26db88a0e177aa4d8f312a4d8877 |
|
MD5 | 4ae9a1ad7e437e70c7f8dfcd8da228e7 |
|
BLAKE2b-256 | 06274d1aaca3deb4fe02323bd109d84d3ad8c31e025f466923c592c1d759f67b |
File details
Details for the file scriptonite-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: scriptonite-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.5 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 | b4bb0f3424073fb2f41d4c52c252dcef4f568e3d9e542d05e74918282a3d810c |
|
MD5 | 15a92bea4c63244ea0075964ad53789c |
|
BLAKE2b-256 | 37be969e46ed8b98ff5c6c30ebc4b50a8fa0a261d172f2496e140138734938d6 |