Skip to main content

Functions to help debugging

Project description

This package contains functions to help debugging :

  • dprint : function that enables to print the name and the value of the input parameter of the function

You can install it through pip :

pip install debugckage

Exemples of use :

>>> from debugckage import dprint
>>>
>>> var1 = 10.0
>>> dprint(var1)
var1 : 10.0

>>> from debugckage import dprint
>>>
>>> def test():
>>>     """
>>>         test function
>>>     """
>>>
>>>     var2 = "a"
>>>     dprint(var2)
>>>
>>> test()
var2 = "a"

>>> from debugckage import dprint
>>>
>>> class Test():
>>>     """
>>>         test class
>>>     """
>>>
>>>     def __init__(self):
>>>         """
>>>             class constructor
>>>         """
>>>
>>>         self.var3 = 45
>>>
>>>     def test_method():
>>>         """
>>>             test method
>>>         """
>>>
>>>             dprint(self.var3)
>>>
>>> t = Test()
>>> t.test_method()
[ class instance is : "t" ] self.var3 = 45

The code has been developped under Python 3.7 ans is under the WTFPL license.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debugckage-1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

debugckage-1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file debugckage-1.0.tar.gz.

File metadata

  • Download URL: debugckage-1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for debugckage-1.0.tar.gz
Algorithm Hash digest
SHA256 f083861d278ad08431c2586974733b8caf317f65daeb7edc42436db131eedf0a
MD5 286998fed3b5f5253bc187c039cd7feb
BLAKE2b-256 940df5a515bf78b779a216a225208545b9c9c21069d45afce1b5186a30facff2

See more details on using hashes here.

File details

Details for the file debugckage-1.0-py3-none-any.whl.

File metadata

  • Download URL: debugckage-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2

File hashes

Hashes for debugckage-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 814c4b0e32c8e4cf669b2ed1fe5bd1cd4d9129ea7ad5246941994bd56e711de8
MD5 5e3200ce65be9d84c9c386f2f0ef975c
BLAKE2b-256 47f4dc99ca53f2cb73c60b210a6f85ae4900eb4d0c46701627f7eff575c558f3

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