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 argument is required to be given in a list

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.3.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.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cyzutils-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 366946fe1bb34a0844082addf131a5649a1bbece427bc0647d3abddfd334c5c3
MD5 b79d2b27484f15fcc095f228c92a58c8
BLAKE2b-256 23b168faf80164d2da290292ee50f3c983bab39bbd8818d55dfbd7aaef614349

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cyzutils-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 199511517f711e104f0d79293cc880c155faed88f38ecd2ba3b299802af07aa0
MD5 d7fc2ef99746cc5fa626069c8e61eb39
BLAKE2b-256 f02973be161573c133bec1e67b4f1db33307a4eccdad49f5a894f0893f4a4264

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