Giter Site home page Giter Site logo

meepy's Introduction

Meep Morp

meep morp clink clank

Meepy is a package who's sole purpose is to print basic diagnostic information to the log. It is particularly useful when you want to use print() in your code but you want to know where it came from.

Options

  • message [default: None]
  • parent [default: None]
  • expected [default: None]

Examples


Import

from meepy import Meep

Basic Usage

Meep.morp()

Option: message

Adds a custom message to the output

Meep.morp(message='a custom message')

Option: parent

By adding the parent meepy will print the path to the file where the Meep.morp occurred.

from meepy import Meep

class Example:
    def test():
        Meep.morp(self)
        # or
        Meep.morp(parent=self)

Option: expected

Lets face it, sometimes you want to straddle a line of code to see if its a suspect line. Using the expected option can help identify your morps.

Meep.morp()
# this is the suspect line of code
Meep.morp(False)
# or
Meep.morp(expected=False)

meepy's People

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.