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

Uploaded Source

Built Distribution

scriptonite-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scriptonite-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 73fee8bf472f9e879d41b647a7fe0183fa5099070a7eb54a2698a3647d4b0ac8
MD5 917b718b24f806bbe7f3917d45a61d22
BLAKE2b-256 d9111f8e1f79d4058c54c46fd5046546f634346395623cc615ea924c450b4e8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scriptonite-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01e66aeba49b897a6751fe253a9cc4af2c308d10f3658f7c889b647f57d6bd71
MD5 8b3ccc7832daa0b9de128f1c5aa337b8
BLAKE2b-256 ba41e6df3824208a861682bcb83f2a11f4aceea734c7c5bfcbf6793d33922c92

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