mini-atlas-graph-app 0.1.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 (197) hide show
  1. mini_atlas_graph_app-0.1.0/LICENSE +201 -0
  2. mini_atlas_graph_app-0.1.0/MANIFEST.in +22 -0
  3. mini_atlas_graph_app-0.1.0/PKG-INFO +192 -0
  4. mini_atlas_graph_app-0.1.0/README.md +155 -0
  5. mini_atlas_graph_app-0.1.0/graph_app_build.py +429 -0
  6. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/__init__.py +66 -0
  7. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/__main__.py +4 -0
  8. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/app.py +80 -0
  9. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/cli.py +428 -0
  10. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/config.py +409 -0
  11. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/contracts/__init__.py +25 -0
  12. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/contracts/__main__.py +8 -0
  13. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/contracts/export.py +132 -0
  14. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/contracts/models.py +492 -0
  15. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/contracts/present.py +20 -0
  16. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/errors.py +228 -0
  17. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/__init__.py +54 -0
  18. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/analytics.py +545 -0
  19. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/analytics_import.py +1431 -0
  20. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/analytics_import_job.py +761 -0
  21. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/backup_api.py +418 -0
  22. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/classify.py +37 -0
  23. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/codegen.py +226 -0
  24. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/csv_headers.py +184 -0
  25. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/csv_uploads.py +383 -0
  26. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/errors.py +305 -0
  27. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/etl_resume.py +955 -0
  28. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/etl_run.py +1638 -0
  29. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/etl_run_job.py +857 -0
  30. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_artifacts.py +212 -0
  31. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_cleanup.py +346 -0
  32. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_download.py +639 -0
  33. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_formats.py +186 -0
  34. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_job.py +1148 -0
  35. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_plan.py +880 -0
  36. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/export_plan_task.py +483 -0
  37. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/external_etl.py +651 -0
  38. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/identity.py +46 -0
  39. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/ingestor_keys.py +162 -0
  40. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/inspect.py +566 -0
  41. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/managed_config.py +1204 -0
  42. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/output_selection.py +178 -0
  43. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/publish.py +2047 -0
  44. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/publish_job.py +955 -0
  45. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/recipe_check.py +844 -0
  46. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/recipe_check_task.py +823 -0
  47. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/recipe_drafts.py +511 -0
  48. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/recipe_generate.py +1015 -0
  49. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/recipes.py +580 -0
  50. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/registry.py +397 -0
  51. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/sample_build.py +731 -0
  52. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/saved_queries.py +486 -0
  53. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/saved_query_refs.py +533 -0
  54. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slice_caps.py +46 -0
  55. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slice_compile.py +43 -0
  56. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slice_definition.py +900 -0
  57. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slice_preview.py +761 -0
  58. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slice_preview_task.py +549 -0
  59. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/slow_build_sql.py +20 -0
  60. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/snapshots.py +290 -0
  61. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/source_inspect.py +403 -0
  62. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/source_inspect_task.py +665 -0
  63. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/sql_console.py +625 -0
  64. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/sql_inspect.py +414 -0
  65. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/sql_seed.py +931 -0
  66. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/sql_seed_sandbox.py +574 -0
  67. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/toolbox_profiles.py +753 -0
  68. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/unmatched_seeds.py +235 -0
  69. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/validate.py +389 -0
  70. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/verify.py +174 -0
  71. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/wizard_model.py +1560 -0
  72. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/graphs/yaml_import.py +1649 -0
  73. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/glossary.md +228 -0
  74. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/python-cli.md +158 -0
  75. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/scenarios/analytics-import-use.md +62 -0
  76. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/scenarios/csv-build-publication.md +62 -0
  77. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/scenarios/register-query-export.md +54 -0
  78. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/app/scenarios/sample-csv-tutorial.md +67 -0
  79. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/HOW_TO_INDEX.md +79 -0
  80. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/check-and-run-a-recipe.md +86 -0
  81. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/clean-values.md +72 -0
  82. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/connect-to-a-database.md +87 -0
  83. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/control-a-large-expansion.md +70 -0
  84. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/create-a-subgraph-for-analysis.md +83 -0
  85. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/create-edges-from-sql.md +108 -0
  86. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/create-nodes-from-csv.md +294 -0
  87. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/create-nodes-from-sql.md +96 -0
  88. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/look-records-up-in-reverse.md +79 -0
  89. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/publish-to-warehouse.md +76 -0
  90. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/query-a-stored-graph.md +76 -0
  91. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/read-run-results.md +107 -0
  92. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/resume-an-interrupted-run.md +84 -0
  93. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/retry-warehouse-publication.md +70 -0
  94. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/run-multiple-starting-queries.md +102 -0
  95. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/understand-rejected-rows.md +73 -0
  96. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/understand-skip-conflict-force.md +76 -0
  97. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/how-to/use-ids-in-the-next-query.md +94 -0
  98. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/reference/CLI_CHEAT_SHEET.md +64 -0
  99. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/reference/OUTPUT_AND_STATUS_CHEAT_SHEET.md +63 -0
  100. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/reference/PLAIN_LANGUAGE_GLOSSARY.md +28 -0
  101. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_etl/reference/RECIPE_CHEAT_SHEET.md +177 -0
  102. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_ingestor/README.md +1217 -0
  103. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_warehouse/ANALYST_CHEAT_SHEET.md +71 -0
  104. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_warehouse/ANALYTICS_QUERY.md +251 -0
  105. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/graph_warehouse/GRAPH_QUERY_CHEAT_SHEET.md +599 -0
  106. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/provenance.json +379 -0
  107. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help/toolbox/README.md +903 -0
  108. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_catalog.py +267 -0
  109. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/glossary.md +228 -0
  110. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/python-cli.md +158 -0
  111. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/scenarios/analytics-import-use.md +62 -0
  112. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/scenarios/csv-build-publication.md +62 -0
  113. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/scenarios/register-query-export.md +54 -0
  114. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_content/scenarios/sample-csv-tutorial.md +67 -0
  115. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_search.py +256 -0
  116. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/help_topics.py +285 -0
  117. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/__init__.py +61 -0
  118. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/cancel.py +188 -0
  119. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/dispatcher.py +394 -0
  120. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/errors.py +100 -0
  121. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/events.py +94 -0
  122. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/handlers.py +141 -0
  123. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/kinds.py +66 -0
  124. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/leases.py +354 -0
  125. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/process_target.py +172 -0
  126. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/reconcile.py +546 -0
  127. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/secret_transport.py +315 -0
  128. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/jobs/service.py +515 -0
  129. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/libs/__init__.py +5 -0
  130. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/libs/etl_adapter.py +389 -0
  131. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/libs/operator_bindings.py +626 -0
  132. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/libs/warehouse_adapter.py +749 -0
  133. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/lock.py +191 -0
  134. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/loggingutil.py +181 -0
  135. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/__init__.py +43 -0
  136. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/archive.py +325 -0
  137. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/connection.py +82 -0
  138. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/errors.py +66 -0
  139. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/migrate.py +341 -0
  140. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/sanitize.py +108 -0
  141. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/store.py +4007 -0
  142. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/metadata/ulid.py +25 -0
  143. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/migrations/0001_r1_schema.sql +411 -0
  144. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/migrations/0002_j3_connection_kinds.sql +53 -0
  145. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/migrations/0003_draft_revision.sql +5 -0
  146. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/migrations/0004_external_etl_runs.sql +101 -0
  147. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/paths.py +594 -0
  148. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/resources.py +2116 -0
  149. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/security.py +116 -0
  150. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/server.py +118 -0
  151. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/session.py +200 -0
  152. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/__init__.py +41 -0
  153. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/capabilities.py +84 -0
  154. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/classify.py +196 -0
  155. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/errors.py +9 -0
  156. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/files.py +99 -0
  157. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/kinds.py +128 -0
  158. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/open.py +368 -0
  159. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/secrets.py +144 -0
  160. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/service.py +267 -0
  161. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/test_job.py +349 -0
  162. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/sources/validate.py +537 -0
  163. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/static_ui.py +149 -0
  164. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/tutorial_assets/customers-accounts.csv +3 -0
  165. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/tutorial_assets.py +148 -0
  166. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/ui_provenance.json +23 -0
  167. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/uploads.py +351 -0
  168. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/versions.py +216 -0
  169. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/web/assets/index-DxpRIJwX.css +1 -0
  170. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/web/assets/index-llEdo7MH.js +62 -0
  171. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/web/index.html +13 -0
  172. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app/worker.py +275 -0
  173. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/PKG-INFO +192 -0
  174. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/SOURCES.txt +195 -0
  175. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/dependency_links.txt +1 -0
  176. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/entry_points.txt +2 -0
  177. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/requires.txt +23 -0
  178. mini_atlas_graph_app-0.1.0/mini_atlas_graph_app.egg-info/top_level.txt +1 -0
  179. mini_atlas_graph_app-0.1.0/pyproject.toml +79 -0
  180. mini_atlas_graph_app-0.1.0/schema/api-v1.json +2909 -0
  181. mini_atlas_graph_app-0.1.0/scripts/assert_pypi_artifacts.py +71 -0
  182. mini_atlas_graph_app-0.1.0/scripts/assert_release_version.py +91 -0
  183. mini_atlas_graph_app-0.1.0/scripts/assert_source_pins.py +177 -0
  184. mini_atlas_graph_app-0.1.0/scripts/emit_ci_pins.py +64 -0
  185. mini_atlas_graph_app-0.1.0/scripts/export_api_v1_schema.py +9 -0
  186. mini_atlas_graph_app-0.1.0/scripts/install_smoke.py +1018 -0
  187. mini_atlas_graph_app-0.1.0/scripts/one_distribution_wheel.py +43 -0
  188. mini_atlas_graph_app-0.1.0/scripts/r1_analytics_streaming_probe.py +169 -0
  189. mini_atlas_graph_app-0.1.0/scripts/spikes/p0_01_duckdb_lock_matrix.py +649 -0
  190. mini_atlas_graph_app-0.1.0/scripts/spikes/p0_02_timeout_sandbox.py +563 -0
  191. mini_atlas_graph_app-0.1.0/scripts/spikes/p0_05_property_event_ts.py +137 -0
  192. mini_atlas_graph_app-0.1.0/scripts/validate_publish_workflow.py +200 -0
  193. mini_atlas_graph_app-0.1.0/scripts/validate_workflow.py +116 -0
  194. mini_atlas_graph_app-0.1.0/scripts/vendor_frontend.py +229 -0
  195. mini_atlas_graph_app-0.1.0/scripts/vendor_help.py +318 -0
  196. mini_atlas_graph_app-0.1.0/scripts/verify_distributions.py +331 -0
  197. mini_atlas_graph_app-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ include LICENSE
2
+ include README.md
3
+ include pyproject.toml
4
+ include graph_app_build.py
5
+ recursive-include mini_atlas_graph_app *.py
6
+ recursive-include mini_atlas_graph_app/migrations *.sql
7
+ recursive-include mini_atlas_graph_app/web *
8
+ include mini_atlas_graph_app/ui_provenance.json
9
+ recursive-include mini_atlas_graph_app/help *
10
+ recursive-include mini_atlas_graph_app/help_content *
11
+ recursive-include mini_atlas_graph_app/tutorial_assets *
12
+ recursive-include schema *
13
+ recursive-include scripts *.py
14
+ global-exclude *.py[cod]
15
+ global-exclude *.map
16
+ global-exclude .DS_Store
17
+ prune tests
18
+ prune .git
19
+ prune .venv
20
+ prune .pytest_cache
21
+ prune .github
22
+ prune .vite
@@ -0,0 +1,192 @@
1
+ Metadata-Version: 2.4
2
+ Name: mini-atlas-graph-app
3
+ Version: 0.1.0
4
+ Summary: Local Mini Atlas Graph app. One Waitress process serves the Flask API and the vendored compiled UI.
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/mini-atlas/mini-atlas-graph-api-flask-python
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Environment :: Web Environment
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Topic :: Scientific/Engineering
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: Flask<4,>=3
20
+ Requires-Dist: waitress<4,>=3
21
+ Requires-Dist: pydantic<3,>=2
22
+ Requires-Dist: platformdirs
23
+ Requires-Dist: tomli>=2; python_version < "3.11"
24
+ Requires-Dist: packaging
25
+ Requires-Dist: mini-atlas-graph-etl[warehouse]<0.4,>=0.3
26
+ Requires-Dist: mini-atlas-graph-warehouse<0.3,>=0.2
27
+ Requires-Dist: mini-atlas-graph-ingestor<0.4,>=0.3
28
+ Provides-Extra: postgres
29
+ Requires-Dist: psycopg[binary]<4,>=3; extra == "postgres"
30
+ Provides-Extra: odbc
31
+ Requires-Dist: pyodbc<6,>=5; extra == "odbc"
32
+ Provides-Extra: oracle
33
+ Requires-Dist: oracledb<4,>=2; extra == "oracle"
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest<9,>=8; extra == "dev"
36
+ Dynamic: license-file
37
+
38
+ # Mini Atlas Graph app
39
+
40
+ Single-user, loopback-bound, pip-installed Graph app. The console script is
41
+ `mini-atlas-graph`. Node, Docker, and Vite are **not** required at runtime.
42
+
43
+ ## Install and launch
44
+
45
+ Use a dedicated virtualenv. Install the wheel (and the three library wheels it
46
+ depends on) from the files you were given until a GitHub Release has been
47
+ published to PyPI. `.github/workflows/pypi-publish.yml` is that publisher;
48
+ ordinary pushes and pull requests do not upload.
49
+
50
+ ```text
51
+ python3 -m venv .venv
52
+ source .venv/bin/activate
53
+ pip install mini_atlas_graph_etl-*.whl mini_atlas_graph_warehouse-*.whl mini_atlas_graph_ingestor-*.whl
54
+ pip install mini_atlas_graph_app-0.1.0-py3-none-any.whl
55
+ ```
56
+
57
+ Launch from a working directory that is **not** a source checkout, with an
58
+ empty `PYTHONPATH`, so imports resolve from site-packages:
59
+
60
+ ```text
61
+ unset PYTHONPATH
62
+ mini-atlas-graph serve --data-dir /path/to/data
63
+ ```
64
+
65
+ `serve` binds to loopback (`127.0.0.1:8765` by default) and prints a launch
66
+ URL whose token lives in the URL fragment. The bundled UI exchanges that
67
+ token once at `POST /api/v1/session` for an `HttpOnly; SameSite=Strict`
68
+ session cookie. API routes under `/api/v1` require that cookie. By default
69
+ `serve` opens the system browser with that launch URL. Use `--no-browser`
70
+ when you will paste the URL yourself.
71
+
72
+ Other commands:
73
+
74
+ ```text
75
+ mini-atlas-graph url --data-dir /path/to/data
76
+ mini-atlas-graph doctor --data-dir /path/to/data
77
+ mini-atlas-graph backup --data-dir /path/to/data --out backup.zip
78
+ mini-atlas-graph restore backup.zip --data-dir /path/to/empty
79
+ ```
80
+
81
+ `--data-dir` holds app metadata (`config.toml`, `metadata.sqlite`, recipes,
82
+ managed mapping/Avro files, jobs, uploads). Warehouse DuckDB files live under
83
+ configured `warehouse_roots`. CSV/SQLite/DuckDB **sources** live under
84
+ `input_roots`. Export folders live under `export_roots`. Create those folders
85
+ before the first launch, or let `serve` create a default layout and then edit
86
+ `config.toml`.
87
+
88
+ ## Optional extras and ODBC
89
+
90
+ Core install covers local CSV, SQLite, and local DuckDB SQL. Optional extras
91
+ in `pyproject.toml` are leftover names, not the R1 source set:
92
+
93
+ | Extra | What it installs | What it does **not** prove |
94
+ | --- | --- | --- |
95
+ | `[odbc]` | `pyodbc` | An OS driver, a DSN, or a live SQL Server / BigQuery session |
96
+ | `[postgres]` | `psycopg` | PostgreSQL is **not** an R1 source |
97
+ | `[oracle]` | `oracledb` | Oracle is **not** an R1 source |
98
+
99
+ SQL Server and BigQuery connection **shapes** exist. Live corporate
100
+ authentication is unverified. Importable `pyodbc` is not an OS driver.
101
+ Expired GCP auth for BigQuery is handled outside this app; there is no
102
+ in-app Google login.
103
+
104
+ ## Backup exclusions
105
+
106
+ `backup` writes `metadata.sqlite` (SQLite backup API), `recipes/`,
107
+ `managed/` mapping and Avro files, and `config.toml`. Pass
108
+ `--include-artifacts` to add `jobs/`, `runs/`, `exports/`, `uploads/`,
109
+ `imports/`, and `logs/`. **Never** copied: warehouse DuckDB files, operator
110
+ Python modules, host CSVs under `input_roots`, `instance.lock`,
111
+ `runtime.json`, and launch tokens. Restore only into a new or empty
112
+ directory; then launch that directory. Host source files used by recipes
113
+ must still be reachable under the restored app's `input_roots`.
114
+
115
+ ## Trusted operator bindings
116
+
117
+ CSV wizard **names** can select callables from a trusted operator-bindings
118
+ module listed in Settings. The browser cannot upload Python. Changing or
119
+ deleting that module fails the next run explicitly. Treat the module path as
120
+ operator-controlled code, not an app sandbox.
121
+
122
+ Resume is a Run History action on an interrupted run. GraphETL validates
123
+ saved progress when Resume starts and may replay work since the last
124
+ completed round. A checkpoint filename is not a restored graph.
125
+
126
+ ## HTTP API contract (F-A4)
127
+
128
+ `schema/api-v1.json` is generated from
129
+ `mini_atlas_graph_app/contracts/models.py`. Those models cover the F-06 / J1
130
+ graph-web HTTP **subset** (graphs, jobs, slice preview, exports, and related
131
+ types). They do **not** describe the expanded first-release surface:
132
+ SQL console, external ETL, config-files, backup/restore, Help search,
133
+ analytics import, Expansion/Resume, mapping/Avro, and related routes.
134
+
135
+ `npm run check:api-types` in the webapp checks the generated TypeScript
136
+ client against that pinned subset. Additional contracts live in handwritten
137
+ webapp modules (`src/api/*.ts`) and API tests. Do not treat the OpenAPI file
138
+ as the entire current API.
139
+
140
+ ## Path picker, uploads, jobs
141
+
142
+ Authenticated picker routes `GET /api/v1/fs/roots` and `GET /api/v1/fs/list`
143
+ stay inside operator-configured roots. A list inspects at most 2000 directory
144
+ entries and returns at most 500 matches. When `scan_complete` is false the
145
+ page is a partial scan, not the first 500 names in the folder. Bounded
146
+ uploads go to `data/uploads/<upload_id>/` via `POST /api/v1/uploads` and are
147
+ removed by id with `DELETE /api/v1/uploads/<upload_id>`. Absolute host paths
148
+ never appear in URLs.
149
+
150
+ Jobs are submitted only through the internal `submit_job` / `JobService`
151
+ interface. Workers run as `python -m mini_atlas_graph_app.worker <job_id>`.
152
+ Authenticated reads are `GET /api/v1/jobs`, `GET /api/v1/jobs/<id>`, and
153
+ `GET /api/v1/jobs/<id>/events`.
154
+
155
+ ## Known limitations
156
+
157
+ - Windows checkpoint legs were **not run** for this cut (not passed).
158
+ - Live SQL Server and BigQuery remain **unverified**.
159
+ - HTTP publication admission still content-hashes Parquet on the request
160
+ thread (fail-closed). Light jobs share one slot. Job directories are
161
+ retained.
162
+ - Multi-user / shared-server mode is withdrawn. Keep launch-token session
163
+ and Host/Origin checks.
164
+ - Warehouse-upgrade UI (P2-08) is deferred. Rebuild current warehouses
165
+ rather than in-place upgrade.
166
+
167
+ ## Packaging a wheel (maintainers)
168
+
169
+ Release wheels vendor the compiled UI and a curated library-help snapshot.
170
+ Build those assets first:
171
+
172
+ ```text
173
+ python scripts/vendor_frontend.py --dist <webapp>/dist --commit <pinned-sha> --version <ui-version>
174
+ python scripts/vendor_help.py
175
+ python -m build
176
+ ```
177
+
178
+ Wheel and sdist builds refuse missing, extra, or tampered vendored frontend
179
+ and help files. Editable installs still work without `web/` and without Node.
180
+ `scripts/install_smoke.py` is the local installed-wheel proof.
181
+ `.github/workflows/installed-wheel.yml` is Ubuntu/macOS/Windows clean-venv
182
+ smoke; it is not a release or PyPI publish workflow.
183
+ `.github/workflows/pypi-publish.yml` vendors the same fail-closed UI, Help,
184
+ tutorial assets, and migrations, then publishes the wheel and sdist to PyPI
185
+ only when a GitHub Release is published. The release tag must be `v` plus the
186
+ exact `pyproject.toml` version. Register a PyPI Trusted Publisher for GitHub
187
+ environment `pypi` before the first upload; do not add a PyPI API-token secret.
188
+
189
+ Help and UI sources are commit-pinned in `graph_app_build.py`.
190
+ `scripts/vendor_help.py` and `scripts/assert_source_pins.py` refuse a
191
+ checkout whose HEAD is not that commit. See `docs/F07_SIBLING_CHECKOUT.md`
192
+ and `docs/F07_MIGRATION_PRESENCE.md`.
@@ -0,0 +1,155 @@
1
+ # Mini Atlas Graph app
2
+
3
+ Single-user, loopback-bound, pip-installed Graph app. The console script is
4
+ `mini-atlas-graph`. Node, Docker, and Vite are **not** required at runtime.
5
+
6
+ ## Install and launch
7
+
8
+ Use a dedicated virtualenv. Install the wheel (and the three library wheels it
9
+ depends on) from the files you were given until a GitHub Release has been
10
+ published to PyPI. `.github/workflows/pypi-publish.yml` is that publisher;
11
+ ordinary pushes and pull requests do not upload.
12
+
13
+ ```text
14
+ python3 -m venv .venv
15
+ source .venv/bin/activate
16
+ pip install mini_atlas_graph_etl-*.whl mini_atlas_graph_warehouse-*.whl mini_atlas_graph_ingestor-*.whl
17
+ pip install mini_atlas_graph_app-0.1.0-py3-none-any.whl
18
+ ```
19
+
20
+ Launch from a working directory that is **not** a source checkout, with an
21
+ empty `PYTHONPATH`, so imports resolve from site-packages:
22
+
23
+ ```text
24
+ unset PYTHONPATH
25
+ mini-atlas-graph serve --data-dir /path/to/data
26
+ ```
27
+
28
+ `serve` binds to loopback (`127.0.0.1:8765` by default) and prints a launch
29
+ URL whose token lives in the URL fragment. The bundled UI exchanges that
30
+ token once at `POST /api/v1/session` for an `HttpOnly; SameSite=Strict`
31
+ session cookie. API routes under `/api/v1` require that cookie. By default
32
+ `serve` opens the system browser with that launch URL. Use `--no-browser`
33
+ when you will paste the URL yourself.
34
+
35
+ Other commands:
36
+
37
+ ```text
38
+ mini-atlas-graph url --data-dir /path/to/data
39
+ mini-atlas-graph doctor --data-dir /path/to/data
40
+ mini-atlas-graph backup --data-dir /path/to/data --out backup.zip
41
+ mini-atlas-graph restore backup.zip --data-dir /path/to/empty
42
+ ```
43
+
44
+ `--data-dir` holds app metadata (`config.toml`, `metadata.sqlite`, recipes,
45
+ managed mapping/Avro files, jobs, uploads). Warehouse DuckDB files live under
46
+ configured `warehouse_roots`. CSV/SQLite/DuckDB **sources** live under
47
+ `input_roots`. Export folders live under `export_roots`. Create those folders
48
+ before the first launch, or let `serve` create a default layout and then edit
49
+ `config.toml`.
50
+
51
+ ## Optional extras and ODBC
52
+
53
+ Core install covers local CSV, SQLite, and local DuckDB SQL. Optional extras
54
+ in `pyproject.toml` are leftover names, not the R1 source set:
55
+
56
+ | Extra | What it installs | What it does **not** prove |
57
+ | --- | --- | --- |
58
+ | `[odbc]` | `pyodbc` | An OS driver, a DSN, or a live SQL Server / BigQuery session |
59
+ | `[postgres]` | `psycopg` | PostgreSQL is **not** an R1 source |
60
+ | `[oracle]` | `oracledb` | Oracle is **not** an R1 source |
61
+
62
+ SQL Server and BigQuery connection **shapes** exist. Live corporate
63
+ authentication is unverified. Importable `pyodbc` is not an OS driver.
64
+ Expired GCP auth for BigQuery is handled outside this app; there is no
65
+ in-app Google login.
66
+
67
+ ## Backup exclusions
68
+
69
+ `backup` writes `metadata.sqlite` (SQLite backup API), `recipes/`,
70
+ `managed/` mapping and Avro files, and `config.toml`. Pass
71
+ `--include-artifacts` to add `jobs/`, `runs/`, `exports/`, `uploads/`,
72
+ `imports/`, and `logs/`. **Never** copied: warehouse DuckDB files, operator
73
+ Python modules, host CSVs under `input_roots`, `instance.lock`,
74
+ `runtime.json`, and launch tokens. Restore only into a new or empty
75
+ directory; then launch that directory. Host source files used by recipes
76
+ must still be reachable under the restored app's `input_roots`.
77
+
78
+ ## Trusted operator bindings
79
+
80
+ CSV wizard **names** can select callables from a trusted operator-bindings
81
+ module listed in Settings. The browser cannot upload Python. Changing or
82
+ deleting that module fails the next run explicitly. Treat the module path as
83
+ operator-controlled code, not an app sandbox.
84
+
85
+ Resume is a Run History action on an interrupted run. GraphETL validates
86
+ saved progress when Resume starts and may replay work since the last
87
+ completed round. A checkpoint filename is not a restored graph.
88
+
89
+ ## HTTP API contract (F-A4)
90
+
91
+ `schema/api-v1.json` is generated from
92
+ `mini_atlas_graph_app/contracts/models.py`. Those models cover the F-06 / J1
93
+ graph-web HTTP **subset** (graphs, jobs, slice preview, exports, and related
94
+ types). They do **not** describe the expanded first-release surface:
95
+ SQL console, external ETL, config-files, backup/restore, Help search,
96
+ analytics import, Expansion/Resume, mapping/Avro, and related routes.
97
+
98
+ `npm run check:api-types` in the webapp checks the generated TypeScript
99
+ client against that pinned subset. Additional contracts live in handwritten
100
+ webapp modules (`src/api/*.ts`) and API tests. Do not treat the OpenAPI file
101
+ as the entire current API.
102
+
103
+ ## Path picker, uploads, jobs
104
+
105
+ Authenticated picker routes `GET /api/v1/fs/roots` and `GET /api/v1/fs/list`
106
+ stay inside operator-configured roots. A list inspects at most 2000 directory
107
+ entries and returns at most 500 matches. When `scan_complete` is false the
108
+ page is a partial scan, not the first 500 names in the folder. Bounded
109
+ uploads go to `data/uploads/<upload_id>/` via `POST /api/v1/uploads` and are
110
+ removed by id with `DELETE /api/v1/uploads/<upload_id>`. Absolute host paths
111
+ never appear in URLs.
112
+
113
+ Jobs are submitted only through the internal `submit_job` / `JobService`
114
+ interface. Workers run as `python -m mini_atlas_graph_app.worker <job_id>`.
115
+ Authenticated reads are `GET /api/v1/jobs`, `GET /api/v1/jobs/<id>`, and
116
+ `GET /api/v1/jobs/<id>/events`.
117
+
118
+ ## Known limitations
119
+
120
+ - Windows checkpoint legs were **not run** for this cut (not passed).
121
+ - Live SQL Server and BigQuery remain **unverified**.
122
+ - HTTP publication admission still content-hashes Parquet on the request
123
+ thread (fail-closed). Light jobs share one slot. Job directories are
124
+ retained.
125
+ - Multi-user / shared-server mode is withdrawn. Keep launch-token session
126
+ and Host/Origin checks.
127
+ - Warehouse-upgrade UI (P2-08) is deferred. Rebuild current warehouses
128
+ rather than in-place upgrade.
129
+
130
+ ## Packaging a wheel (maintainers)
131
+
132
+ Release wheels vendor the compiled UI and a curated library-help snapshot.
133
+ Build those assets first:
134
+
135
+ ```text
136
+ python scripts/vendor_frontend.py --dist <webapp>/dist --commit <pinned-sha> --version <ui-version>
137
+ python scripts/vendor_help.py
138
+ python -m build
139
+ ```
140
+
141
+ Wheel and sdist builds refuse missing, extra, or tampered vendored frontend
142
+ and help files. Editable installs still work without `web/` and without Node.
143
+ `scripts/install_smoke.py` is the local installed-wheel proof.
144
+ `.github/workflows/installed-wheel.yml` is Ubuntu/macOS/Windows clean-venv
145
+ smoke; it is not a release or PyPI publish workflow.
146
+ `.github/workflows/pypi-publish.yml` vendors the same fail-closed UI, Help,
147
+ tutorial assets, and migrations, then publishes the wheel and sdist to PyPI
148
+ only when a GitHub Release is published. The release tag must be `v` plus the
149
+ exact `pyproject.toml` version. Register a PyPI Trusted Publisher for GitHub
150
+ environment `pypi` before the first upload; do not add a PyPI API-token secret.
151
+
152
+ Help and UI sources are commit-pinned in `graph_app_build.py`.
153
+ `scripts/vendor_help.py` and `scripts/assert_source_pins.py` refuse a
154
+ checkout whose HEAD is not that commit. See `docs/F07_SIBLING_CHECKOUT.md`
155
+ and `docs/F07_MIGRATION_PRESENCE.md`.