ABEJA dataset library is (SDK) for python, which allow developers to create, get and delete dataset and dataset items.
High level APIs are used trough following classes.
from abeja.datasets import Client
client = Client(organization_id)
dataset = client.get_dataset(dataset_id)
for item in dataset.dataset_items.list():
pass
method |
path |
|
---|---|---|
post |
/organizations/<organization_id>/datasets |
|
get |
/organizations/<organization_id>/datasets |
|
get |
/organizations/<organization_id>/datasets/<id> |
|
delete |
/organizations/<organization_id>/datasets/<id> |
|
post |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
get |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
get |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |
|
update |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |
|
bulk_update |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
delete |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |
Low lavel apis are directly access the api endpoint.
from abeja.datasets import APIClient
api = APIClient()
dataset = api.get_dataset(organization_id, dataset_id)
dataset_items = api.list_dataset_items(organization_id, dataset_id)
method |
path |
|
---|---|---|
post |
/organizations/<organization_id>/datasets |
|
get |
/organizations/<organization_id>/datasets |
|
get |
/organizations/<organization_id>/datasets/<id> |
|
delete |
/organizations/<organization_id>/datasets/<id> |
|
post |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
get |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
get |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |
|
update |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |
|
bulk_update |
/organizations/<organization_id>/datasets/<dataset_id>/items |
|
delete |
/organizations/<organization_id>/datasets/<dataset_id>/items/<id> |