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.3.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.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for zsyctl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4fae5b118d306acaed3ad0487facc825e7125985308b0fc663be10efa86758cc
MD5 e2c5545ae88475aaefe47f82085c705e
BLAKE2b-256 919782d89b71868b26e10672b4a7162e502648a75edb1c8d5e936a91cd532fee

See more details on using hashes here.

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

Hashes for zsyctl-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f5b5c6e491ae8a07f1b9dfdb4699beedf2ccf19169311698e0401191e6266d
MD5 983be99e99b45604579dc9bffb02feb3
BLAKE2b-256 d85379bf7c38e8aa37752b4ad02c0669af6ecb3f8505b2d54cac7712e27b7eb0

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