Skip to main content

Python Utility Tools

Project description

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).

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

puts-0.0.9.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

puts-0.0.9-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

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