Skip to main content

A package for python dev

Project description

lhl-python-tools

This is a kit for python development.

安装

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

# 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 ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lhl-python-tools-0.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

lhl_python_tools-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file lhl-python-tools-0.0.1.tar.gz.

File metadata

  • Download URL: lhl-python-tools-0.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for lhl-python-tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 179e161fb3d82629c872d118adc3ae74e2ddd1c448b3aedc4cf68ccd7f775bbb
MD5 da666ce9fe294ad88cbb59593420a407
BLAKE2b-256 7ee502eb5f13f61f5b4a33fb2b354c9a3029433ee3de2386cfe1461a191342fa

See more details on using hashes here.

File details

Details for the file lhl_python_tools-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lhl_python_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65d35952709c5ca90430c6af9d6ef2bf728329a4cf97a2f932479f3a92017d04
MD5 7b9372ebe7b22106d6e8610c25f48c5f
BLAKE2b-256 92e384b5e1018e5376bad63aaa8dfecd2289755a87ab998f4221eb70721a4530

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page