my utils
Project description
Install
pip install cyzutils
Usage
Send email
# mail
from cyzutils import mail
mail('subject', 'content', 'xxxxxxx@xxx.xx')
mail('subject', 'content') # send to myself
Run python file with cmd
Each command line parameter needs to be given as a list or a specific value
No limit on the number of command line parameters
# run python cmd
from cyzutils import run_py
run_py(fail_path, arg1_name=arg1_list, arg2_name=arg2_list)
# eg.
file_path = 'test/test.py'
test1 = [1, 2]
test2 = [3, 4]
test3 = [5, 6]
run_py(file_path, arg1=test1, arg2=test2, arg3=test3)
打包上传 pypi 命令
pip install build
python -m build
pip install twine
twine check dist/*
twine upload dist/*
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
cyzutils-0.0.4.tar.gz
(3.8 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
File details
Details for the file cyzutils-0.0.4.tar.gz.
File metadata
- Download URL: cyzutils-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
668011765cfee12f331eb9d3ea141d0746859f035e4d40c26805e616e09d3d53
|
|
| MD5 |
973129f5710826e289cd85ae553986da
|
|
| BLAKE2b-256 |
46564aafa522b28a23df22af17115edce63ee05e317ec258593a31e7d23f1159
|
File details
Details for the file cyzutils-0.0.4-py3-none-any.whl.
File metadata
- Download URL: cyzutils-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3825539dc6fdafdc9826416b8871ebd1531683f68045afdfedd48ca56c607b9e
|
|
| MD5 |
9b7c9438d751b38a048cf081edaf55e5
|
|
| BLAKE2b-256 |
bc3312c704120eaf69252e5d806807274a1a88f8e131aa011c325a2e8998f5ef
|