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

Uploaded Source

Built Distribution

scriptonite-0.9.11-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scriptonite-0.9.11.tar.gz
Algorithm Hash digest
SHA256 1dcbc56da3fb4bc01e240490fa7f26954c5418079ec74d0ee18a842abfa77993
MD5 78273e2621964dd3d0ded09baf230d70
BLAKE2b-256 14211b79eceeec130556567c691fa4e780f2733c08d262b0c24481a574b44271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scriptonite-0.9.11-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0

File hashes

Hashes for scriptonite-0.9.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8cdc89716e59d92a96cb045b55f0e02ed916660a791a3f3390e2786573a9e377
MD5 252fd9e3615d6fbf3bf4808d5cc023b3
BLAKE2b-256 7aec6974ec05f8e4129dc14141f31a7d53245d4495278f12cb0c5fe38b451681

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