A CLI tool for downloading datasets and models from zsycloud
Project description
开发目的
开发一个命令行工具,上传到 pypi,可以直接下载使用的
功能需求
- 命令行名称 zsyctl
- 下载功能
- zsyctl download --dataset <output_path>
- zsyctl download --model <output_path>
- id: 资源id
- output_path: 输出路径
- 示例:
- zsyctl download --dataset id --local_dir ./dir
- zsyctl download --model id --local_dir ./dir
- 下载之前,先去调用接口 https://cloud.ai4net.cn/center/server/zsyctl/auth 获取s3 的临时凭证,然后使用临时凭证下载,其中环境变量 CENTER_HOST 是中心域名,默认是 cloud.ai4net.cn,ZONE是当前集群的 id
- 这个临时凭证是个 jwtToken 加密的,可解密,解密后,是 s3 的 key 和 secret,以及中心集群的s3 地址和当前集群的s3 地址
- 先测试当前集群是否有数据,没有则使用中心集群下载
- 然后就可以通过地址、账号密码下载了
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
zsyctl-0.1.8.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zsyctl-0.1.8.tar.gz.
File metadata
- Download URL: zsyctl-0.1.8.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0af341f90dc9b620d2a6d0af1ffae46d94e75c700f86c3492e44429bd35c01c
|
|
| MD5 |
363be22b69bd1e85847fa583f0bdfa03
|
|
| BLAKE2b-256 |
35cd9b8872f06627db3e59c66b0a764ff6c05eda28c4eeab3652bf3344840bf4
|
File details
Details for the file zsyctl-0.1.8-py3-none-any.whl.
File metadata
- Download URL: zsyctl-0.1.8-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4121dd01950bc27b9932fe77e36fe92bb4f9b430092d9025659aaa61e6ce2944
|
|
| MD5 |
f66b837219cae162eec214840ffba703
|
|
| BLAKE2b-256 |
25a1f32b959d1531f144fef9d40faa611e90108cd75199e74c4dc3614a3d9269
|