cqh utils function
Project description
serve
opts:
port , 端口,默认是8081
dir , 要目录
timeout, 默认值为60s, 内存缓存的超时时间
eg:
sudo /home/vagrant/envs/default/bin/cqh_file serve –port=8081 –dir=/www/backup/path
client
目的是为了下载服务器的dir
opts:
url, 地址
dir, 本地保存的目录
sleep, 睡眠时间,默认是300s
eg:
cqh_file client --url='http://127.0.0.1:8081' --dir=/tmp/backup1 python -m cqh_file client --url="http://192.168.146.129:8081" --dir="D:\backup"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cqh_file-0.0.22.tar.gz
(5.8 kB
view details)
File details
Details for the file cqh_file-0.0.22.tar.gz
.
File metadata
- Download URL: cqh_file-0.0.22.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b442527a9bbaf30dfd83ec80c4ebf1656eb8ed9e175c4fc852d303d01cb13491 |
|
MD5 | 628b08c36332666a529514d253e15e2d |
|
BLAKE2b-256 | 9f84c97d92091aa5773c87121f7d64a5bbee58c001021a8dfa645847b0816fb7 |