beaver-db 0.13.0__tar.gz → 0.13.1__tar.gz
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_db-0.13.0 → beaver_db-0.13.1}/PKG-INFO +7 -3
- {beaver_db-0.13.0 → beaver_db-0.13.1}/README.md +6 -2
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/core.py +10 -4
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver_db.egg-info/PKG-INFO +7 -3
- {beaver_db-0.13.0 → beaver_db-0.13.1}/pyproject.toml +1 -1
- {beaver_db-0.13.0 → beaver_db-0.13.1}/LICENSE +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/__init__.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/blobs.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/channels.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/collections.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/dicts.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/lists.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/queues.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/types.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver/vectors.py +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver_db.egg-info/SOURCES.txt +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver_db.egg-info/dependency_links.txt +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver_db.egg-info/requires.txt +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/beaver_db.egg-info/top_level.txt +0 -0
- {beaver_db-0.13.0 → beaver_db-0.13.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beaver-db
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.1
|
|
4
4
|
Summary: Fast, embedded, and multi-modal DB based on SQLite for AI-powered applications.
|
|
5
5
|
Requires-Python: >=3.13
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -274,13 +274,17 @@ For more in-depth examples, check out the scripts in the `examples/` directory:
|
|
|
274
274
|
|
|
275
275
|
## Roadmap
|
|
276
276
|
|
|
277
|
+
`beaver` is roughly feature-complete, but there are still some features and improvements planned for future releases, mostly directed to improving developer experience.
|
|
278
|
+
|
|
277
279
|
These are some of the features and improvements planned for future releases:
|
|
278
280
|
|
|
279
|
-
- **
|
|
280
|
-
- **Type Hints**:
|
|
281
|
+
- **Async API**: Extend the async support with on-demand wrappers for all features besides channels.
|
|
282
|
+
- **Type Hints**: Extend type hints for channels and documents.
|
|
281
283
|
|
|
282
284
|
Check out the [roadmap](roadmap.md) for a detailed list of upcoming features and design ideas.
|
|
283
285
|
|
|
286
|
+
If you think of something that would make `beaver` more useful for your use case, please open an issue and/or submit a pull request.
|
|
287
|
+
|
|
284
288
|
## License
|
|
285
289
|
|
|
286
290
|
This project is licensed under the MIT License.
|
|
@@ -263,13 +263,17 @@ For more in-depth examples, check out the scripts in the `examples/` directory:
|
|
|
263
263
|
|
|
264
264
|
## Roadmap
|
|
265
265
|
|
|
266
|
+
`beaver` is roughly feature-complete, but there are still some features and improvements planned for future releases, mostly directed to improving developer experience.
|
|
267
|
+
|
|
266
268
|
These are some of the features and improvements planned for future releases:
|
|
267
269
|
|
|
268
|
-
- **
|
|
269
|
-
- **Type Hints**:
|
|
270
|
+
- **Async API**: Extend the async support with on-demand wrappers for all features besides channels.
|
|
271
|
+
- **Type Hints**: Extend type hints for channels and documents.
|
|
270
272
|
|
|
271
273
|
Check out the [roadmap](roadmap.md) for a detailed list of upcoming features and design ideas.
|
|
272
274
|
|
|
275
|
+
If you think of something that would make `beaver` more useful for your use case, please open an issue and/or submit a pull request.
|
|
276
|
+
|
|
273
277
|
## License
|
|
274
278
|
|
|
275
279
|
This project is licensed under the MIT License.
|
|
@@ -267,12 +267,18 @@ class BeaverDB:
|
|
|
267
267
|
|
|
268
268
|
# --- Factory and Passthrough Methods ---
|
|
269
269
|
|
|
270
|
-
def dict(self, name: str) -> DictManager:
|
|
271
|
-
"""
|
|
270
|
+
def dict[T](self, name: str, model: type[T] | None = None) -> DictManager[T]:
|
|
271
|
+
"""
|
|
272
|
+
Returns a wrapper object for interacting with a named dictionary.
|
|
273
|
+
If model is defined, it should be a type used for automatic (de)serialization.
|
|
274
|
+
"""
|
|
272
275
|
if not isinstance(name, str) or not name:
|
|
273
276
|
raise TypeError("Dictionary name must be a non-empty string.")
|
|
274
277
|
|
|
275
|
-
|
|
278
|
+
if model and not isinstance(model, JsonSerializable):
|
|
279
|
+
raise TypeError("The model parameter must be a JsonSerializable class.")
|
|
280
|
+
|
|
281
|
+
return DictManager(name, self._conn, model)
|
|
276
282
|
|
|
277
283
|
def list[T](self, name: str, model: type[T] | None = None) -> ListManager[T]:
|
|
278
284
|
"""
|
|
@@ -285,7 +291,7 @@ class BeaverDB:
|
|
|
285
291
|
if model and not isinstance(model, JsonSerializable):
|
|
286
292
|
raise TypeError("The model parameter must be a JsonSerializable class.")
|
|
287
293
|
|
|
288
|
-
return ListManager(name, self._conn)
|
|
294
|
+
return ListManager(name, self._conn, model)
|
|
289
295
|
|
|
290
296
|
def queue[T](self, name: str, model: type[T] | None = None) -> QueueManager[T]:
|
|
291
297
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beaver-db
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.1
|
|
4
4
|
Summary: Fast, embedded, and multi-modal DB based on SQLite for AI-powered applications.
|
|
5
5
|
Requires-Python: >=3.13
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -274,13 +274,17 @@ For more in-depth examples, check out the scripts in the `examples/` directory:
|
|
|
274
274
|
|
|
275
275
|
## Roadmap
|
|
276
276
|
|
|
277
|
+
`beaver` is roughly feature-complete, but there are still some features and improvements planned for future releases, mostly directed to improving developer experience.
|
|
278
|
+
|
|
277
279
|
These are some of the features and improvements planned for future releases:
|
|
278
280
|
|
|
279
|
-
- **
|
|
280
|
-
- **Type Hints**:
|
|
281
|
+
- **Async API**: Extend the async support with on-demand wrappers for all features besides channels.
|
|
282
|
+
- **Type Hints**: Extend type hints for channels and documents.
|
|
281
283
|
|
|
282
284
|
Check out the [roadmap](roadmap.md) for a detailed list of upcoming features and design ideas.
|
|
283
285
|
|
|
286
|
+
If you think of something that would make `beaver` more useful for your use case, please open an issue and/or submit a pull request.
|
|
287
|
+
|
|
284
288
|
## License
|
|
285
289
|
|
|
286
290
|
This project is licensed under the MIT License.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|