Skip to content

Commit 15f492a

Browse files
authored
Merge pull request #108 from fastlabel/develop
Merge to main
2 parents bf774b5 + 769fd2f commit 15f492a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,14 @@ Delete a project.
11051105
client.delete_project(project_id="YOUR_PROJECT_ID")
11061106
```
11071107

1108+
### Copy Project
1109+
1110+
Copy a project.
1111+
1112+
```python
1113+
project_id = client.copy_project(project_id="YOUR_PROJECT_ID")
1114+
```
1115+
11081116
## Converter
11091117

11101118
### COCO

fastlabel/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,14 @@ def delete_project(self, project_id: str) -> None:
18341834
endpoint = "projects/" + project_id
18351835
self.api.delete_request(endpoint)
18361836

1837+
def copy_project(self, project_id: str) -> None:
1838+
"""
1839+
Copy a project.
1840+
"""
1841+
payload = {"id": project_id}
1842+
endpoint = "projects/copy"
1843+
return self.api.post_request(endpoint, payload=payload)
1844+
18371845
@staticmethod
18381846
def __fill_assign_users(payload: dict, **kwargs):
18391847
if "assignee" in kwargs:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="fastlabel",
11-
version="0.11.15",
11+
version="0.11.16",
1212
author="eisuke-ueta",
1313
author_email="eisuke.ueta@fastlabel.ai",
1414
description="The official Python SDK for FastLabel API, the Data Platform for AI",

0 commit comments

Comments
 (0)