beaver-db 0.17.3__tar.gz → 0.17.4__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.

Files changed (44) hide show
  1. {beaver_db-0.17.3 → beaver_db-0.17.4}/PKG-INFO +1 -1
  2. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/cli.py +16 -21
  3. {beaver_db-0.17.3 → beaver_db-0.17.4}/pyproject.toml +1 -1
  4. {beaver_db-0.17.3 → beaver_db-0.17.4}/.gitignore +0 -0
  5. {beaver_db-0.17.3 → beaver_db-0.17.4}/.python-version +0 -0
  6. {beaver_db-0.17.3 → beaver_db-0.17.4}/LICENSE +0 -0
  7. {beaver_db-0.17.3 → beaver_db-0.17.4}/README.md +0 -0
  8. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/__init__.py +0 -0
  9. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/blobs.py +0 -0
  10. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/channels.py +0 -0
  11. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/collections.py +0 -0
  12. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/core.py +0 -0
  13. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/dicts.py +0 -0
  14. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/lists.py +0 -0
  15. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/logs.py +0 -0
  16. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/queues.py +0 -0
  17. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/server.py +0 -0
  18. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/types.py +0 -0
  19. {beaver_db-0.17.3 → beaver_db-0.17.4}/beaver/vectors.py +0 -0
  20. {beaver_db-0.17.3 → beaver_db-0.17.4}/design.md +0 -0
  21. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/async_pubsub.py +0 -0
  22. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/blobs.py +0 -0
  23. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/cache.py +0 -0
  24. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/fts.py +0 -0
  25. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/fuzzy.py +0 -0
  26. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/general_test.py +0 -0
  27. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/graph.py +0 -0
  28. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/kvstore.py +0 -0
  29. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/list.py +0 -0
  30. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/logs.py +0 -0
  31. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/pqueue.py +0 -0
  32. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/producer_consumer.py +0 -0
  33. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/publisher.py +0 -0
  34. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/pubsub.py +0 -0
  35. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/rerank.py +0 -0
  36. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/stress_vectors.py +0 -0
  37. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/subscriber.py +0 -0
  38. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/textual_chat.css +0 -0
  39. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/textual_chat.py +0 -0
  40. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/type_hints.py +0 -0
  41. {beaver_db-0.17.3 → beaver_db-0.17.4}/examples/vector.py +0 -0
  42. {beaver_db-0.17.3 → beaver_db-0.17.4}/makefile +0 -0
  43. {beaver_db-0.17.3 → beaver_db-0.17.4}/roadmap.md +0 -0
  44. {beaver_db-0.17.3 → beaver_db-0.17.4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beaver-db
3
- Version: 0.17.3
3
+ Version: 0.17.4
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,34 +1,29 @@
1
- from typing import Annotated
2
1
  import typer
3
2
  import rich
3
+ from typing_extensions import Annotated
4
4
 
5
5
  app = typer.Typer()
6
6
 
7
7
 
8
8
  @app.command()
9
9
  def serve(
10
- database: str = typer.Option(
11
- "beaver.db", "--database", "-d", help="Path to the database file."
12
- ),
13
- host: str = typer.Option(
14
- "127.0.0.1", "--host", "-h", help="The host to bind the server to."
15
- ),
16
- port: int = typer.Option(
17
- 8000, "--port", "-p", help="The port to run the server on."
18
- ),
10
+ database: Annotated[
11
+ str, typer.Option(help="The path to the BeaverDB database file.")
12
+ ] = "beaver.db",
13
+ host: Annotated[str, typer.Option(help="The host to bind the server to.")] = "127.0.0.1",
14
+ port: Annotated[int, typer.Option(help="The port to run the server on.")] = 8000,
19
15
  ):
20
- """
21
- Starts a RESTful API server for a BeaverDB instance.
22
- """
16
+ """Starts a REST API server for the BeaverDB database."""
23
17
  try:
24
- from .server import serve as run_server
25
- except ImportError as e:
26
- rich.print(f"[red]Error: {e}[/]")
27
- rich.print('[yellow]Please install the server dependencies with `pip install "beaver-db[server]"`[/]')
18
+ from . import server
19
+ except ImportError:
20
+ rich.print(
21
+ "[red]Error:[/] To use the serve command, please install the server dependencies:\n"
22
+ 'pip install "beaver-db[server]"'
23
+ )
28
24
  raise typer.Exit(code=1)
29
25
 
30
- rich.print(f"[blue]Starting server for database at '{database}' on http://{host}:{port}[/]")
31
- run_server(db_path=database, host=host, port=port)
26
+ server.serve(database, host=host, port=port)
32
27
 
33
28
 
34
29
  @app.command(
@@ -50,8 +45,8 @@ def client(
50
45
  import fire
51
46
  from .core import BeaverDB
52
47
  except ImportError:
53
- print(
54
- "Error: To use the client command, please install the CLI dependencies:\n"
48
+ rich.print(
49
+ "[red]Error:[/] To use the client command, please install the CLI dependencies:\n"
55
50
  'pip install "beaver-db[cli]"'
56
51
  )
57
52
  raise typer.Exit(code=1)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "beaver-db"
3
- version = "0.17.3"
3
+ version = "0.17.4"
4
4
  description = "Fast, embedded, and multi-modal DB based on SQLite for AI-powered applications."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
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
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