diff --git a/README.md b/README.md index 44d3f9f..841fc91 100644 --- a/README.md +++ b/README.md @@ -2417,47 +2417,6 @@ Delete a single dataset. client.delete_dataset(dataset_id="YOUR_DATASET_ID") ``` -### Get Dataset Attribute - -Get all dataset attributes in the workspace. - -```python -client.get_dataset_attributes() -``` - -You can filter by dataset_version_id. - -```python -client.get_dataset_attributes( - dataset_version_id="YOUR_DATASET_VERSION_ID" -) -``` - -#### Response Dataset Attribute - -See API docs for details. - -```python -[ - { - 'name': { - 'id': 'YOUR_DATASET_ATTRIBUTE_NAME_ID', - 'name': 'Name', - 'createdAt': '2022-10-31T02:20:00.248Z', - 'updatedAt': '2022-10-31T02:20:00.248Z' - }, - 'values': [ - { - 'id': 'YOUR_DATASET_ATTRIBUTE_VALUE_ID', - 'value': 'Value', - 'createdAt': '2022-10-31T02:20:00.248Z', - 'updatedAt': '2022-10-31T02:20:00.248Z' - } - ] - } -] -``` - ### Create Dataset Object Create object in the dataset. @@ -2707,7 +2666,6 @@ See API docs for details. 'datasetId': 'YOUR_DATASET_ID', 'description': [], 'tags': [], - 'attributes': [], 'createdAt': '2023-07-28T09:54:28.147Z', 'updatedAt': '2023-07-28T09:54:28.147Z' } @@ -2762,7 +2720,6 @@ See API docs for details. 'datasetId': 'YOUR_DATASET_ID', 'createdAt': '2023-07-28T05:29:34.618Z', 'destDatasetVersion': { - 'attributes': [], 'clusters': None, 'createdAt': '2023-07-28T05:29:34.615Z', 'createdBy': 'example@fastlabel.ai', @@ -2774,7 +2731,6 @@ See API docs for details. 'version': '1.1' }, 'srcDatasetVersion': { - 'attributes': [], 'clusters': None, 'createdAt': '2023-07-28T05:21:53.114Z', 'createdBy': 'example@fastlabel.ai', diff --git a/examples/get_dataset_attributes.py b/examples/get_dataset_attributes.py deleted file mode 100644 index 14e8c6a..0000000 --- a/examples/get_dataset_attributes.py +++ /dev/null @@ -1,10 +0,0 @@ -from pprint import pprint - -import fastlabel - -client = fastlabel.Client() - -dataset_attributes = client.get_dataset_attributes( - dataset_version_id="YOUR_DATASET_VERSION_ID", -) -pprint(dataset_attributes) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index 64d16d0..0a7752e 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -3866,18 +3866,6 @@ def delete_dataset(self, dataset_id: str) -> None: endpoint = "datasets/" + dataset_id self.api.delete_request(endpoint) - def get_dataset_attributes(self, dataset_version_id: str = None) -> list: - """ - Returns a list of dataset attributes. - - dataset_version_id is id of your dataset version (Optional). - """ - endpoint = "datasets/attributes" - params = {} - if dataset_version_id: - params["datasetVersionId"] = dataset_version_id - return self.api.get_request(endpoint, params=params) - # Dataset Object def find_dataset_object(self, dataset_object_id: str) -> dict: