Skip to content

Commit 60be993

Browse files
committed
Merge branch 'main' of https://github.com/video-db/videodb-python into ankit/add-text-asset
2 parents 1c903d9 + 98d0a23 commit 60be993

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_version():
2828
long_description_content_type="text/markdown",
2929
url="https://github.com/video-db/videodb-python",
3030
packages=find_packages(exclude=["tests", "tests.*"]),
31-
python_requires=">=3.9",
31+
python_requires=">=3.8",
3232
install_requires=[
3333
"requests>=2.25.1",
3434
"backoff>=2.2.1",
@@ -37,6 +37,11 @@ def get_version():
3737
classifiers=[
3838
"Intended Audience :: Developers",
3939
"Programming Language :: Python :: 3",
40+
"Programming Language :: Python :: 3.8",
4041
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
43+
"Programming Language :: Python :: 3.11",
44+
"Programming Language :: Python :: 3.12",
45+
"License :: OSI Approved :: Apache Software License",
4146
],
4247
)

videodb/__init__.py

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

2424
logger: logging.Logger = logging.getLogger("videodb")
2525

26-
__version__ = "0.0.4"
26+
__version__ = "0.0.5a1"
2727
__author__ = "videodb"
2828

2929
__all__ = [

videodb/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def delete_image(self, image_id: str) -> None:
6969
def search(
7070
self,
7171
query: str,
72-
type: Optional[str] = SearchType.semantic,
72+
search_type: Optional[str] = SearchType.semantic,
7373
result_threshold: Optional[int] = None,
7474
score_threshold: Optional[int] = None,
7575
dynamic_score_percentage: Optional[int] = None,
7676
) -> SearchResult:
77-
search = SearchFactory(self._connection).get_search(type)
77+
search = SearchFactory(self._connection).get_search(search_type)
7878
return search.search_inside_collection(
7979
self.id,
8080
query,

videodb/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def search_inside_video(
172172
)
173173
return SearchResult(self._connection, **search_data)
174174

175-
def search_inside_collection(**kwargs):
175+
def search_inside_collection(self, **kwargs):
176176
raise NotImplementedError("Keyword search will be implemented in the future")
177177

178178

0 commit comments

Comments
 (0)