Metadata-Version: 2.1
Name: lhl-python-tools
Version: 0.0.1
Summary: A package for python dev
Home-page: https://github.com/new001code/lhl-python-tools
Author: new001code
Author-email: lhl_creeper@163.com
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: loguru ~=0.7.2
Requires-Dist: PyYAML ~=6.0.1
Requires-Dist: loguru-config ~=0.1.0

# lhl-python-tools

This is a kit for python development.

## 安装

```bash
pip install lhl-python-tools
```

## 使用

Some of the features of this tool are based on the file `$project/conf/lhl_tools_config.yml`

lhl_tools_config.yml

```yml
# email
email:
  host: xxx(smtp.xxx.com)
  port: xxx(25)
  user: xxx(your_email@gmail.com)
  password: xxx(your_password_token)

# async-tools, define some thread or process pool information
async-tools:
  thread-pool:
    - thread_name: max_workers
    - default: 10
  process-pool:
    - process_name: max_workers
    - default: 1
  
# logger, see [loguru-config](https://github.com/erezinman/loguru-config)
logger:
  handlers:
  - sink: ext://sys.stderr
    format: '[{time}] {message}'
  - sink: file.log
    enqueue: true
    serialize: true
  levels:
    - name: NEW
      'no': 13
      icon: ¤
      color: ""
  extra:
    common_to_all: default
  activation:
    - [ "my_module.secret", false ]
    - [ "another_library.module", true ]
```
