post-graph 0.3.0__tar.gz → 0.3.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: post-graph
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: High-performance PostgreSQL-backed graph database library supporting multi-tenant realms, space sub-grouping, schema-per-realm, shadow auditing, and append-only data history.
5
5
  Project-URL: Homepage, https://github.com/crajah/post-graph
6
6
  Project-URL: Repository, https://github.com/crajah/post-graph
@@ -8,9 +8,13 @@ from post_graph.errors import (
8
8
  )
9
9
  from post_graph.models import Vertex, Edge, TraversalStep
10
10
  from post_graph.client_asyncpg import AsyncPostGraph
11
- from post_graph.client_sqlalchemy import SQLAlchemyPostGraph
12
11
 
13
- __version__ = "0.3.0"
12
+ try:
13
+ from post_graph.client_sqlalchemy import SQLAlchemyPostGraph
14
+ except ImportError:
15
+ SQLAlchemyPostGraph = None
16
+
17
+ __version__ = "0.3.2"
14
18
 
15
19
  __all__ = [
16
20
  "__version__",
@@ -767,7 +767,8 @@ class AsyncPostGraph:
767
767
  top_k: int = 5,
768
768
  distance_metric: str = "cosine",
769
769
  search_data_table: bool = False,
770
- search_scope: str = "main"
770
+ search_scope: str = "main",
771
+ space: Optional[str] = None
771
772
  ) -> List[Tuple[Vertex, float]]:
772
773
  """Perform vector similarity search on vertex embeddings using pgvector.
773
774
 
@@ -4,7 +4,7 @@ import re
4
4
  from typing import Any, Dict, List, Optional, Tuple, Union
5
5
  from sqlalchemy import text
6
6
  from sqlalchemy.ext.asyncio import AsyncEngine, AsyncConnection
7
- from sqlalchemy.exc import IntegrityError, ProgrammingError
7
+ from sqlalchemy.exc import DataError, IntegrityError, ProgrammingError
8
8
 
9
9
  from post_graph.errors import (
10
10
  VertexNotFoundError,
@@ -654,7 +654,7 @@ class SQLAlchemyPostGraph:
654
654
  _client=self
655
655
  ))
656
656
  return vertices
657
- except (ProgrammingError, UndefinedTableError):
657
+ except ProgrammingError:
658
658
  raise TableNotFoundError(f"Vertex table '{table_name}' does not exist.")
659
659
 
660
660
  if isinstance(self.engine_or_connection, AsyncConnection):
@@ -717,7 +717,8 @@ class SQLAlchemyPostGraph:
717
717
  top_k: int = 5,
718
718
  distance_metric: str = "cosine",
719
719
  search_data_table: bool = False,
720
- search_scope: str = "main"
720
+ search_scope: str = "main",
721
+ space: Optional[str] = None
721
722
  ) -> List[Tuple[Vertex, float]]:
722
723
  """Perform vector similarity search on vertex embeddings using pgvector."""
723
724
  self._validate_identifier(table_name)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "post-graph"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "High-performance PostgreSQL-backed graph database library supporting multi-tenant realms, space sub-grouping, schema-per-realm, shadow auditing, and append-only data history."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
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