Skip to main content

Python Common Command

Project description

python-zhmh

进度条

import time
from pyzhmh import RichPrint

length = 100
for i in range(1, 1 + length):
    RichPrint.progress_bar(i/length)
    time.sleep(0.05)

下载

from pyzhmh import download_one_file
download_one_file('./521.jpg', {
    'url': "https://dss1.bdstatic.com/kvoZeXSm1A5BphGlnYG/skin_zoom/521.jpg?2"
})

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

python-zhmh-0.0.10.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

python_zhmh-0.0.10-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

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