Skip to main content

A CLI tool for downloading datasets and models from zsycloud

Project description

开发目的

开发一个命令行工具,上传到 pypi,可以直接下载使用的

功能需求

  1. 命令行名称 zsyctl
  2. 下载功能
    • 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
  3. 下载之前,先去调用接口 https://cloud.ai4net.cn/center/server/zsyctl/auth 获取s3 的临时凭证,然后使用临时凭证下载,其中环境变量 CENTER_HOST 是中心域名,默认是 cloud.ai4net.cn,ZONE是当前集群的 id
  4. 这个临时凭证是个 jwtToken 加密的,可解密,解密后,是 s3 的 key 和 secret,以及中心集群的s3 地址和当前集群的s3 地址
  5. 先测试当前集群是否有数据,没有则使用中心集群下载
  6. 然后就可以通过地址、账号密码下载了

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.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zsyctl-0.1.5-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file zsyctl-0.1.5.tar.gz.

File metadata

  • Download URL: zsyctl-0.1.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for zsyctl-0.1.5.tar.gz
Algorithm Hash digest
SHA256 50388e0459d8ba409938c22702cb881a812e7d018a026fbb566038afc8e82ce2
MD5 25c21ec3427afcecb4c9da6b6bff68d0
BLAKE2b-256 b26a79ac5b541344029b354cd6682cc581fe3dd273c839a93d819c72e9669139

See more details on using hashes here.

File details

Details for the file zsyctl-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: zsyctl-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for zsyctl-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3e58f6b7b62a1a0e1cdf1119a8b00e4e5c4eff60da472d42ac4dadcd621d1d24
MD5 87049ab21c0cad3d14c3b0ee49e67935
BLAKE2b-256 5e7c70b57e9146bd323afbeb7e9e7dd78710ab90d939bbe3ab29b95594aef5a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page