Skip to main content

shushlog

PyPI PyPI - License PyPI - Python Version pdm-managed

Async-compatible, dependency-less, simple log suppression and filtering lib

Install

pip install shushlog

TLDR

  • supress all logs
>>> import logging
>>> import shush
>>> logging.basicConfig()
>>> logger = logging.getLogger("some_logger")
>>> logger.setLevel(logging.INFO)
>>> @shush.suppress
>>> def suppressed_func():
>>>     logger.info("this should not be logged")
>>> def normal_func():
>>>     logger.info("this should be logged")
>>> suppressed_func()
>>> normal_func()
INFO:some_logger:this should be logged
  • muzzle text
>>> import logging
>>> import shush
>>> logging.basicConfig()
>>> logger = logging.getLogger("some_logger")
>>> logger.setLevel(logging.INFO)
>>> @shush.muzzle("foo")
>>> def muzzled_func():
>>>     logger.info("this contains `foo`, so it should be muzzled out")
>>>     logger.info("this doesn't contain it, so it should be showing")
>>> muzzled_func()
INFO:some_logger:this doesn't contain it, so it should be showing

Metadata

Release files for shushlog 0.1.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 shushlog 0.1.1
File Size Uploaded Provenance Actions
shushlog-0.1.1.tar.gz 14.6 kB Without provenance Details for shushlog-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shushlog 0.1.1
File Interpreter ABI Platform Actions
shushlog-0.1.1-py3-none-any.whl Python 3 none any Details for shushlog-0.1.1-py3-none-any.whl

Total release size: 29.8 kB

Release files / shushlog-0.1.1.tar.gz

Download URL shushlog-0.1.1.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1eb3d43cdd2454b3f2724f6940350f15b8bcc005ae39c737767e3a79176602d4
BLAKE2b-256 checksum
How to use checksums
fa4ea7d94b2e11a6e20d42a82ca9b0842aae35424446754da45ec73720d37052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.9.4

Release files / shushlog-0.1.1-py3-none-any.whl

Download URL shushlog-0.1.1-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f0a5dd6c879dc85d498550d88c2ea728ecb1882b2199a269a2202dc33699cf0
BLAKE2b-256 checksum
How to use checksums
c1c74d028d86d1704903e15d0a0d7e2315d6d3b6a2df0484023fe5949c966af9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.3 CPython/3.9.4

Security for shushlog 0.1.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.1 This release

2 release files 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