unitlab 2.1.4__tar.gz → 2.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unitlab
3
- Version: 2.1.4
3
+ Version: 2.1.6
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
@@ -10,7 +10,6 @@ Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name="unitlab",
5
- version="2.1.4",
5
+ version="2.1.6",
6
6
  license="MIT",
7
7
  author="Unitlab Inc.",
8
8
  author_email="team@unitlab.ai",
@@ -14,7 +14,6 @@ setup(
14
14
  "Intended Audience :: Developers",
15
15
  "License :: OSI Approved :: MIT License",
16
16
  "Programming Language :: Python :: 3",
17
- "Programming Language :: Python :: 3.7",
18
17
  "Programming Language :: Python :: 3.8",
19
18
  "Programming Language :: Python :: 3.9",
20
19
  "Programming Language :: Python :: 3.10",
@@ -118,7 +118,7 @@ class UnitlabClient:
118
118
  def project_members(self, project_id, pretty=0):
119
119
  return self._get(f"/api/sdk/projects/{project_id}/members/?pretty={pretty}")
120
120
 
121
- def upload_data(self, project_id, directory, batch_size=100):
121
+ def project_upload_data(self, project_id, directory, batch_size=100):
122
122
  if not os.path.isdir(directory):
123
123
  raise ValueError(f"Directory {directory} does not exist")
124
124
 
@@ -204,7 +204,7 @@ class UnitlabClient:
204
204
  logger.info(f"File: {os.path.abspath(filename)}")
205
205
  return os.path.abspath(filename)
206
206
 
207
- def download_dataset_files(self, dataset_id):
207
+ def dataset_download_files(self, dataset_id):
208
208
  response = self._post(
209
209
  f"/api/sdk/datasets/{dataset_id}/", data={"download_type": "files"}
210
210
  )
@@ -286,9 +286,6 @@ class DatasetUploadHandler(COCO):
286
286
  def get_img_point_payload(self, anns):
287
287
  return self.get_img_semantic_segmentation_payload(anns)
288
288
 
289
- def get_img_skeleton_payload(self, anns):
290
- logger.warning("Not implemented yet")
291
-
292
289
  def get_payload(self, img_id):
293
290
  image = self.imgs[img_id]
294
291
  ann_ids = self.getAnnIds(imgIds=img_id)
@@ -10,7 +10,6 @@ class UnitlabError(Exception):
10
10
  message: An informative message about the exception.
11
11
  detail: The detail of the exception raised by Python or another library. Defaults to :obj:`None`.
12
12
  """
13
-
14
13
  super().__init__(message, detail)
15
14
  self.message = message
16
15
  self.detail = detail
@@ -37,10 +37,9 @@ class AnnotationType(str, Enum):
37
37
  IMG_POLYGON = "img_polygon"
38
38
  IMG_LINE = "img_line"
39
39
  IMG_POINT = "img_point"
40
- IMG_SKELETON = "img_skeleton"
41
40
 
42
41
 
43
- @app.command()
42
+ @app.command(help="Configure the credentials")
44
43
  def configure(
45
44
  api_key: Annotated[str, typer.Option(help="The api-key obtained from unitlab.ai")],
46
45
  api_url: Annotated[str, typer.Option()] = "https://api.unitlab.ai",
@@ -77,7 +76,7 @@ def upload(
77
76
  Path, typer.Option(help="Directory containing the data to be uploaded")
78
77
  ],
79
78
  ):
80
- get_client(api_key).upload_data(str(pk), directory=directory)
79
+ get_client(api_key).project_upload_data(str(pk), directory=directory)
81
80
 
82
81
 
83
82
  @dataset_app.command(name="list", help="List datasets")
@@ -146,7 +145,7 @@ def dataset_download(
146
145
  "Export type is required when download type is annotation"
147
146
  )
148
147
  get_client(api_key).dataset_download(pk, export_type)
149
- get_client(api_key).download_dataset_files(pk)
148
+ get_client(api_key).dataset_download_files(pk)
150
149
 
151
150
 
152
151
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unitlab
3
- Version: 2.1.4
3
+ Version: 2.1.6
4
4
  Home-page: https://github.com/teamunitlab/unitlab-sdk
5
5
  Author: Unitlab Inc.
6
6
  Author-email: team@unitlab.ai
@@ -10,7 +10,6 @@ Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes