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.6.tar.gz
(5.9 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.6.tar.gz.
File metadata
- Download URL: zsyctl-0.1.6.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb57a74b0566b4c978a2176c6db6a9671d33b609f421dd84b85ea8060aa3fe2
|
|
| MD5 |
e7e6968bcdc3eae81badd1f9370fe147
|
|
| BLAKE2b-256 |
674b03b0a7e2db3f39657f8fb93a22f59991391062357fba42737ac4d128ef42
|
File details
Details for the file zsyctl-0.1.6-py3-none-any.whl.
File metadata
- Download URL: zsyctl-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
1dddb4b1e2df8d25f0d8105fa5a94466f87392dfe179c08a8de88288a479e63e
|
|
| MD5 |
72b30713c9cf41389ddbab44f2af5681
|
|
| BLAKE2b-256 |
813de6aae29473297740294ee03d0b0ced33a14425f40ea03a0c55205cdb6822
|