weave-python 0.33.0__tar.gz → 0.34.0__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.
- {weave_python-0.33.0 → weave_python-0.34.0}/PKG-INFO +1 -1
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/event.py +28 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.github/runs-on.yml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.github/workflows/format-lint.yaml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.github/workflows/generate.yaml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.github/workflows/release.yaml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.gitignore +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/.python-version +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/LICENSE +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/README.md +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/Taskfile.yaml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/buf.gen.yaml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/pyproject.toml +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/renovate.json +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/tools/sqlcgen/README.md +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/tools/sqlcgen/sqlcgen.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/tools/sqlcgen/test_sqlcgen.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/uv.lock +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/event_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/event_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/event_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/event_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/message_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/message_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/message_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/message_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/process_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/process_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/process_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/process_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/run_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/run_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/run_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/run_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/service_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/service_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/service_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/atc/v1/service_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/project_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/project_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/project_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/project_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/service_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/service_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/service_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/project/v1/service_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/provider_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/provider_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/provider_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/provider_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/service_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/service_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/service_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/service_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/service_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/service_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/service_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/service_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/task_pb2.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/task_pb2.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/task_pb2_grpc.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/task/v1/task_pb2_grpc.pyi +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/inspection.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/mailbox.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/models.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/run_template.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/snapshot.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/atcdb/team.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/weavedb/models.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/weavedb/project.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/weavedb/provider.py +0 -0
- {weave_python-0.33.0 → weave_python-0.34.0}/weave/weavesql/weavedb/task.py +0 -0
|
@@ -117,6 +117,20 @@ class ListEventsByTypeRow:
|
|
|
117
117
|
occurred_at: datetime.datetime
|
|
118
118
|
|
|
119
119
|
|
|
120
|
+
LIST_RUN_I_DS = """-- name: list_run_i_ds \\:many
|
|
121
|
+
SELECT DISTINCT run_id
|
|
122
|
+
FROM atc.events
|
|
123
|
+
WHERE tenant_id = :p1
|
|
124
|
+
AND transaction_id < pg_snapshot_xmin(pg_current_snapshot())
|
|
125
|
+
ORDER BY run_id
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
@dataclasses.dataclass()
|
|
130
|
+
class ListRunIDsParams:
|
|
131
|
+
tenant_id: str
|
|
132
|
+
|
|
133
|
+
|
|
120
134
|
LOAD_ALL_EVENTS = """-- name: load_all_events \\:many
|
|
121
135
|
SELECT
|
|
122
136
|
id,
|
|
@@ -410,6 +424,13 @@ class Querier:
|
|
|
410
424
|
occurred_at=row[8],
|
|
411
425
|
)
|
|
412
426
|
|
|
427
|
+
def list_run_i_ds(self, arg: ListRunIDsParams) -> Iterator[str]:
|
|
428
|
+
result = self._conn.execute(
|
|
429
|
+
sqlalchemy.text(LIST_RUN_I_DS), {"p1": arg.tenant_id}
|
|
430
|
+
)
|
|
431
|
+
for row in result:
|
|
432
|
+
yield row[0]
|
|
433
|
+
|
|
413
434
|
def load_all_events(self, arg: LoadAllEventsParams) -> Iterator[LoadAllEventsRow]:
|
|
414
435
|
result = self._conn.execute(
|
|
415
436
|
sqlalchemy.text(LOAD_ALL_EVENTS), {"p1": arg.tenant_id, "p2": arg.run_id}
|
|
@@ -606,6 +627,13 @@ class AsyncQuerier:
|
|
|
606
627
|
occurred_at=row[8],
|
|
607
628
|
)
|
|
608
629
|
|
|
630
|
+
async def list_run_i_ds(self, arg: ListRunIDsParams) -> AsyncIterator[str]:
|
|
631
|
+
result = await self._conn.stream(
|
|
632
|
+
sqlalchemy.text(LIST_RUN_I_DS), {"p1": arg.tenant_id}
|
|
633
|
+
)
|
|
634
|
+
async for row in result:
|
|
635
|
+
yield row[0]
|
|
636
|
+
|
|
609
637
|
async def load_all_events(
|
|
610
638
|
self, arg: LoadAllEventsParams
|
|
611
639
|
) -> AsyncIterator[LoadAllEventsRow]:
|
|
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
|
|
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
|
{weave_python-0.33.0 → weave_python-0.34.0}/weave/weaveapi/provider/v1/provider_pb2_grpc.pyi
RENAMED
|
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
|