Skip to content

uv 管理依赖,从 yml 读取配置,自定义 logging 生成日志,定时任务压缩归档日志。Using uv to manage dependencies, loading configurations from a YAML file, customizing logging for generating logs, and using scheduled tasks to compress and archive logs.

License

Notifications You must be signed in to change notification settings

duanluan/py-uv-config-log-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-uv-config-log-example

uv 管理依赖,从 yml 读取配置,自定义 logging 生成日志,定时任务压缩归档日志。

Using uv to manage dependencies, loading configurations from a YAML file, customizing logging for generating logs, and using scheduled tasks to compress and archive logs.

打包 Packaging EXE

首次构建 Initial Build

  • -F单文件 Single-file executable,-D单目录 Single-directory executable
  • -nexe 文件名 Specifies the name of the exe file
  • --add-data添加资源文件 Adds resource files
pyinstaller -D src/main/setup.py -n main --add-data "res;res"

通过 .spec 文件构建 Build Using a .spec File

pyinstaller main.spec

启动命令 Start Command

uv run -m src.main.setup

About

uv 管理依赖,从 yml 读取配置,自定义 logging 生成日志,定时任务压缩归档日志。Using uv to manage dependencies, loading configurations from a YAML file, customizing logging for generating logs, and using scheduled tasks to compress and archive logs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages