Skip to content

Commit c67327e

Browse files
authored
Merge pull request video-db#27 from video-db/ankit/add-download
feat: add download
2 parents f9963ca + a91a772 commit c67327e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

videodb/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" About information for videodb sdk"""
22

33

4-
__version__ = "0.2.4"
4+
__version__ = "0.2.5"
55
__title__ = "videodb"
66
__author__ = "videodb"
77
__email__ = "[email protected]"

videodb/_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class ApiPath:
6767
frame = "frame"
6868
describe = "describe"
6969
storage = "storage"
70+
download = "download"
7071

7172

7273
class Status:

videodb/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ def check_usage(self) -> dict:
9090
def get_invoices(self) -> List[dict]:
9191
return self.get(path=f"{ApiPath.billing}/{ApiPath.invoices}")
9292

93+
def download(self, stream_link: str, name: str) -> dict:
94+
return self.post(
95+
path=f"{ApiPath.download}",
96+
data={
97+
"stream_link": stream_link,
98+
"name": name,
99+
},
100+
)
101+
93102
def upload(
94103
self,
95104
file_path: str = None,

0 commit comments

Comments
 (0)