Skip to main content

my utils

Project description

Install

pip install cyzutils

Usage

Send email

# mail
from cyzutils import send_mail
send_mail('subject', 'content', 'xxxxxxx@xxx.xx')
send_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.5.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.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file cyzutils-0.0.5.tar.gz.

File metadata

  • Download URL: cyzutils-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1a4ab648786965563867bea9aab0ce341bf5acfc3f49d29a06d975d4623c7b8a
MD5 0891c2c9e89dc84433a67f480ee9191d
BLAKE2b-256 c19c6db75dd485b8adae8ad44b3973e2f3fe4799f84ca667520fae0324328170

See more details on using hashes here.

File details

Details for the file cyzutils-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: cyzutils-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5bdcae1bc5b7ee1ffe1986285331e41f4b1c7c30a6428e089264035e2716e08c
MD5 ef9b67688cc282619eb5f2a99b6361d5
BLAKE2b-256 0462364780f37d208fa17c10a42a4f04537a389b06f8b41d064ae306a1357214

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