interloper-api 0.126.0__tar.gz → 0.127.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.
Files changed (38) hide show
  1. {interloper_api-0.126.0 → interloper_api-0.127.0}/PKG-INFO +1 -1
  2. {interloper_api-0.126.0 → interloper_api-0.127.0}/pyproject.toml +1 -1
  3. {interloper_api-0.126.0 → interloper_api-0.127.0}/pyproject.toml.orig +1 -1
  4. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/overview.py +11 -11
  5. {interloper_api-0.126.0 → interloper_api-0.127.0}/README.md +0 -0
  6. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/__init__.py +0 -0
  7. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/app.py +0 -0
  8. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/authorization.py +0 -0
  9. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/cli.py +0 -0
  10. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/dependencies/__init__.py +0 -0
  11. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/dependencies/auth.py +0 -0
  12. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/dependencies/rbac.py +0 -0
  13. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/dependencies/state.py +0 -0
  14. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/login.py +0 -0
  15. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/notifications/__init__.py +0 -0
  16. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/notifications/base.py +0 -0
  17. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/notifications/invitations.py +0 -0
  18. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/notifications/super_admins.py +0 -0
  19. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/__init__.py +0 -0
  20. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/admin.py +0 -0
  21. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/agent.py +0 -0
  22. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/apps.py +0 -0
  23. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/auth.py +0 -0
  24. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/authorization.py +0 -0
  25. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/backfills.py +0 -0
  26. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/catalog.py +0 -0
  27. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/components.py +0 -0
  28. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/executions.py +0 -0
  29. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/health.py +0 -0
  30. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/oauth.py +0 -0
  31. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/organisations.py +0 -0
  32. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/relations.py +0 -0
  33. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/runs.py +0 -0
  34. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/tokens.py +0 -0
  35. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/routes/websocket.py +0 -0
  36. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/server.py +0 -0
  37. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/utils/__init__.py +0 -0
  38. {interloper_api-0.126.0 → interloper_api-0.127.0}/src/interloper_api/utils/time.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: interloper-api
3
- Version: 0.126.0
3
+ Version: 0.127.0
4
4
  Summary: Interloper FastAPI routes
5
5
  Author: Guillaume Onfroy
6
6
  Author-email: Guillaume Onfroy <guillaume@digitlcloud.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "interloper-api"
3
- version = "0.126.0"
3
+ version = "0.127.0"
4
4
  description = "Interloper FastAPI routes"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -3,7 +3,7 @@
3
3
  # ###############
4
4
  [project]
5
5
  name = "interloper-api"
6
- version = "0.126.0"
6
+ version = "0.127.0"
7
7
  description = "Interloper FastAPI routes"
8
8
  readme = "README.md"
9
9
  authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
@@ -158,11 +158,11 @@ class OverviewResponse(BaseModel):
158
158
  class CoverageSource(BaseModel):
159
159
  """A calendar group, a source with its assets or a standalone asset, with its days.
160
160
 
161
- The arrays run from :attr:`start` to the group's last expected day in the
162
- window: index ``i`` is the day ``start + i``, and a day inside that run
163
- with nothing expected is a zero in every array. ``missed`` counts the
164
- snapshot observations that ended without a success, which are not
165
- expected.
161
+ The arrays run from :attr:`start` to the group's last day in the window
162
+ with partitions: index ``i`` is the day ``start + i``, and a day inside
163
+ that run without any is a zero in every array. A day's partitions are its
164
+ ``successful``, ``failed`` and ``missing`` ones; ``missed`` counts the
165
+ snapshot periods that ended without a success, which are not among them.
166
166
  """
167
167
 
168
168
  id: UUID
@@ -170,14 +170,14 @@ class CoverageSource(BaseModel):
170
170
  name: str
171
171
  kind: Literal["source", "asset"]
172
172
  start: dt.date
173
- expected: list[int]
174
- covered: list[int]
173
+ successful: list[int]
175
174
  failed: list[int]
175
+ missing: list[int]
176
176
  missed: list[int]
177
177
  failed_run_ids: dict[int, UUID]
178
178
 
179
179
  @classmethod
180
- def from_group(cls, group: insights.CoverageGroup) -> CoverageSource:
180
+ def from_group(cls, group: insights.GroupCoverage) -> CoverageSource:
181
181
  """Name a calendar group after its row, with its definition key, and attach its days.
182
182
 
183
183
  Args:
@@ -193,9 +193,9 @@ class CoverageSource(BaseModel):
193
193
  name=component.name or component.key,
194
194
  kind="source" if component.kind == "source" else "asset",
195
195
  start=days.start,
196
- expected=days.expected,
197
- covered=days.covered,
196
+ successful=days.successful,
198
197
  failed=days.failed,
198
+ missing=days.missing,
199
199
  missed=days.missed,
200
200
  failed_run_ids=days.failed_run_ids,
201
201
  )
@@ -271,7 +271,7 @@ def get_coverage(
271
271
  since: First day of the window.
272
272
  until: Last day of the window, inclusive.
273
273
  now: Reference instant, which decides which periods have closed and
274
- how much of today is owed. A test seam: tests pin it; clients omit it.
274
+ how much of today counts. A test seam: tests pin it; clients omit it.
275
275
 
276
276
  Returns:
277
277
  The coverage calendar's data.