Skip to content

Commit ff9d737

Browse files
authored
Merge pull request #166 from fastlabel/feature/dataset-attribute-unsupported
feat: dataset attribute to unsupported
2 parents 528fda7 + 10d9148 commit ff9d737

File tree

3 files changed

+0
-66
lines changed

3 files changed

+0
-66
lines changed

README.md

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,47 +2417,6 @@ Delete a single dataset.
24172417
client.delete_dataset(dataset_id="YOUR_DATASET_ID")
24182418
```
24192419

2420-
### Get Dataset Attribute
2421-
2422-
Get all dataset attributes in the workspace.
2423-
2424-
```python
2425-
client.get_dataset_attributes()
2426-
```
2427-
2428-
You can filter by dataset_version_id.
2429-
2430-
```python
2431-
client.get_dataset_attributes(
2432-
dataset_version_id="YOUR_DATASET_VERSION_ID"
2433-
)
2434-
```
2435-
2436-
#### Response Dataset Attribute
2437-
2438-
See API docs for details.
2439-
2440-
```python
2441-
[
2442-
{
2443-
'name': {
2444-
'id': 'YOUR_DATASET_ATTRIBUTE_NAME_ID',
2445-
'name': 'Name',
2446-
'createdAt': '2022-10-31T02:20:00.248Z',
2447-
'updatedAt': '2022-10-31T02:20:00.248Z'
2448-
},
2449-
'values': [
2450-
{
2451-
'id': 'YOUR_DATASET_ATTRIBUTE_VALUE_ID',
2452-
'value': 'Value',
2453-
'createdAt': '2022-10-31T02:20:00.248Z',
2454-
'updatedAt': '2022-10-31T02:20:00.248Z'
2455-
}
2456-
]
2457-
}
2458-
]
2459-
```
2460-
24612420
### Create Dataset Object
24622421

24632422
Create object in the dataset.
@@ -2707,7 +2666,6 @@ See API docs for details.
27072666
'datasetId': 'YOUR_DATASET_ID',
27082667
'description': [],
27092668
'tags': [],
2710-
'attributes': [],
27112669
'createdAt': '2023-07-28T09:54:28.147Z',
27122670
'updatedAt': '2023-07-28T09:54:28.147Z'
27132671
}
@@ -2762,7 +2720,6 @@ See API docs for details.
27622720
'datasetId': 'YOUR_DATASET_ID',
27632721
'createdAt': '2023-07-28T05:29:34.618Z',
27642722
'destDatasetVersion': {
2765-
'attributes': [],
27662723
'clusters': None,
27672724
'createdAt': '2023-07-28T05:29:34.615Z',
27682725
'createdBy': 'example@fastlabel.ai',
@@ -2774,7 +2731,6 @@ See API docs for details.
27742731
'version': '1.1'
27752732
},
27762733
'srcDatasetVersion': {
2777-
'attributes': [],
27782734
'clusters': None,
27792735
'createdAt': '2023-07-28T05:21:53.114Z',
27802736
'createdBy': 'example@fastlabel.ai',

examples/get_dataset_attributes.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

fastlabel/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,18 +3866,6 @@ def delete_dataset(self, dataset_id: str) -> None:
38663866
endpoint = "datasets/" + dataset_id
38673867
self.api.delete_request(endpoint)
38683868

3869-
def get_dataset_attributes(self, dataset_version_id: str = None) -> list:
3870-
"""
3871-
Returns a list of dataset attributes.
3872-
3873-
dataset_version_id is id of your dataset version (Optional).
3874-
"""
3875-
endpoint = "datasets/attributes"
3876-
params = {}
3877-
if dataset_version_id:
3878-
params["datasetVersionId"] = dataset_version_id
3879-
return self.api.get_request(endpoint, params=params)
3880-
38813869
# Dataset Object
38823870

38833871
def find_dataset_object(self, dataset_object_id: str) -> dict:

0 commit comments

Comments
 (0)