feat: basefiles

This commit is contained in:
cătălin 2023-10-02 22:46:29 +02:00
commit bdf9e90efa
Signed by: catalin
GPG key ID: 686088EF78EE4083
16 changed files with 1299 additions and 0 deletions

37
README.md Normal file
View file

@ -0,0 +1,37 @@
# shushlog
![PyPI](https://img.shields.io/pypi/v/shushlog?logo=python)
![PyPI - License](https://img.shields.io/pypi/l/shushlog)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/shushlog)
[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)
Async-compatible, dependency-less, simple log suppression and filtering.
## TLDR
- supress all logs
```python
>>> import logging
>>> import shush
>>> logger = logging.getLogger('foo')
>>> @shush.supress
>>> def shouldnt_log():
>>> logger.info("this should not be logged")
>>> @shush.supress
>>> async def shouldnt_log_async():
>>> logger.info("this should not be logged")
>>> def should_log():
>>> logger.info("this should be logged")
>>> shouldnt_log()
>>> await shouldnt_log_async()
>>> should_log()
INFO: this should be logged
```
- muzzle text