Skip to content

meetbill/MyPythonLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyPythonLib

1 My_lib

1.1 终端界面 / 菜单相关

  • Python 程序进度条 ---------------------------progressbar
  • Linux 终端表格 ------------------------------ttable
  • 命令行执行加函数参数时,可以直接对函数操作 --command
  • 终端 print 颜色 -----------------------------color

1.2 进程相关

  • 守护进程模板 --------------------------------daemon
  • 检测某进程是否存在 --------------------------monitor_process
  • Python 多进程 - 多线程任务队列 --------------mpmt
  • Python 调用 shell 库 ------------------------easyrun

1.3 配置文件及日志相关

  • 查看 Linux 信息和修改 Linux 配置文件 --------serverinfo_config
  • 根据日志大小轮转日志 ------------------------log
  • 对配置文件进行获取配置以及修改配置 ----------file_utils
  • 参数检查
    • 函数参数检查 ------------------------------schema
  • 将 xml 转为字典或者字典转为 xml -------------xmltodict

1.4 其他

  • 根据 IP 获取地址位置信息 --------------------query_ip

1.5 Debug

  • 极简 DeBug 工具 PySnooper -------------------PySnooper

1.6 DB/Redis

  • 轻量化 MySQL orm ----------------------------Peewee
  • Python 连接 MySQL 的库 PyMySQL --------------PyMySQL
  • 分析 Redis RDB 工具 -------------------------redis-rdb-tools

2 Example

2.1 教程

2.2 相关笔记

3 相关项目

4 参加步骤

  • 在 GitHub 上 fork 到自己的仓库,然后 clone 到本地,并设置用户信息。
$ git clone https://github.com/meetbill/MyPythonLib.git
$ cd MyPythonLib
$ git config user.name "yourname"
$ git config user.email "your email"
  • 修改代码后提交,并推送到自己的仓库。
$ #do some change on the content
$ git commit -am "Fix issue #1: change helo to hello"
$ git push
  • 在 GitHub 网站上提交 pull request。
  • 定期使用项目仓库内容更新自己仓库内容。
$ git remote add upstream https://github.com/meetbill/MyPythonLib.git
$ git fetch upstream
$ git checkout master
$ git rebase upstream/master
$ git push -f origin master

About

🐍 Python 库(工欲善其事,必先利其器) 标准库(https://docs.python.org/zh-cn/2.7/library/index.html) 每天动动手小例子:(https://www.runoob.com/python3/python3-examples.html

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published