graphos-client 0.16.2__tar.gz → 0.16.3__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.
- {graphos_client-0.16.2 → graphos_client-0.16.3}/DEVELOPMENT.md +1 -1
- {graphos_client-0.16.2 → graphos_client-0.16.3}/PKG-INFO +2 -2
- {graphos_client-0.16.2 → graphos_client-0.16.3}/README.md +1 -1
- {graphos_client-0.16.2 → graphos_client-0.16.3}/pyproject.toml +1 -1
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/__init__.py +1 -1
- {graphos_client-0.16.2 → graphos_client-0.16.3}/tests/test_client.py +18 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/.gitignore +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/LICENSE +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/NOTICE +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/THIRD_PARTY_NOTICES.md +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/01_quickstart.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/02_bulk_load.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/03_explore.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/04_communities.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/05_tenant_pool.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/06_rule_based_edges.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/07_background_jobs.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/08_demo_ecosystem.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/examples/09_better_answers.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_auth.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_client.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_drift.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_errors.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_models.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/_pool.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/src/graphos_client/py.typed +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/tests/test_models.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/tests/test_pool.py +0 -0
- {graphos_client-0.16.2 → graphos_client-0.16.3}/tests/test_schema_manager.py +0 -0
|
@@ -80,7 +80,7 @@ Besides the shared list in [development.md §3](../../docs/guide/development.md#
|
|
|
80
80
|
- the README's examples table lists every script in `examples/`;
|
|
81
81
|
- a change in retries or errors updates the README's "Behaviour" section;
|
|
82
82
|
- a change to what the client promises (async only, its dependencies, what
|
|
83
|
-
it retries) gets an [ADR](../../docs/
|
|
83
|
+
it retries) gets an [ADR](../../docs/adrs/README.md) first.
|
|
84
84
|
|
|
85
85
|
## 6. Release
|
|
86
86
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: graphos-client
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.3
|
|
4
4
|
Summary: Async HTTP client for the graphos graph service.
|
|
5
5
|
Project-URL: Homepage, https://github.com/pomentum/graphos
|
|
6
6
|
Project-URL: Documentation, https://github.com/pomentum/graphos/tree/main/clients/python
|
|
@@ -121,7 +121,7 @@ from graphos_client import GraphosPool, PasswordAuth, TenantSchema
|
|
|
121
121
|
schema = TenantSchema(
|
|
122
122
|
vertex_labels=["User", "Document"],
|
|
123
123
|
edge_labels=["AUTHORED"],
|
|
124
|
-
property_indexes=[{"label": "Document", "properties": ["kind"]}], # serves `where kind =
|
|
124
|
+
property_indexes=[{"label": "Document", "properties": ["kind"]}], # serves `where kind = ...`, and Cypher
|
|
125
125
|
)
|
|
126
126
|
|
|
127
127
|
async with GraphosPool(base_url=URL, auth=PasswordAuth("loader", SECRET), schema=schema) as pool:
|
|
@@ -87,7 +87,7 @@ from graphos_client import GraphosPool, PasswordAuth, TenantSchema
|
|
|
87
87
|
schema = TenantSchema(
|
|
88
88
|
vertex_labels=["User", "Document"],
|
|
89
89
|
edge_labels=["AUTHORED"],
|
|
90
|
-
property_indexes=[{"label": "Document", "properties": ["kind"]}], # serves `where kind =
|
|
90
|
+
property_indexes=[{"label": "Document", "properties": ["kind"]}], # serves `where kind = ...`, and Cypher
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
async with GraphosPool(base_url=URL, auth=PasswordAuth("loader", SECRET), schema=schema) as pool:
|
|
@@ -1705,3 +1705,21 @@ async def test_a_stream_ended_by_a_stopping_server_reconnects_at_once(
|
|
|
1705
1705
|
assert [r.headers.get("last-event-id") for r in calls] == ["100.0", "100.1"]
|
|
1706
1706
|
assert waits == [] # no back-off after a draining event
|
|
1707
1707
|
await cli.close()
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
@pytest.mark.asyncio
|
|
1711
|
+
async def test_register_tenant_sends_a_cypher_property_index_as_declared() -> None:
|
|
1712
|
+
seen: list[dict] = []
|
|
1713
|
+
|
|
1714
|
+
def handler(request: httpx.Request) -> httpx.Response:
|
|
1715
|
+
seen.append(json.loads(request.content))
|
|
1716
|
+
return httpx.Response(200, json={"tenant": "demo"})
|
|
1717
|
+
|
|
1718
|
+
declared = [
|
|
1719
|
+
{"label": "Doc", "properties": ["kind"]},
|
|
1720
|
+
{"label": "Doc", "properties": ["ref", "id"], "kind": "cypher"},
|
|
1721
|
+
]
|
|
1722
|
+
cli = _client_for(handler)
|
|
1723
|
+
await cli.register_tenant(vertex_labels=["Doc"], property_indexes=declared)
|
|
1724
|
+
assert seen[0]["property_indexes"] == declared
|
|
1725
|
+
await cli.close()
|
|
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
|