GithubHelp home page GithubHelp logo

debug_printer's Introduction

debug_printer

A very simple Python module that allows for printing text to a file with ANSI color strings.

The intent is to be able to tail a file in order to provide an additional source of information. For those times when you need information without clogging up your generic output and dropping into a debug session is unnecessary.

I am intentionally not using the native logging system. This is intended as a simple drop-in module with very basic support for my own coding workflow.

Note

It is generally preferable to drop into a PDB shell for debugging. This is not meant to replace that. Please don't allow printing everything to become a habit. The road to hell is paved with print() statements.

Installation

  1. cd into a temporary directory
  2. git clone https://github.io/koepnick/debug_printer
  3. If using a virtual environment: python setup.py install

-- or --

  1. If using "globally": python setup.py install --user

Please, please do not install to your system site packages. The road to hell is also paved with sudo pip install

Even installing under uid 0 in a container is a seriously bad idea.

This goes for all 3rd party packages.

Features

  • Basic coloring
  • Stateless singleton
  • Symbolic icons
  • UTF-8 icon fallback
  • User-defined colors
  • Settings file
  • Vim functions to write and populate line numbers
  • Object ancestry
  • List enumeration
    • Kinda working but no tabs
  • PyPi submission

debug_printer's People

Contributors

koepnick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.