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.3.tar.gz
(5.2 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.3.tar.gz.
File metadata
- Download URL: zsyctl-0.1.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fae5b118d306acaed3ad0487facc825e7125985308b0fc663be10efa86758cc
|
|
| MD5 |
e2c5545ae88475aaefe47f82085c705e
|
|
| BLAKE2b-256 |
919782d89b71868b26e10672b4a7162e502648a75edb1c8d5e936a91cd532fee
|
File details
Details for the file zsyctl-0.1.3-py3-none-any.whl.
File metadata
- Download URL: zsyctl-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.6 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 |
a8f5b5c6e491ae8a07f1b9dfdb4699beedf2ccf19169311698e0401191e6266d
|
|
| MD5 |
983be99e99b45604579dc9bffb02feb3
|
|
| BLAKE2b-256 |
d85379bf7c38e8aa37752b4ad02c0669af6ecb3f8505b2d54cac7712e27b7eb0
|