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.7.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.7.tar.gz.
File metadata
- Download URL: zsyctl-0.1.7.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 |
0a772ddf890755015923dccef64147cca491c453d7e1a9d7df8c3d6b90608c40
|
|
| MD5 |
96d6fdd3ddeccd41966303e753bc22ce
|
|
| BLAKE2b-256 |
3e8822e92a319214fed99f3a41a750c4066e8b6fd170bb4064a7d744a9eb57f5
|
File details
Details for the file zsyctl-0.1.7-py3-none-any.whl.
File metadata
- Download URL: zsyctl-0.1.7-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 |
987377e79e841cf276792e1011fcfccdfb6a33c2f09bc1089e835b25072618da
|
|
| MD5 |
2c8a757081dd3c29db6e21f1b1211ea9
|
|
| BLAKE2b-256 |
de93c556d18894a4d32ebb8e0c5f6f5a510d1f96c5585462d88fbc2f1890339c
|