graflo.cli.lift¶
graflo lift -- lift a manifest with one or more aspects, via Operations.
The verb is a thin shell over
:func:~graflo.architecture.evolution.aspects.plan_lift. It reads a manifest
and, for the aspects that need one, a spec; plans the ops; and -- unless asked
only to show them -- applies them and writes the result.
--emit-ops is the point of doing this through Operations at all: the plan is
a document you can read, diff and check in before anything is applied.
-m LABEL records the lift in a commit store as a lift commit carrying
its recipe (the aspects, their versions and the spec), and stamps the written
manifest with it. The input manifest must already be a tree in that store.
The written manifest states its declarations explicitly (see
graflo.cli.io.DECLARED_KEYS). Without that, directed: true would be
dropped as a default and the very declaration the lift just made would be
invisible to graflo check.
Attributes¶
EXIT_REFUSED = 1
module-attribute
¶
__all__ = ['lift']
module-attribute
¶
Classes¶
Functions:¶
lift(manifest, spec_path, output, ops_path, dry_run, do_check, profile_name, store, record_label, aspects=DEFAULT_ASPECTS)
¶
Lift MANIFEST with the named aspects.
provenance makes lineage expressible: SourceRecord and Agent, with
wasDerivedFrom and wasAttributedTo. state makes change and
measurement expressible: mutable facts move onto their own <Type>State
with a validity interval, and measured types gain a <Type>Observation
with a unit per row. Both are lifted by default.
This changes the contract, not the data flow. Nothing populates the new types: a manifest with an ingestion_model still needs its pipelines wired to them, which this verb deliberately does not attempt.
Source code in graflo/cli/lift.py
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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |