opendatahub 0.0.1b0

Creator: railscoder56

Last updated:

Add to Cart

Description:

opendatahub 0.0.1b0

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.