Skip to content

Commit

Permalink
Merge pull request #24 from video-db/ankit/add-remove-storage
Browse files Browse the repository at this point in the history
Ankit/add remove storage
  • Loading branch information
ashish-spext authored Aug 1, 2024
2 parents c9cfd09 + e9c1e9e commit b947eff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion videodb/__about__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" About information for videodb sdk"""


__version__ = "0.2.2"
__version__ = "0.2.3"
__title__ = "videodb"
__author__ = "videodb"
__email__ = "contact@videodb.io"
Expand Down
1 change: 1 addition & 0 deletions videodb/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class ApiPath:
scene = "scene"
frame = "frame"
describe = "describe"
storage = "storage"


class Status:
Expand Down
3 changes: 3 additions & 0 deletions videodb/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def delete(self) -> None:
"""
self._connection.delete(path=f"{ApiPath.video}/{self.id}")

def remove_storage(self) -> None:
self._connection.delete(path=f"{ApiPath.video}/{self.id}/{ApiPath.storage}")

def generate_stream(self, timeline: Optional[List[Tuple[int, int]]] = None) -> str:
"""Generate the stream url of the video
Expand Down

0 comments on commit b947eff

Please sign in to comment.