Skip to main content

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.

Source Distribution

meepy-0.0.5.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meepy-0.0.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file meepy-0.0.5.tar.gz.

File metadata

  • Download URL: meepy-0.0.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.4

File hashes

Hashes for meepy-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8c20014f86a533213ab10891c11ee038690b8cc6249210dbb339ace8545951db
MD5 b82602b72affad0ce72f5d12727f8349
BLAKE2b-256 e94327ff4783079aff4ac1359b4eca870dadadca12295be888efd8a43b73dfa0

See more details on using hashes here.

File details

Details for the file meepy-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: meepy-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.4

File hashes

Hashes for meepy-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 08435729b8e01f773a324ca61eb065cc2462b9fd3b9be02f3e2ac3196caf6792
MD5 e7aa372bfc1493acf7709c2c820e94a3
BLAKE2b-256 3f317c75f8c26bee624284f1cd4eed381746ee79b77d90aa9c0264cc71d9fd93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page