Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libs/labelbox/src/labelbox/schema/catalog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Any, Dict, List, Optional, Tuple, Union
import warnings
from labelbox.orm.db_object import experimental
from labelbox.schema.export_filters import CatalogExportFilters, build_filters

Expand Down Expand Up @@ -45,6 +46,13 @@ def export_v2(
>>> task.wait_till_done()
>>> task.result
"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
)

task, is_streamable = self._export(task_name, filters, params)
if is_streamable:
return ExportTask(task, True)
Expand Down
8 changes: 8 additions & 0 deletions libs/labelbox/src/labelbox/schema/data_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from enum import Enum
from typing import TYPE_CHECKING, List, Optional, Tuple, Union, Any
import json
import warnings

from labelbox.orm import query
from labelbox.orm.db_object import (
Expand Down Expand Up @@ -277,6 +278,13 @@ def export_v2(
>>> task.wait_till_done()
>>> task.result
"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff

)

task, is_streamable = DataRow._export(
client, data_rows, global_keys, task_name, params
)
Expand Down
7 changes: 7 additions & 0 deletions libs/labelbox/src/labelbox/schema/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,13 @@ def export_v2(
>>> task.wait_till_done()
>>> task.result
"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
)

task, is_streamable = self._export(task_name, filters, params)
if is_streamable:
return ExportTask(task, True)
Expand Down
6 changes: 6 additions & 0 deletions libs/labelbox/src/labelbox/schema/model_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,12 @@ def export_v2(
>>> export_task = export_v2("my_export_task", params={"media_attributes": True})

"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
)
task, is_streamable = self._export(task_name, params)
if is_streamable:
return ExportTask(task, True)
Expand Down
7 changes: 7 additions & 0 deletions libs/labelbox/src/labelbox/schema/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ def export_v2(
>>> task.wait_till_done()
>>> task.result
"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
)

task, is_streamable = self._export(task_name, filters, params)
if is_streamable:
return ExportTask(task, True)
Expand Down
7 changes: 7 additions & 0 deletions libs/labelbox/src/labelbox/schema/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ def export_v2(
>>> task.wait_till_done()
>>> task.result
"""

warnings.warn(
"You are currently utilizing export_v2 for this action, which will be deprecated in a V7. Please refer to docs for export alternatives. https://docs.labelbox.com/reference/export-overview#export-methods",
DeprecationWarning,
stacklevel=2,
)

task, is_streamable = self._export(task_name, params)
if is_streamable:
return ExportTask(task, True)
Expand Down
Loading