toolkits
迁移PDM项目
1, Create virtual env pdm venv create
2, Install dependency pdm install
3, basic python libs pdm add arrow toolkits requests dingtalkchatbot exchangelib redis PyYAML sqlalchemy kafka-python-ng urllib3==1.26.15 wheel jmespath log4python PyMySQL pytest crython icecream
使用包中的Python脚本
设置Python环境变量
export PYTHONPATH="/home/pythonDemo/toolkits/src/:$PYTHONPATH"
源码目录中不要有[与包名一致的Python脚本文件]
直接调用Python脚本
python toolkits/db_query_demo.py --config_path="/home/pythonDemo/toolkits/src/toolkits/config/config_demo.py" worker test_01.txt
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toolkits-0.2.13.tar.gz
(42.9 kB
view details)
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
toolkits-0.2.13-py3-none-any.whl
(60.4 kB
view details)
File details
Details for the file toolkits-0.2.13.tar.gz.
File metadata
- Download URL: toolkits-0.2.13.tar.gz
- Upload date:
- Size: 42.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
129ecc0ed0d8cbbf51c5c5d79931322d797f60259480eb8a205711de05267569
|
|
| MD5 |
f835a99c31784362669b8b34344ad034
|
|
| BLAKE2b-256 |
5ffb888600afa665bac8f2b64bf9d94b8d3819a7e3548d60dfbf25f12eb030bd
|
File details
Details for the file toolkits-0.2.13-py3-none-any.whl.
File metadata
- Download URL: toolkits-0.2.13-py3-none-any.whl
- Upload date:
- Size: 60.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d114d4e5ef3c04bc7b7d8df5375a1bea5e6e3297a05fa637b6d53426eaa92ee
|
|
| MD5 |
a29da10ba52df4ab12871c3d6951ee55
|
|
| BLAKE2b-256 |
97f985f67331af5f3bd82b7f43d3689e0da157f461b011fd2e9f86f0a91dfec5
|