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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bad0ff9efc675a5b2dbbd81426d5ec222008906f3f9c2744599d34a27e4c2e43
|
|
| MD5 |
131678c98b951b81714d1ac79290ec6a
|
|
| BLAKE2b-256 |
8e8e9d372e1a085b57678db3ad443532b44ad5143d12d6a44bf66c5c58b3cbb0
|
Provenance
The following attestation bundles were made for py_debugs-1.0.2.tar.gz:
Publisher:
python-publish.yml on DDSurok/py-debug
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_debugs-1.0.2.tar.gz -
Subject digest:
bad0ff9efc675a5b2dbbd81426d5ec222008906f3f9c2744599d34a27e4c2e43 - Sigstore transparency entry: 833748048
- Sigstore integration time:
-
Permalink:
DDSurok/py-debug@22679a85f91aaafffe032e0cd1c6d26c19ef2760 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/DDSurok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22679a85f91aaafffe032e0cd1c6d26c19ef2760 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca65f292afb9272cedabe8372acc6cec55449ad2fa669cbaaf75ad7a401233c
|
|
| MD5 |
582a6b1cd574ec22430db840e43e65ae
|
|
| BLAKE2b-256 |
169a272aab9319cd6d01eaa76774747caaa02226b1378a1826e79187d4df923d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py_debugs-1.0.2-py3-none-any.whl -
Subject digest:
9ca65f292afb9272cedabe8372acc6cec55449ad2fa669cbaaf75ad7a401233c - Sigstore transparency entry: 833748049
- Sigstore integration time:
-
Permalink:
DDSurok/py-debug@22679a85f91aaafffe032e0cd1c6d26c19ef2760 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/DDSurok
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22679a85f91aaafffe032e0cd1c6d26c19ef2760 -
Trigger Event:
push
-
Statement type: