Skip to main content
dbgcode: Write debug code with confidence

dbgcode is a python package that make it easy
to remove debug code after you finish debugging


Installation
------------

.. code-block:: bash

$ pip install dbgcode

Quick Start
-----------

example usage:
file: f.py

.. code-block:: python

x = []
for i in range(1, 100):
for j in range(1, 100):
# dbg
print("i", i)
print("j", j)
# /dbg
if i % 3 == 0 and j % 3 == 0:
print("(i, j) ", (i, j)) # _dbg
x.append((i, j))


save this file and then in the command line

.. code-block:: bash

$ dbgcode clean f.py

the result is:
.. code-block:: python

x = []
for i in range(1, 100):
for j in range(1, 100):
if i % 3 == 0 and j % 3 == 0:
x.append((i, j))

LICENSE
-------
**MIT**

Metadata

Release files for dbgcode 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbgcode 0.1
File Size Uploaded Provenance Actions
dbgcode-0.1.tar.gz 1.9 kB Without provenance Details for dbgcode-0.1.tar.gz

Release files / dbgcode-0.1.tar.gz

Download URL dbgcode-0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e36085790a8935144b304c246552e51e0dc2e01444be186c0d495b750d84dbab
BLAKE2b-256 checksum
How to use checksums
04bb4866c6cfa3563c265d6cb95c49b68674a72da39ed63935785bf3d42f8986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dbgcode 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page