This release is a pre-release and may not be stable for production use.
OpenDataLab Python SDK
IMPORTANT: OpenDataHub SDK status: WIP, which will not ensure the necessary compatibility of OpenAPI and SDK. As a result, please use the SDK with released version later.
Please wait for the released version!!!
OpenDataHub Python SDK is a python library to access Opendatalab
and use open datasets.
It provides:
- A pythonic way to access opendatalab resources by Opendatalab OpenAPI.
- An convient CLI tool
odl(Opendatalab for short) to access open datasets. - Rich information about the open datasets.
Installation
pip3 install opendatahub
Usage:
An account is needed to access to opendatalab service. Please visit offical websit to get the account username and password first.
Login
login with opendatalab username and password
odl login -u aaa@email.com -p ****
or
from opendatahub import ODL
odl = ODL.auth(username, pasword)
Logout
logout current opendatalab account
odl logout
or
from opendatahub import ODL
odl.logout()
ls
list all dataset by offset, limit
odl ls
or
from opendatahub import ODL
odl.list_datasets()
info
show dataset info in json format
odl info coco
or
from opendatahub import ODL
odl.get_info()
search
search dataset by name
odl search coco
or
from opendatahub import ODL
odl.search('coco')
download
download dataset into local path
odl download --name coco --root /home/XXX/coco
or
from opendatahub import ODL
odl.download(name='coco', root='/home/XXX/coco ' )
Documentation
More information can be found on the documentation site
Metadata
Release files for opendatahub 0.0.1b0
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 |
|---|---|---|---|---|
| opendatahub-0.0.1b0.tar.gz | 4.4 kB | Without provenance | Details for opendatahub-0.0.1b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opendatahub-0.0.1b0-py3-none-any.whl | Python 3 | none | any | Details for opendatahub-0.0.1b0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / opendatahub-0.0.1b0.tar.gz
| Download URL | opendatahub-0.0.1b0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3d47815abb67db4da4f20558fe8b4ff9b56d2b833b693428a639a1191b88b41
|
|
BLAKE2b-256 checksum How to use checksums |
14e9ac92ffef36208190b2811140179d857ecf722e7e3632e0421de5cb3df471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.2
|
Release files / opendatahub-0.0.1b0-py3-none-any.whl
| Download URL | opendatahub-0.0.1b0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17bf600da20af8bf7e4a2cd891e68489f2b6ddbfb33aa41dec7371ca9b0dfdfe
|
|
BLAKE2b-256 checksum How to use checksums |
90ea2fa6b85138f8079e9e6168587726aa269f5c4aee7b4f2761f51d0565fbf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.2
|
Security for opendatahub 0.0.1b0
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.