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
- 更多使用指南请参考 帮助文档
Metadata
Release files for openi 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openi-3.0.1.tar.gz | 62.9 kB | Without provenance | Details for openi-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openi-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for openi-3.0.1-py3-none-any.whl |
Total release size: 144.2 kB
Release files / openi-3.0.1.tar.gz
| Download URL | openi-3.0.1.tar.gz |
|---|---|
| Size | 62.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00e7c65b3d7004a861b2d19831d2f6c8aa551babd1b5c3fe867cd1bc957d89a5
|
|
BLAKE2b-256 checksum How to use checksums |
159a72ea588c45cd1369e4a0b88859df9a7007c242be3a564567f8df0a61cee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / openi-3.0.1-py3-none-any.whl
| Download URL | openi-3.0.1-py3-none-any.whl |
|---|---|
| Size | 81.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2664b6dd3c2db325fe49e4dcf588d25706b22a8fdf91fbed3b9095bca49ee1e5
|
|
BLAKE2b-256 checksum How to use checksums |
92b1c7471cb3396cce2830ac39c3946c370c291ef3a2342eb3e9637e1251e798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Security for openi 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.