beaver-db 0.18.4__py3-none-any.whl → 0.18.6__py3-none-any.whl

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.

Potentially problematic release.


This version of beaver-db might be problematic. Click here for more details.

beaver/__init__.py CHANGED
@@ -2,4 +2,4 @@ from .core import BeaverDB
2
2
  from .types import Model
3
3
  from .collections import Document, WalkDirection
4
4
 
5
- __version__ = "0.18.4"
5
+ __version__ = "0.18.6"
beaver/collections.py CHANGED
@@ -10,7 +10,7 @@ try:
10
10
  import numpy as np
11
11
  from .vectors import VectorIndex
12
12
  except ImportError:
13
- np = stub("This feature requires to install beaver-db[faiss]")
13
+ np = stub("This feature requires to install beaver-db[faiss]")()
14
14
  VectorIndex = stub("This feature requires to install beaver-db[faiss]")
15
15
 
16
16
  # --- Fuzzy Search Helper Functions ---
beaver/types.py CHANGED
@@ -43,13 +43,16 @@ class Model:
43
43
 
44
44
  def stub(msg: str):
45
45
  class Stub:
46
+ def __init__(self, *args, **kwargs) -> None:
47
+ pass
48
+
46
49
  def __getattribute__(self, name: str):
47
50
  raise TypeError(msg)
48
51
 
49
52
  def __call__(self, *args, **kwds):
50
53
  raise TypeError(msg)
51
54
 
52
- return Stub()
55
+ return Stub
53
56
 
54
57
 
55
58
  class IDatabase(Protocol):
beaver/vectors.py CHANGED
@@ -11,7 +11,7 @@ try:
11
11
 
12
12
  HAVE_FAISS = True
13
13
  except ImportError:
14
- raise TypeError("This feature requires to install beaver-db[faiss]")
14
+ raise ImportError("This feature requires to install beaver-db[vector]")
15
15
 
16
16
 
17
17
  class VectorIndex:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beaver-db
3
- Version: 0.18.4
3
+ Version: 0.18.6
4
4
  Summary: Fast, embedded, and multi-modal DB based on SQLite for AI-powered applications.
5
5
  License-File: LICENSE
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -1,18 +1,18 @@
1
- beaver/__init__.py,sha256=8lfevL_d014rDr943JJ97-KLuCCMYQfWkX6P1Hbj-aA,125
1
+ beaver/__init__.py,sha256=jeTzeVn_M64ZYQyO3f62tBlLi427gv_8jwVxDGbbzvg,125
2
2
  beaver/blobs.py,sha256=YkIEskHD6oHRaJTF0P25HrTT8LqM-REyV_UBPVQxeqQ,4055
3
3
  beaver/channels.py,sha256=kIuwKMDBdDQObaKT23znsMXzfpKfE7pXSxvf-u4LlpY,9554
4
4
  beaver/cli.py,sha256=Sxm-mYU3LGd4tIqw-5LHb0ektWebjV9vn51hm-CMJD0,2232
5
- beaver/collections.py,sha256=Q4pSM3Laci8jAjHCeKRJyv9PTr7LkFf0EOyC4e2N3p4,26105
5
+ beaver/collections.py,sha256=UAQAuRxJRCqY5PHfxJNm3CdKqMNuyY8DOLdodvY6jpk,26107
6
6
  beaver/core.py,sha256=d37hnD1xaYdZFKf1z0sDAoGwYwuPU8ETrOotso7aHfk,15209
7
7
  beaver/dicts.py,sha256=Xp8lPfQt08O8zCbptQLWQLO79OxG6uAVER6ryj3SScQ,5495
8
8
  beaver/lists.py,sha256=rfJ8uTNLkMREYc0uGx0z1VKt2m3eR9hvbdvDD58EbmQ,10140
9
9
  beaver/logs.py,sha256=a5xenwl5NZeegIU0dWVEs67lvaHzzw-JRAZtEzNNO3E,9529
10
10
  beaver/queues.py,sha256=Fr3oie63EtceSoiC8EOEDSLu1tDI8q2MYLXd8MEeC3g,6476
11
11
  beaver/server.py,sha256=WoNcPXU9oh6hcHtb60IbEk5DfZT5J4Fb-yubJE3YLIc,13642
12
- beaver/types.py,sha256=WZLINf7hy6zdKdAFQK0EVMSl5vnY_KnrHXNdXgAKuPg,1582
13
- beaver/vectors.py,sha256=qvI6RwUOGrhVH5d6PUmI3jKDaoDotMy0iy-bHyvmXks,18496
14
- beaver_db-0.18.4.dist-info/METADATA,sha256=rJzAJiR7iaz8jCqlwUKIInamZEvLK_QKVNrzwvqkWGY,21232
15
- beaver_db-0.18.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- beaver_db-0.18.4.dist-info/entry_points.txt,sha256=bd5E2s45PoBdtdR9-ToKSdLNhmHp8naV1lWP5mOzlrc,42
17
- beaver_db-0.18.4.dist-info/licenses/LICENSE,sha256=1xrIY5JnMk_QDQzsqmVzPIIyCgZAkWCC8kF2Ddo1UT0,1071
18
- beaver_db-0.18.4.dist-info/RECORD,,
12
+ beaver/types.py,sha256=m0ohT7A8r0Y1a7bJEx4VanLaOUWU2VYxaLHPsVPjrIw,1651
13
+ beaver/vectors.py,sha256=EGZf1s364-rMubxkYoTcjBl72lRRxM1cUwypjsoC6ec,18499
14
+ beaver_db-0.18.6.dist-info/METADATA,sha256=jwuZKs1NM14M9Q6aMYoKutgTUCkBKlc8OmAZeUaZvQs,21232
15
+ beaver_db-0.18.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ beaver_db-0.18.6.dist-info/entry_points.txt,sha256=bd5E2s45PoBdtdR9-ToKSdLNhmHp8naV1lWP5mOzlrc,42
17
+ beaver_db-0.18.6.dist-info/licenses/LICENSE,sha256=1xrIY5JnMk_QDQzsqmVzPIIyCgZAkWCC8kF2Ddo1UT0,1071
18
+ beaver_db-0.18.6.dist-info/RECORD,,