Python Utility Tools


Keywords
utilities, toolkit, toolbox, logger, helpers, python, utility-library
License
MIT
Install
pip install puts==0.0.11

Documentation

puts - Python Utility Tools

Python high-level helper classes and functions.

Install

  • Prerequisite: Python 3.6+
pip install --upgrade puts

Usage

Logging with Colored Output

from puts import get_logger

logger = get_logger()

logger.debug("Hello world!")
logger.info("Hello world!")
logger.warning("Hello world!")
logger.error("Hello world!")
logger.critical("Hello world!")

Development

Set up dev environment

  • clone this repo
    $ git clone https://github.com/MarkHershey/puts.git
  • go to project root
    $ cd puts
  • create virtual env for this project
    $ python -m venv venv
    $ source venv/bin/activate
    $ pip install --upgrade pip wheel setuptools
  • install this package in editable mode
    $ pip install -e ".[dev]"

Run tests

$ pytest

Disclaimer

  • This package is highly opinionated, it does not intend to cater to every use case.
  • It is only intended for personal projects usage (for now).