Skip to main content

This is the simplest module for logging functions.

Project description

py-debugs

Debug utils for Python

Install

pip install py-debugs

Using

import py_debug as d
import logging  # optional

logging.basicConfig(
    level=logging.DEBUG,
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
    datefmt='%H:%M:%S',
    stream=sys.stdout,
    force=True  # Override any existing configuration
)

@d.log_call_counter(mute_after=1, log_every=100)
def counter(i):
    pass


if __name__ == '__main__':
    for i in range(10000):
        counter(i)
    print(d.get_call_count(counter))

See also

For more usage examples, see the "examples" catalog.

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

py_debugs-1.0.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

py_debugs-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file py_debugs-1.0.2.tar.gz.

File metadata

  • Download URL: py_debugs-1.0.2.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_debugs-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bad0ff9efc675a5b2dbbd81426d5ec222008906f3f9c2744599d34a27e4c2e43
MD5 131678c98b951b81714d1ac79290ec6a
BLAKE2b-256 8e8e9d372e1a085b57678db3ad443532b44ad5143d12d6a44bf66c5c58b3cbb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_debugs-1.0.2.tar.gz:

Publisher: python-publish.yml on DDSurok/py-debug

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_debugs-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_debugs-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_debugs-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ca65f292afb9272cedabe8372acc6cec55449ad2fa669cbaaf75ad7a401233c
MD5 582a6b1cd574ec22430db840e43e65ae
BLAKE2b-256 169a272aab9319cd6d01eaa76774747caaa02226b1378a1826e79187d4df923d

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_debugs-1.0.2-py3-none-any.whl:

Publisher: python-publish.yml on DDSurok/py-debug

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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