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.9.tar.gz (6.4 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.9-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zsyctl-0.1.9.tar.gz
Algorithm Hash digest
SHA256 ba93921bfa77d25d0f4fb711284426f2aaa5cf2e945b189fb435f2e15359450c
MD5 5c4a10faa8d8ac4e570352237e7a42cc
BLAKE2b-256 9374312aa2a6c16df2877b297a851263668eba419e712e27c5ab9ad718cde040

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zsyctl-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b96e8318e8a475bcebb54f705eefe13e9e31bb2047dacc4c1a96aea08509637d
MD5 a3e918d6c4a4ea7b1f391622c9f81e91
BLAKE2b-256 77d7c423e080f1e246836dfede4c2c8766454eac57ef200ea3f7b1b35e339788

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