Skip to main content

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

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-1.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

scriptonite-1.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scriptonite-1.0.1.tar.gz
  • Upload date:
  • Size: 7.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

Hashes for scriptonite-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c23330e2c48b4a65d9f6274291a912e64b345f609c960e7b504fae30e6d46ae
MD5 4563c93751f59aac133f161ca5a27d0f
BLAKE2b-256 fab025fa8a99de0db487722c3578230b26ad99316fda854f4bd5ac5ddb3719c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scriptonite-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 609a4f40b473b5676f8692c5636352a4469301e5f2fda8583a3dbe2b7458bed1
MD5 5ac9ce7236fbc623d7cdf377c8f79eca
BLAKE2b-256 77da4025e361e1bfd5d1221e3b01a8251941f3ad39e8d8aa3ded6782dc7ce859

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