nb_libs 不想分开分发很多个不同功能单独的包,各种小功能杂项放在一起,具体功能看代码.
Project description
1.nb_libs 介绍
nb_libs 是 各种小功能集合,不再单独给每个功能模块创建单独的git项目
2. 安装
pip install nb_libs
不想分开分发很多个不同功能单独的包,各种小功能杂项放在一起,具体功能看代码.
3. 各模块功能介绍
3.1 auto_git
自动merge你自己的开发分支到指定的分支,节约10次git命令操作
3.2 code_line_statistics
统计代码文件和行数
3.4 github_git_clone
自动批量下载git项目,人工太累了。
3.5 global_dict
全局字典
3.6 http_utils
http url相关函数工具
3.7 lazy_importer
延迟导入,适合破解循环导入
3.8 path_helper
文件操作,强力的文件路径和import相互转化
3.9 pydantic_helper
pydantic辅助,pydantic api老是改来改去,有的在未来需要抛弃过时,直接使用官方api兼容风险很大。
3.10 restart_programe_by_interval.py
自动定时重启python自身,很强力很好用。 有时候python内存泄漏,每隔一周需要人工重启,定时重启就很好用,省去你苦逼找内存泄漏原因。
3.11 str_utils
字符串辅助,可以加密常规数据库 中间件 uri中的密码
3.12 sys_frame_uitils
sys._getframe 的封装,使得更好用,直接sys._getframe 来获取行号 函数名字 文件名 很难写, 很难记住方法名,EasyFrame类大幅简化
4 记录其他好用的三方包
icecream:
from icecream import ic
x = 1
ic(x)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nb_libs-2.0.tar.gz.
File metadata
- Download URL: nb_libs-2.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c9243373e2a5a6fb082830da817cab58e855329a25f5724fd537de4e421fb11
|
|
| MD5 |
4c26494ca982cbcef5cf48b20cf3714d
|
|
| BLAKE2b-256 |
6faf601225470d89e9536d3c916c5e6f218621228dfb0191cd0ea22306531de5
|
File details
Details for the file nb_libs-2.0-py3-none-any.whl.
File metadata
- Download URL: nb_libs-2.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a237b37c86f242951064419aea17787fb096a2d6648e6fdc00826bfae6ebd43
|
|
| MD5 |
35e884c6d974c6ee064ba9572d3cef79
|
|
| BLAKE2b-256 |
bc6a15c45031aef47e13cb50d9a2add31ac4818a83fb9a1a9c1baa6a8ab2d6c1
|