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.4.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.4.tar.gz.
File metadata
- Download URL: zsyctl-0.1.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f516cd71780e2b7cca418598f9193eb0ca6fc184d4649edc6f31b7e577a0f02d
|
|
| MD5 |
4cff0f8878f627a3b5340cea9f841397
|
|
| BLAKE2b-256 |
a80daed6d0062996dc856a42f3f5d94da037a3dac3ef40ad88ee1316bf5e731c
|
File details
Details for the file zsyctl-0.1.4-py3-none-any.whl.
File metadata
- Download URL: zsyctl-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d216078a095a72b1c5be6cc35c76d4b3ea59dbf85543b42fcf9d98fb3e010227
|
|
| MD5 |
bd17de23fa9e7b6f83e596d2e38c9c4a
|
|
| BLAKE2b-256 |
44d2425da899847c10414b4c242f6221064003f123cc8ddb0e4b676c7ce19982
|