Skip to main content

A test package for openi pypi

Project description

OpenI PyPi

PYPI package for 启智AI协作平台。

启智平台提供的Python工具包,使用户能在本地上传数据集。

安装

适配python3.6及以上版本

pip install openi

使用说明

  • 使用前请在平台个人设置中获取token:点击跳转token获取界面
  • 当前版本为了解决用户上传数据集的需求,建议在本地使用。后续版本将适配代码仓配置、隐藏token及云脑任务。

本地上传数据集示例

dataset.upload_file(file, username, repository, token, cluster = "NPU")

上传本地单个文件到启智平台数据集,支持断点续传

  • file str, 必填:文件路径(包含文件名,支持linux与mac路径,也支持windows文件路径如d:\xxx)
  • username str, 必填:上传数据集所属项目owner用户名,可以是用户或组织
  • repository str, 必填:数据集所属项目路径,此为仓库地址中的名字,更改过名称的项目需填写仓库地址中的路径
  • token str, 必填:用户启智上获取的令牌token,并对该数据集有权限
  • cluster str, 选填, 默认"NPU":可填入GPU或NPU,上传至不同的存储集群
from openi.dataset import upload_file

upload_file(
    file = "", 
    username = "", 
    repository = "", 
    token = "", 
    cluster = ""
    )

alt

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.0.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

openi-1.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file openi-1.0.2.tar.gz.

File metadata

  • Download URL: openi-1.0.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for openi-1.0.2.tar.gz
Algorithm Hash digest
SHA256 576b628aed6e1a79148369768bfabfadcd7d1576c8509afa7d59f9b5a4b34b12
MD5 c5e62ebd3710e1137b0b3b10e4b6e9b2
BLAKE2b-256 349b32edbe8d972c7640ac6e2df1ebf6b73628ac40f92e12c73a3b3127d6c970

See more details on using hashes here.

File details

Details for the file openi-1.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for openi-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88acfe166f3819ad1e634a4912efcc6892368a4dc72e7e953b1c913d6691ddaa
MD5 1ed0de4aa12a0caa8743e195d5c23a0e
BLAKE2b-256 ffa4d62d7fed68d46522593792a31bfa229845ab75a54df89dc07066a540b3e8

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