A test package for openi pypi
Project description
OpenI
PYPI package for 启智 AI 协作平台。
安装
适配 python3.6 及以上版本
pip install openi
功能介绍
- 提供命令行与代码使用
- 具体请参考 帮助文档-API参考
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openi-beta-2.2.3.tar.gz
(17.9 kB
view details)
Built Distribution
File details
Details for the file openi-beta-2.2.3.tar.gz
.
File metadata
- Download URL: openi-beta-2.2.3.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf140f292a3f04545e50ea0be82a99be2c73c3ead33b36b156ec73c4fcf8a1b |
|
MD5 | 65899354bb95a0c42a098adff8ec0959 |
|
BLAKE2b-256 | e338bd298f49e530290da35f601dd289aab3f717f1e510f970d14fe5776e07e1 |
File details
Details for the file openi_beta-2.2.3-py3-none-any.whl
.
File metadata
- Download URL: openi_beta-2.2.3-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd24bd9c13586e4b5734ccfa44a01ee9fccf42fbc4881c3d8974c11af9e5084a |
|
MD5 | 977a48ab5c4fcede75e9f7ef8634bea4 |
|
BLAKE2b-256 | eaf5ba7024c1c34eda39235369093139c9cf63fdbc6720533b4b6bbbdf9def7a |