Skip to main content

A toolkit for scripting in Python

Project description

SCRIPTONITE

A 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 standard 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

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

scriptonite-0.9.10.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

scriptonite-0.9.10-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file scriptonite-0.9.10.tar.gz.

File metadata

  • Download URL: scriptonite-0.9.10.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.2 Darwin/23.4.0

File hashes

Hashes for scriptonite-0.9.10.tar.gz
Algorithm Hash digest
SHA256 5dc9061958edf73c586dde2a0d8cd0411690b300bc8823f652d6c6ad6c8579d4
MD5 13c688d00e27bf637c3f929fa637ad11
BLAKE2b-256 ca4a456cb431b83d13d31074670ffc591b88d417f17ffdb76ff860fa586412ad

See more details on using hashes here.

File details

Details for the file scriptonite-0.9.10-py3-none-any.whl.

File metadata

  • Download URL: scriptonite-0.9.10-py3-none-any.whl
  • Upload date:
  • Size: 5.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

Hashes for scriptonite-0.9.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ce110a63770da5dfb4b2d7bc762d54286ebab67090c52ff9af8bcb0cc2895701
MD5 029a8d0d1e93e277948a210f1077872a
BLAKE2b-256 0639940e67f122246a6e780c1140f14c1341eb191cfd908ef9f87cdf379c0c51

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