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.

Files for puts, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size puts-0.0.7.tar.gz (10.1 kB) File type Source Python version None Upload date Hashes View
Filename, size puts-0.0.7-py3-none-any.whl (12.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page