Published tables¶
catalog ¶
Brokered catalog read — catalog layer of the Miura Nexus client.
Implements (control/delivery), (catalog semantic layer), and consumes resolved refs per (bridge types stubbed; no collection-only reads).
Entry: AsyncNexus.catalog → CatalogAPI.
Batch reads require explicit catalog scope (CatalogAsset or CatalogAssetRef).
They MUST NOT live on AsyncCollection — collections are storage, not queryable tables.
CatalogAPI ¶
Catalog-layer read API — brokered batches from published catalog assets.
Mounted at AsyncNexus.catalog. Implements session/run/delivery;
catalog semantic layer per ; consumes resolved refs per
(no silent collection-only resolution).
Source code in src/miura/nexus/catalog/catalog_api.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
asset ¶
Hydrate a catalog ref (or pass through an existing :class:CatalogAsset).
Source code in src/miura/nexus/catalog/catalog_api.py
create_read_session
async
¶
create_read_session(*, asset_id: str = '', collection_id: str = '', project_id: str = '', columns: list[str] | None = None, filters: list[dict[str, Any]] | None = None, asset_ref: CatalogAssetRef | CatalogAssetSnapshotRef | CatalogAsset | None = None) -> CatalogReadSession
Advanced control-plane session.
Source code in src/miura/nexus/catalog/catalog_api.py
iter_batches
async
¶
iter_batches(*, asset_id: str = '', collection_id: str = '', project_id: str = '', columns: list[str] | None = None, filters: list[dict[str, Any]] | None = None, batch_size: int = 4096, shuffle: dict[str, Any] | None = None, shard: dict[str, Any] | CatalogReadShard | None = None, asset_ref: CatalogAssetRef | CatalogAssetSnapshotRef | CatalogAsset | None = None) -> AsyncIterator[pa.RecordBatch]
Neutral catalog batch iterator — control API + Flight delivery.
Source code in src/miura/nexus/catalog/catalog_api.py
iter_batches_for_run
async
¶
iter_batches_for_run(*, project_id: str, session_id: str, run_id: str) -> AsyncIterator[pa.RecordBatch]
Consume batches for an existing run (advanced session → run path).
Source code in src/miura/nexus/catalog/catalog_api.py
CatalogAsset ¶
Bases: CatalogScopedEntity
Queryable published catalog table — catalog-layer entity with read methods.
Identity and serialization: :attr:ref (CatalogAssetSnapshotRef or CatalogAssetRef).
Behavior: :meth:iter_batches, adapter helpers, optional advanced session API.
Source code in src/miura/nexus/catalog/catalog_asset.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
ref
property
¶
Immutable identity handle for serialization, jobs, and low-level APIs.
snapshot_id
property
¶
Alias for :attr:fileset_snapshot_id when snapshot-bound.
from_ref
classmethod
¶
Hydrate a ref into a catalog entity (mid-level entry).
Source code in src/miura/nexus/catalog/catalog_asset.py
from_transport
classmethod
¶
Wrap a ref using an object exposing http_client and base_url.
Source code in src/miura/nexus/catalog/catalog_asset.py
iter_batches
async
¶
iter_batches(*, columns: list[str] | None = None, filters: list[dict[str, Any]] | None = None, batch_size: int = 4096, shuffle: dict[str, Any] | None = None, shard: dict[str, Any] | CatalogReadShard | None = None) -> AsyncIterator[pa.RecordBatch]
Stream record batches for this asset (delegates to :meth:CatalogAPI.iter_batches).
Source code in src/miura/nexus/catalog/catalog_asset.py
create_read_session
async
¶
create_read_session(*, columns: list[str] | None = None, filters: list[dict[str, Any]] | None = None) -> CatalogReadSession
Advanced control-plane session for this asset.
Source code in src/miura/nexus/catalog/catalog_asset.py
CatalogReadRun ¶
Advanced run handle — batch iteration without exposing Flight mechanics.
Source code in src/miura/nexus/catalog/catalog_run.py
CatalogScopedEntity ¶
Catalog-layer object bound to a project/collection/asset scope and :class:CatalogAPI.
Subclasses (CatalogAsset, CatalogReadSession, …) share identity accessors
and a single catalog client — behavior differs by entity role, not by duplicating scope.
Source code in src/miura/nexus/catalog/catalog_scoped.py
CatalogReadSession ¶
Bases: CatalogScopedEntity
Brokered read session entitlement scope; snapshot-bound on server.
Source code in src/miura/nexus/catalog/catalog_session.py
CatalogAssetRef
dataclass
¶
Logical catalog asset identity for brokered reads.
Not a generic Asset — catalog-layer identity token only. For product reads,
hydrate via :class:~miura.nexus.catalog.catalog_asset.CatalogAsset or
collection.catalog_asset(). Batch iteration on the low-level path belongs
on AsyncNexus.catalog, not AsyncCollection.
Source code in src/miura/nexus/catalog/types.py
as_kwargs ¶
Kwargs for CatalogAPI.iter_batches / create_read_session.
CatalogAssetSnapshotRef
dataclass
¶
Snapshot-bound catalog identity.
Extends logical CatalogAssetRef with optional registration/snapshot fields.
as_kwargs() passes the logical scope catalog-read-service accepts today;
snapshot binding is enforced server-side once the bridge is wired.
Source code in src/miura/nexus/catalog/types.py
CatalogReadShard
dataclass
¶
Client-side value object: this consumer's catalog-read shard.
Epico API surface: pass as shard= on catalog.iter_batches or
session.start_run. Users should not write shard_policy= at the
high level unless using an advanced raw control-plane mode.
Wire / plan field: CatalogReadShard.as_policy() serializes to
shard_policy on run create and is frozen into plan_snapshot.
One shard → one catalog-read plan → one run → one delivery ticket → one Flight stream.
Source code in src/miura/nexus/catalog/types.py
as_policy ¶
Control-plane shard_policy body for run create (M3+ explicit strategy).
Source code in src/miura/nexus/catalog/types.py
available_operations_for_capabilities ¶
available_operations_for_capabilities(capabilities: frozenset[CatalogAssetCapability | str]) -> frozenset[str]
Map capability enums to public operation names.
Source code in src/miura/nexus/catalog/capabilities.py
as_catalog_asset_ref ¶
as_catalog_asset_ref(value: CatalogAssetRef | CatalogAssetSnapshotRef | CatalogAsset) -> CatalogAssetRef | CatalogAssetSnapshotRef
Extract the wire ref from a ref or :class:~miura.nexus.catalog.catalog_asset.CatalogAsset.
Source code in src/miura/nexus/catalog/types.py
resolve_catalog_asset_ref ¶
resolve_catalog_asset_ref(*, asset_ref: CatalogAssetRef | CatalogAssetSnapshotRef | CatalogAsset | None = None, asset_id: str = '', collection_id: str = '', project_id: str = '') -> CatalogAssetRef
Resolve explicit catalog scope — ref OR all three ids.