Skip to main content

A package for openi pypi

Project description

OpenI

PYPI package for 启智 AI 协作平台。

安装

适配 python3.6 及以上版本

pip install openi

功能介绍

from openi.dataset import download_file

download_file(
    file="my_data.zip",
    repo_id="user1/repo1",
    cluster="gpu",
    save_path="local_path/",
)

""" output
Complete( my_data.zip)(gpu): 100%|██████████████████████████████████████████| 22.0MB/22.0MB [00:01<00:00, 15.9MB/s]
"""
>>> openi
usage: openi {login, whoami, dataset, ...} [<args>] [-h]

OpenI command line tool 启智AI协作平台命令行工具

commands:
  {login,logout,whoami,dataset,d,model,m}
    login               使用令牌登录启智并保存到本机
    logout              登出当前用户并删除本地令牌文件
    whoami              查询当前登录用户
    dataset (d)         {upload,download} 上传/下载启智AI协作平台的数据集
    model (m)           {upload,download} 上传/下载启智AI协作平台的模型
>>> openi login


             ██████╗   ██████╗  ███████╗  ███╗   ██╗  ██████╗
            ██╔═══██╗  ██╔══██╗ ██╔════╝  ████╗  ██║    ██╔═╝
            ██║   ██║  ██████╔╝ █████╗    ██╔██╗ ██║    ██║
            ██║   ██║  ██╔═══╝  ██╔══╝    ██║╚██╗██║    ██║
            ╚██████╔╝  ██║      ███████╗  ██║ ╚████║  ██████╗
             ╚═════╝   ╚═╝      ╚══════╝  ╚═╝  ╚═══╝  ╚═════╝


点击链接获取令牌并复制粘贴到下列输入栏 https://openi.pcl.ac.cn/user/settings/applications

[WARNING] 若本机已存在登录令牌,本次输入的令牌会将其覆盖
          粘贴前请先按 退格键⇦ 删除多余空格

  🔒 token:

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

openi-1.3.1b1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

openi-1.3.1b1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file openi-1.3.1b1.tar.gz.

File metadata

  • Download URL: openi-1.3.1b1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.16

File hashes

Hashes for openi-1.3.1b1.tar.gz
Algorithm Hash digest
SHA256 5bd18204d4962be8b506a564b81be6e57ef95c69bebfba74e94c18be0bb9ad34
MD5 bb4f87c615fbe8f49452e775f4bea456
BLAKE2b-256 6e416b47bf5f45bcb75dac2012bd1feceb824b2b206a468f8f99befaf7fa2f5b

See more details on using hashes here.

File details

Details for the file openi-1.3.1b1-py3-none-any.whl.

File metadata

  • Download URL: openi-1.3.1b1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.16

File hashes

Hashes for openi-1.3.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 29d281daac254e0e61ceb6aaa285e7e81e47c2a4f35121004fac0a47159bce0b
MD5 ef9deafc2a769d46c57a7ef945c1e044
BLAKE2b-256 efaca3f33d69376c18264f0a60c189bfe51392b233cd116cb432214c138f024a

See more details on using hashes here.

Supported by

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