Skip to main content

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/*

https://juejin.cn/post/7053009657371033630

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cyzutils-0.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for cyzutils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 668011765cfee12f331eb9d3ea141d0746859f035e4d40c26805e616e09d3d53
MD5 973129f5710826e289cd85ae553986da
BLAKE2b-256 46564aafa522b28a23df22af17115edce63ee05e317ec258593a31e7d23f1159

See more details on using hashes here.

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

Hashes for cyzutils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3825539dc6fdafdc9826416b8871ebd1531683f68045afdfedd48ca56c607b9e
MD5 9b7c9438d751b38a048cf081edaf55e5
BLAKE2b-256 bc3312c704120eaf69252e5d806807274a1a88f8e131aa011c325a2e8998f5ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page