A package for openi pypi
Project description
OpenI
PYPI package for 启智 AI 协作平台。
安装
适配 python3.8 及以上版本
pip install openi
功能介绍
- 支持进行本地上传与下载文件到启智社区
- 支持代码调用函数,可在本地Python脚本或notebook使用;支持终端命令行,方便在服务器上使用。
- 具体请参考 帮助文档
使用示例
python
代码中下载 MNIST示例数据集 为例:
# 可复制到 python 文件中直接运行,函数的返回值为下载文件的本地保存路径
from openi import download_file
path = download_file(
file="MnistDataset_mindspore.zip",
repo_id="OpenIOSSG/OpenI_Cloudbrain_Example",
)
- 上述代码调用对应的终端命令(可直接复制到终端命令行中运行)
openi dataset download MnistDataset_mindspore.zip OpenIOSSG/OpenI_Cloudbrain_Example
- 执行结果,显示下载进度条与本地保存路径
✅ MnistDataset_mindspore.zip: 100%|██████████████████████████████████████████████| 10.3M/10.3M [00:00<00:00, 24.7MB/s]
文件已下载到: D:\MnistDataset_mindspore.zip
- 更多使用指南请参考 帮助文档
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-2.0.0b1.tar.gz
(31.2 kB
view details)
Built Distribution
openi-2.0.0b1-py3-none-any.whl
(36.5 kB
view details)
File details
Details for the file openi-2.0.0b1.tar.gz
.
File metadata
- Download URL: openi-2.0.0b1.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be71ee9a12d7d72a7d4f3139047800ceaa4dc62ec4db0bb3a7dc321e1132e246 |
|
MD5 | 2771aa92fe30e2be08036c7bb24655bd |
|
BLAKE2b-256 | dc25cea62fec494d7a15e690147753a7807eb48bc4dbd8240c6b697c18f0ee0a |
File details
Details for the file openi-2.0.0b1-py3-none-any.whl
.
File metadata
- Download URL: openi-2.0.0b1-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d737cea1669a4175d3e78a05dd2e9025e6682614ac99d6af030b7ccd029ecdff |
|
MD5 | faca9088862c74d53c19ce796528a6f1 |
|
BLAKE2b-256 | 06f84f66e038a2ef4a33205e10a318d8a28009adbf661ca47d1dd2d1d7507aee |