Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A diagnostics package for when print statemets are not adequate

Project description

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)

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 meepy, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size meepy-0.0.5-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size meepy-0.0.5.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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