semvec/pypi-packages huggingface dataset:
ktz 0.4.0
Kantholtz' Python Toolbox
License: MIT
Requires Python: <4.0,>=3.11

# KTZ - Python Tools

[![Documentation](https://img.shields.io/badge/Documentation-Latest-success?style=for-the-badge)](https://kantholtz.github.io/ktz/)
[![KTZ on PyPI](https://img.shields.io/pypi/v/ktz?style=for-the-badge)](https://pypi.org/project/ktz)
[![Code Style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge)](https://github.com/psf/black)


Kantholtz' personal Python toolbox. Check out the [documentation here](https://kantholtz.github.io/ktz/).


## Installation

Python 3.11 is required.

```console
pip install ktz
```


For a local installation with all dev dependencies:

``` console
$ git clone https://github.com/kantholtz/ktz.git
$ cd ktz
$ conda create -n ktz python=3.11
$ conda activate ktz
$ poetry install --with dev

# run tests
$ poetry run pytest

# to continually run tests
$ poetry run ptw -c

# static typing
$ poetry run pyright src

# to check code coverage
$ poetry run coverage run -m pytest
$ poetry run coverage report
$ poetry run coverage html

# build package
$ poetry build
```
loggingA 0.0.7
自定义日志模块
License: MIT
Requires Python: >=3.8

## 创作背景

> 每个项目都要配置一次日志，繁琐，故自定义了一个库

## 功能

- 将每一个级别的日志分别写入。相较于大杂烩，层次更清晰
- 开放日志实例名的定制
- 开放日志目录定制
- 更多扩展

## 安装

### 方式一： python

```
python3 setup.py install
```

### 方式二： pip

```
pip3 install loggingA
```

## 使用

```python
from loggingA.logger import LoggerA


# Example usage
logger = LoggerA(level=logging.DEBUG, log_file="example.log")
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")

# Example of logging within a function
example_function(logger)
```