Skip to main content

Seriously the cats ass. Seriously.

Project description

CatsAss

https://img.shields.io/pypi/v/CatsAss.svg

Seriously the cats ass. Seriously.

https://github.com/Duroktar/CatsAss/blob/master/images/CatsAss_dark.png?raw=true

WTF is it?

CatsAss is the cats ass for replacing multiple prints in simple debugging situations. So..

Instead of this..

def cat_tail_shape_determiner_function(n):
    a, b = 0, 1
    rv = [a]
    while a < n:
       print('a:', a)
       print('b:', b)
       print('rv:', rv)
       a, b = a + b, b
       rv.append(a)
    return rv

Do this.

from catsass import the_cats_ass

def cat_tail_shape_determiner_function(n):
    a, b = 0, 1
    rv = [a]
    while a < n:
       print( the_cats_ass() )
       a, b = a + b, b
       rv.append(a)
    return rv

https://github.com/Duroktar/CatsAss/blob/master/images/CatsAss_demo.png?raw=true

It’s the cats ass!!

  • Minimum terminal width of 80 characters recommended

  • MIT licensed

Installation

Requires python 3.6

To install CatsAss, run this command in your terminal:

$ pip install CatsAss

If you don’t have pip installed, this Python installation guide can guide you through the process.

Bugs

CatsAss works by inspecting the stack frames, which isn’t always the right context. In this case it isn’t really the cats ass anymore.. Luckily you can poke the cat in different places until you get the context you want.

from catsass import the_cats_ass, comb, Cats


def long_cat_tail():
    def cat_tail_shape_determiner_function(n):
        a, b = 0, 1
        rv = [a]
        while a < n:
           print( poke_the_cat(Cats.TAIL, catnip=True) )
           a, b = a + b, b
           rv.append(a)
        return rv
    return cat_tail_shape_determiner_function(100)

Issues

Deep personal ones, yes.

Coding

Duroktar - duroktar@gmail.com

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

CatsAss-1.0.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

CatsAss-1.0.0-py36-none-any.whl (8.4 kB view hashes)

Uploaded Python 3.6

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