def test_list_dataset_names(self, accesskey, url): gas_client = GAS(access_key=accesskey, url=url) dataset_name = get_dataset_name() gas_client.create_dataset(dataset_name) datasets = gas_client.list_dataset_names() assert dataset_name in datasets gas_client.delete_dataset(dataset_name)
"""This file includes the python code of LeedsSportsPose.rst.""" """Authorize a Client Object""" from tensorbay import GAS ACCESS_KEY = "Accesskey-*****" gas = GAS(ACCESS_KEY) """""" """Create Dataset""" gas.create_dataset("LeedsSportsPose") """""" """List Dataset Names""" list(gas.list_dataset_names()) """""" from tensorbay.opendataset import LeedsSportsPose dataset = LeedsSportsPose("path/to/dataset/directory") """Upload Dataset""" # dataset is the one you initialized in "Organize Dataset" section dataset_client = gas.upload_dataset(dataset, jobs=8, skip_uploaded_files=False) dataset_client.commit("LeedsSportsPose") """""" """Read Dataset / get dataset""" dataset_client = gas.get_dataset("LeedsSportsPose") """"""
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=wrong-import-position # pylint: disable=wrong-import-order # pylint: disable=not-callable # pylint: disable=ungrouped-imports # pylint: disable=import-error # pylint: disable=pointless-string-statement """This file includes the python code of request_configuration.rst.""" """Example of request config""" from tensorbay import GAS from tensorbay.client import config # Enlarge timeout and max_retries of configuration. config.timeout = 40 config.max_retries = 4 gas = GAS("<YOUR_ACCESSKEY>") # The configs will apply to all the requests sent by TensorBay SDK. gas.list_dataset_names() """"""