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.1.tar.gz (5.2 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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zsyctl-0.1.1.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

Hashes for zsyctl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dfafb1a67b9a0ceab926eb7f0e12be60a7e2121c73797287ca12d35635149a8b
MD5 5ac04a0ef4caa77e0c47e54da05e7228
BLAKE2b-256 3ecca2ad18e8d701a9f22ffcad50d083181a2db6e3b178d89af1519694b12c08

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zsyctl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae250eb4a96752b277cb7535f80ab35af0d77ffe3d26b86d61b1868476887bb2
MD5 7256929635e074a29d43c078f6e57dcc
BLAKE2b-256 718fc8d518940a9994d9c81b40c3c366016ae478d4544aea7e1a3d37291447f9

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