flow-compute 0.0.1__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 (999) hide show
  1. flow_compute-0.0.1/.cache/uv/.gitignore +1 -0
  2. flow_compute-0.0.1/.cache/uv/CACHEDIR.TAG +1 -0
  3. flow_compute-0.0.1/.cache/uv/interpreter-v4/3f8e6472c467bf22/87e75c80a638d28d.msgpack +0 -0
  4. flow_compute-0.0.1/.cache/uv/sdists-v9/.git +0 -0
  5. flow_compute-0.0.1/.cache/uv/sdists-v9/.gitignore +0 -0
  6. flow_compute-0.0.1/.claude/settings.local.json +31 -0
  7. flow_compute-0.0.1/.flowignore +96 -0
  8. flow_compute-0.0.1/.github/workflows/publish.yml +59 -0
  9. flow_compute-0.0.1/.gitignore +123 -0
  10. flow_compute-0.0.1/CONTRIBUTING.md +82 -0
  11. flow_compute-0.0.1/LICENSE.txt +202 -0
  12. flow_compute-0.0.1/Makefile +31 -0
  13. flow_compute-0.0.1/PKG-INFO +956 -0
  14. flow_compute-0.0.1/README.md +891 -0
  15. flow_compute-0.0.1/README_v2.md +232 -0
  16. flow_compute-0.0.1/RELEASE.md +79 -0
  17. flow_compute-0.0.1/SECURITY.md +23 -0
  18. flow_compute-0.0.1/TESTING.md +77 -0
  19. flow_compute-0.0.1/analyze_bids.py +122 -0
  20. flow_compute-0.0.1/api_sketch.md +500 -0
  21. flow_compute-0.0.1/docs/API_REFERENCE.md +581 -0
  22. flow_compute-0.0.1/docs/README.md +99 -0
  23. flow_compute-0.0.1/docs/USER_GUIDE.md +301 -0
  24. flow_compute-0.0.1/docs/architecture/ARCHITECTURE.md +429 -0
  25. flow_compute-0.0.1/docs/architecture/ARCHITECTURE_OVERVIEW.md +145 -0
  26. flow_compute-0.0.1/docs/architecture/README.md +22 -0
  27. flow_compute-0.0.1/docs/background.md +11 -0
  28. flow_compute-0.0.1/docs/cli/cancel-command.md +108 -0
  29. flow_compute-0.0.1/docs/getting-started/authentication.md +299 -0
  30. flow_compute-0.0.1/docs/getting-started/core-concepts.md +352 -0
  31. flow_compute-0.0.1/docs/getting-started/first-gpu-job.md +314 -0
  32. flow_compute-0.0.1/docs/getting-started/installation.md +105 -0
  33. flow_compute-0.0.1/docs/getting-started/quickstart.md +204 -0
  34. flow_compute-0.0.1/docs/guid es/INSTANCE_TYPE_CONVENTIONS.md +0 -0
  35. flow_compute-0.0.1/docs/guides/CONFIGURATION.md +85 -0
  36. flow_compute-0.0.1/docs/guides/DATA_HANDLING.md +284 -0
  37. flow_compute-0.0.1/docs/guides/DATA_MOUNTING_GUIDE.md +383 -0
  38. flow_compute-0.0.1/docs/guides/HEALTH_MONITORING.md +257 -0
  39. flow_compute-0.0.1/docs/guides/INSTANCE_TYPE_CONVENTIONS.md +134 -0
  40. flow_compute-0.0.1/docs/guides/INVOKER_PATTERN.md +145 -0
  41. flow_compute-0.0.1/docs/guides/INVOKE_BEST_PRACTICES.md +286 -0
  42. flow_compute-0.0.1/docs/guides/MANUAL_GPUD_SETUP.md +72 -0
  43. flow_compute-0.0.1/docs/guides/README.md +54 -0
  44. flow_compute-0.0.1/docs/guides/decorator-pattern.md +59 -0
  45. flow_compute-0.0.1/docs/guides/running-jobs.md +526 -0
  46. flow_compute-0.0.1/docs/guides/slurm-migration.md +197 -0
  47. flow_compute-0.0.1/docs/integrations/README.md +8 -0
  48. flow_compute-0.0.1/docs/integrations/pulumi/PULUMI_INTEGRATION.md +132 -0
  49. flow_compute-0.0.1/docs/integrations/pulumi/PULUMI_PATTERN.md +120 -0
  50. flow_compute-0.0.1/docs/integrations/pulumi/PULUMI_XAI_RECOMMENDATION.md +121 -0
  51. flow_compute-0.0.1/docs/integrations/pulumi/README.md +27 -0
  52. flow_compute-0.0.1/docs/integrations/pulumi/examples/basic.py +16 -0
  53. flow_compute-0.0.1/docs/integrations/pulumi/examples/infrastructure.py +111 -0
  54. flow_compute-0.0.1/docs/provider-manifest-guide.md +321 -0
  55. flow_compute-0.0.1/docs/quickstart/COMPARISON_REPORT.md +193 -0
  56. flow_compute-0.0.1/docs/quickstart/IMPLEMENTATION_SUMMARY.md +141 -0
  57. flow_compute-0.0.1/docs/quickstart/_shared/cost-estimates.md +276 -0
  58. flow_compute-0.0.1/docs/quickstart/_shared/gpu-validation.py +338 -0
  59. flow_compute-0.0.1/docs/quickstart/cli/fine-tuning.md +534 -0
  60. flow_compute-0.0.1/docs/quickstart/cli/inference.md +484 -0
  61. flow_compute-0.0.1/docs/quickstart/cli/slurm-migration.md +433 -0
  62. flow_compute-0.0.1/docs/quickstart/cli/training.md +623 -0
  63. flow_compute-0.0.1/docs/quickstart/iac/examples/README.md +151 -0
  64. flow_compute-0.0.1/docs/quickstart/iac/examples/pulumi-typescript/Pulumi.yaml +6 -0
  65. flow_compute-0.0.1/docs/quickstart/iac/examples/pulumi-typescript/README.md +82 -0
  66. flow_compute-0.0.1/docs/quickstart/iac/examples/pulumi-typescript/index.ts +60 -0
  67. flow_compute-0.0.1/docs/quickstart/iac/examples/pulumi-typescript/package.json +20 -0
  68. flow_compute-0.0.1/docs/quickstart/iac/examples/terraform-basic/README.md +56 -0
  69. flow_compute-0.0.1/docs/quickstart/iac/examples/terraform-basic/main.tf +63 -0
  70. flow_compute-0.0.1/docs/quickstart/iac/examples/terraform-production/environments/prod/main.tf +228 -0
  71. flow_compute-0.0.1/docs/quickstart/iac/examples/terraform-production/modules/flow-task/main.tf +188 -0
  72. flow_compute-0.0.1/docs/quickstart/iac/pulumi.md +741 -0
  73. flow_compute-0.0.1/docs/quickstart/iac/terraform.md +698 -0
  74. flow_compute-0.0.1/docs/quickstart/index.md +190 -0
  75. flow_compute-0.0.1/docs/quickstart/notebook/fine-tuning.ipynb +1081 -0
  76. flow_compute-0.0.1/docs/quickstart/notebook/getting-started.ipynb +419 -0
  77. flow_compute-0.0.1/docs/quickstart/notebook/inference.ipynb +725 -0
  78. flow_compute-0.0.1/docs/quickstart/notebook/training.ipynb +1081 -0
  79. flow_compute-0.0.1/docs/quickstart/sdk/fine-tuning.md +692 -0
  80. flow_compute-0.0.1/docs/quickstart/sdk/inference.md +337 -0
  81. flow_compute-0.0.1/docs/quickstart/sdk/training.md +583 -0
  82. flow_compute-0.0.1/docs/troubleshooting/COLAB_TROUBLESHOOTING.md +169 -0
  83. flow_compute-0.0.1/docs/troubleshooting/README.md +38 -0
  84. flow_compute-0.0.1/docs/troubleshooting/common-errors.md +75 -0
  85. flow_compute-0.0.1/examples/01_basics/SLURM_ADAPTER_DEMO.md +61 -0
  86. flow_compute-0.0.1/examples/01_basics/cancel_task.py +64 -0
  87. flow_compute-0.0.1/examples/01_basics/gpu_test_slurm.sh +59 -0
  88. flow_compute-0.0.1/examples/01_basics/gpu_training_slurm.sh +56 -0
  89. flow_compute-0.0.1/examples/01_basics/hello_gpu.py +118 -0
  90. flow_compute-0.0.1/examples/01_basics/instance_types.py +132 -0
  91. flow_compute-0.0.1/examples/01_basics/task_lifecycle.py +251 -0
  92. flow_compute-0.0.1/examples/02_storage/data_pipeline.py +260 -0
  93. flow_compute-0.0.1/examples/03_development/jupyter_server.py +180 -0
  94. flow_compute-0.0.1/examples/03_development/local_testing.py +233 -0
  95. flow_compute-0.0.1/examples/04_distributed/multi_node.py +234 -0
  96. flow_compute-0.0.1/examples/05_monarch_integration/README.md +65 -0
  97. flow_compute-0.0.1/examples/05_monarch_integration/basic_allocation.py +88 -0
  98. flow_compute-0.0.1/examples/05_monarch_integration/basic_monarch_flow.py +165 -0
  99. flow_compute-0.0.1/examples/05_monarch_integration/distributed_training.py +342 -0
  100. flow_compute-0.0.1/examples/05_production/logging_patterns.py +169 -0
  101. flow_compute-0.0.1/examples/README.md +98 -0
  102. flow_compute-0.0.1/examples/configs/basic.yaml +33 -0
  103. flow_compute-0.0.1/examples/configs/full_example.yaml +181 -0
  104. flow_compute-0.0.1/examples/configs/gpu_instance.yaml +61 -0
  105. flow_compute-0.0.1/examples/configs/multi_node.yaml +60 -0
  106. flow_compute-0.0.1/examples/configs/single_node_multi_gpu.yaml +30 -0
  107. flow_compute-0.0.1/examples/dev_environment.py +61 -0
  108. flow_compute-0.0.1/examples/dev_environment_advanced.py +122 -0
  109. flow_compute-0.0.1/examples/notebooks/2_configuration_auth.ipynb +697 -0
  110. flow_compute-0.0.1/examples/notebooks/3_frontends_comparison.ipynb +828 -0
  111. flow_compute-0.0.1/examples/notebooks/4_advanced_features.ipynb +775 -0
  112. flow_compute-0.0.1/examples/notebooks/5_real_world_examples.ipynb +1118 -0
  113. flow_compute-0.0.1/examples/notebooks/README.md +136 -0
  114. flow_compute-0.0.1/examples/provider-manifest-example.py +160 -0
  115. flow_compute-0.0.1/llms.txt +1615 -0
  116. flow_compute-0.0.1/pyproject.toml +157 -0
  117. flow_compute-0.0.1/pytest.ini +71 -0
  118. flow_compute-0.0.1/setup-dev.sh +25 -0
  119. flow_compute-0.0.1/src/__init__.py +0 -0
  120. flow_compute-0.0.1/src/flow/__init__.py +143 -0
  121. flow_compute-0.0.1/src/flow/__main__.py +21 -0
  122. flow_compute-0.0.1/src/flow/_internal/auth.py +333 -0
  123. flow_compute-0.0.1/src/flow/_internal/config.py +257 -0
  124. flow_compute-0.0.1/src/flow/_internal/config_loader.py +302 -0
  125. flow_compute-0.0.1/src/flow/_internal/data/__init__.py +11 -0
  126. flow_compute-0.0.1/src/flow/_internal/data/loaders.py +303 -0
  127. flow_compute-0.0.1/src/flow/_internal/data/mount_processor.py +132 -0
  128. flow_compute-0.0.1/src/flow/_internal/data/resolver.py +106 -0
  129. flow_compute-0.0.1/src/flow/_internal/frontends/__init__.py +10 -0
  130. flow_compute-0.0.1/src/flow/_internal/frontends/base.py +72 -0
  131. flow_compute-0.0.1/src/flow/_internal/frontends/cli/__init__.py +9 -0
  132. flow_compute-0.0.1/src/flow/_internal/frontends/cli/adapter.py +173 -0
  133. flow_compute-0.0.1/src/flow/_internal/frontends/registry.py +58 -0
  134. flow_compute-0.0.1/src/flow/_internal/frontends/slurm/__init__.py +17 -0
  135. flow_compute-0.0.1/src/flow/_internal/frontends/slurm/adapter.py +168 -0
  136. flow_compute-0.0.1/src/flow/_internal/frontends/slurm/converter.py +238 -0
  137. flow_compute-0.0.1/src/flow/_internal/frontends/slurm/parser.py +373 -0
  138. flow_compute-0.0.1/src/flow/_internal/frontends/submitit/__init__.py +5 -0
  139. flow_compute-0.0.1/src/flow/_internal/frontends/submitit/adapter.py +312 -0
  140. flow_compute-0.0.1/src/flow/_internal/frontends/yaml/__init__.py +5 -0
  141. flow_compute-0.0.1/src/flow/_internal/frontends/yaml/adapter.py +281 -0
  142. flow_compute-0.0.1/src/flow/_internal/init/__init__.py +14 -0
  143. flow_compute-0.0.1/src/flow/_internal/init/resolver.py +77 -0
  144. flow_compute-0.0.1/src/flow/_internal/init/validator.py +147 -0
  145. flow_compute-0.0.1/src/flow/_internal/init/writer.py +174 -0
  146. flow_compute-0.0.1/src/flow/_internal/integrations/__init__.py +43 -0
  147. flow_compute-0.0.1/src/flow/_internal/integrations/google_colab.py +408 -0
  148. flow_compute-0.0.1/src/flow/_internal/integrations/jupyter.py +530 -0
  149. flow_compute-0.0.1/src/flow/_internal/integrations/jupyter_persistence.py +343 -0
  150. flow_compute-0.0.1/src/flow/_internal/integrations/jupyter_session.py +207 -0
  151. flow_compute-0.0.1/src/flow/_internal/integrations/monarch.py +405 -0
  152. flow_compute-0.0.1/src/flow/_internal/integrations/monarch_adapter.py +344 -0
  153. flow_compute-0.0.1/src/flow/_internal/io/__init__.py +22 -0
  154. flow_compute-0.0.1/src/flow/_internal/io/http.py +216 -0
  155. flow_compute-0.0.1/src/flow/_internal/io/http_interfaces.py +76 -0
  156. flow_compute-0.0.1/src/flow/_internal/managers/__init__.py +5 -0
  157. flow_compute-0.0.1/src/flow/_internal/managers/task_manager.py +275 -0
  158. flow_compute-0.0.1/src/flow/_internal/storage/__init__.py +17 -0
  159. flow_compute-0.0.1/src/flow/_internal/storage/base.py +107 -0
  160. flow_compute-0.0.1/src/flow/_internal/storage/resolvers.py +158 -0
  161. flow_compute-0.0.1/src/flow/adapters/fcp_setup_adapter.py +333 -0
  162. flow_compute-0.0.1/src/flow/api/__init__.py +8 -0
  163. flow_compute-0.0.1/src/flow/api/client.py +1588 -0
  164. flow_compute-0.0.1/src/flow/api/decorators.py +778 -0
  165. flow_compute-0.0.1/src/flow/api/dev.py +545 -0
  166. flow_compute-0.0.1/src/flow/api/health_models.py +296 -0
  167. flow_compute-0.0.1/src/flow/api/invoke.py +693 -0
  168. flow_compute-0.0.1/src/flow/api/models.py +1489 -0
  169. flow_compute-0.0.1/src/flow/api/secrets.py +221 -0
  170. flow_compute-0.0.1/src/flow/api/ssh_utils.py +154 -0
  171. flow_compute-0.0.1/src/flow/bridge/__init__.py +173 -0
  172. flow_compute-0.0.1/src/flow/bridge/adapters.py +19 -0
  173. flow_compute-0.0.1/src/flow/bridge/base.py +27 -0
  174. flow_compute-0.0.1/src/flow/bridge/config.py +193 -0
  175. flow_compute-0.0.1/src/flow/bridge/fcp_api.py +289 -0
  176. flow_compute-0.0.1/src/flow/bridge/formatter.py +172 -0
  177. flow_compute-0.0.1/src/flow/bridge/http.py +126 -0
  178. flow_compute-0.0.1/src/flow/cli/__init__.py +27 -0
  179. flow_compute-0.0.1/src/flow/cli/__main__.py +8 -0
  180. flow_compute-0.0.1/src/flow/cli/app.py +147 -0
  181. flow_compute-0.0.1/src/flow/cli/commands/README.md +98 -0
  182. flow_compute-0.0.1/src/flow/cli/commands/__init__.py +66 -0
  183. flow_compute-0.0.1/src/flow/cli/commands/_init_components/__init__.py +25 -0
  184. flow_compute-0.0.1/src/flow/cli/commands/_init_components/config_analyzer.py +238 -0
  185. flow_compute-0.0.1/src/flow/cli/commands/_init_components/setup_components.py +579 -0
  186. flow_compute-0.0.1/src/flow/cli/commands/base.py +97 -0
  187. flow_compute-0.0.1/src/flow/cli/commands/cancel.py +431 -0
  188. flow_compute-0.0.1/src/flow/cli/commands/dev.py +1050 -0
  189. flow_compute-0.0.1/src/flow/cli/commands/example.py +257 -0
  190. flow_compute-0.0.1/src/flow/cli/commands/feedback.py +135 -0
  191. flow_compute-0.0.1/src/flow/cli/commands/grab.py +453 -0
  192. flow_compute-0.0.1/src/flow/cli/commands/health.py +1281 -0
  193. flow_compute-0.0.1/src/flow/cli/commands/init.py +403 -0
  194. flow_compute-0.0.1/src/flow/cli/commands/logs.py +409 -0
  195. flow_compute-0.0.1/src/flow/cli/commands/mount.py +434 -0
  196. flow_compute-0.0.1/src/flow/cli/commands/release.py +354 -0
  197. flow_compute-0.0.1/src/flow/cli/commands/run.py +528 -0
  198. flow_compute-0.0.1/src/flow/cli/commands/ssh.py +344 -0
  199. flow_compute-0.0.1/src/flow/cli/commands/ssh_keys.py +745 -0
  200. flow_compute-0.0.1/src/flow/cli/commands/status.py +290 -0
  201. flow_compute-0.0.1/src/flow/cli/commands/upload_code.py +201 -0
  202. flow_compute-0.0.1/src/flow/cli/commands/utils.py +173 -0
  203. flow_compute-0.0.1/src/flow/cli/commands/volumes.py +607 -0
  204. flow_compute-0.0.1/src/flow/cli/main.py +8 -0
  205. flow_compute-0.0.1/src/flow/cli/provider_resolver.py +193 -0
  206. flow_compute-0.0.1/src/flow/cli/utils/animated_progress.py +182 -0
  207. flow_compute-0.0.1/src/flow/cli/utils/animation_config.py +138 -0
  208. flow_compute-0.0.1/src/flow/cli/utils/animations.py +307 -0
  209. flow_compute-0.0.1/src/flow/cli/utils/clipboard.py +146 -0
  210. flow_compute-0.0.1/src/flow/cli/utils/config_validator.py +254 -0
  211. flow_compute-0.0.1/src/flow/cli/utils/ghost_completion.py +309 -0
  212. flow_compute-0.0.1/src/flow/cli/utils/gpu_formatter.py +355 -0
  213. flow_compute-0.0.1/src/flow/cli/utils/health_renderer.py +660 -0
  214. flow_compute-0.0.1/src/flow/cli/utils/hyperlink_support.py +272 -0
  215. flow_compute-0.0.1/src/flow/cli/utils/interactive_selector.py +930 -0
  216. flow_compute-0.0.1/src/flow/cli/utils/live_dashboard.py +454 -0
  217. flow_compute-0.0.1/src/flow/cli/utils/live_dashboard_simple.py +123 -0
  218. flow_compute-0.0.1/src/flow/cli/utils/mount_parser.py +165 -0
  219. flow_compute-0.0.1/src/flow/cli/utils/shell_completion.py +408 -0
  220. flow_compute-0.0.1/src/flow/cli/utils/ssh_key_cache.py +118 -0
  221. flow_compute-0.0.1/src/flow/cli/utils/table_styles.py +102 -0
  222. flow_compute-0.0.1/src/flow/cli/utils/task_fetcher.py +129 -0
  223. flow_compute-0.0.1/src/flow/cli/utils/task_filter.py +136 -0
  224. flow_compute-0.0.1/src/flow/cli/utils/task_formatter.py +248 -0
  225. flow_compute-0.0.1/src/flow/cli/utils/task_index_cache.py +153 -0
  226. flow_compute-0.0.1/src/flow/cli/utils/task_presenter.py +383 -0
  227. flow_compute-0.0.1/src/flow/cli/utils/task_renderer.py +481 -0
  228. flow_compute-0.0.1/src/flow/cli/utils/task_resolver.py +129 -0
  229. flow_compute-0.0.1/src/flow/cli/utils/task_selector_mixin.py +447 -0
  230. flow_compute-0.0.1/src/flow/cli/utils/terminal_adapter.py +366 -0
  231. flow_compute-0.0.1/src/flow/cli/utils/terminal_state_manager.py +140 -0
  232. flow_compute-0.0.1/src/flow/cli/utils/theme_manager.py +336 -0
  233. flow_compute-0.0.1/src/flow/cli/utils/time_formatter.py +122 -0
  234. flow_compute-0.0.1/src/flow/cli/utils/visual_constants.py +152 -0
  235. flow_compute-0.0.1/src/flow/cli/utils/volume_index_cache.py +148 -0
  236. flow_compute-0.0.1/src/flow/cli/utils/volume_operations.py +236 -0
  237. flow_compute-0.0.1/src/flow/cli/utils/volume_resolver.py +101 -0
  238. flow_compute-0.0.1/src/flow/core/__init__.py +33 -0
  239. flow_compute-0.0.1/src/flow/core/code_packager.py +127 -0
  240. flow_compute-0.0.1/src/flow/core/docker.py +69 -0
  241. flow_compute-0.0.1/src/flow/core/engine.py +243 -0
  242. flow_compute-0.0.1/src/flow/core/generic_setup_wizard.py +803 -0
  243. flow_compute-0.0.1/src/flow/core/provider_interfaces.py +702 -0
  244. flow_compute-0.0.1/src/flow/core/provider_setup.py +111 -0
  245. flow_compute-0.0.1/src/flow/core/resources/__init__.py +6 -0
  246. flow_compute-0.0.1/src/flow/core/resources/matcher.py +115 -0
  247. flow_compute-0.0.1/src/flow/core/resources/parser.py +82 -0
  248. flow_compute-0.0.1/src/flow/core/setup_adapters.py +140 -0
  249. flow_compute-0.0.1/src/flow/core/setup_registry.py +88 -0
  250. flow_compute-0.0.1/src/flow/core/ssh_resolver.py +259 -0
  251. flow_compute-0.0.1/src/flow/core/ssh_utils.py +139 -0
  252. flow_compute-0.0.1/src/flow/core/task_engine.py +438 -0
  253. flow_compute-0.0.1/src/flow/errors.py +919 -0
  254. flow_compute-0.0.1/src/flow/errors_pkg/__init__.py +4 -0
  255. flow_compute-0.0.1/src/flow/errors_pkg/messages.py +175 -0
  256. flow_compute-0.0.1/src/flow/health/__init__.py +1 -0
  257. flow_compute-0.0.1/src/flow/health/gpu_health_checker.py +349 -0
  258. flow_compute-0.0.1/src/flow/health/storage.py +558 -0
  259. flow_compute-0.0.1/src/flow/providers/__init__.py +32 -0
  260. flow_compute-0.0.1/src/flow/providers/base.py +177 -0
  261. flow_compute-0.0.1/src/flow/providers/factory.py +34 -0
  262. flow_compute-0.0.1/src/flow/providers/fcp/README.md +98 -0
  263. flow_compute-0.0.1/src/flow/providers/fcp/__init__.py +23 -0
  264. flow_compute-0.0.1/src/flow/providers/fcp/adapters/__init__.py +20 -0
  265. flow_compute-0.0.1/src/flow/providers/fcp/adapters/models.py +279 -0
  266. flow_compute-0.0.1/src/flow/providers/fcp/adapters/mounts.py +116 -0
  267. flow_compute-0.0.1/src/flow/providers/fcp/adapters/storage.py +93 -0
  268. flow_compute-0.0.1/src/flow/providers/fcp/api/__init__.py +31 -0
  269. flow_compute-0.0.1/src/flow/providers/fcp/api/handlers.py +171 -0
  270. flow_compute-0.0.1/src/flow/providers/fcp/api/types.py +170 -0
  271. flow_compute-0.0.1/src/flow/providers/fcp/bidding/__init__.py +28 -0
  272. flow_compute-0.0.1/src/flow/providers/fcp/bidding/builder.py +226 -0
  273. flow_compute-0.0.1/src/flow/providers/fcp/bidding/finder.py +386 -0
  274. flow_compute-0.0.1/src/flow/providers/fcp/bidding/manager.py +255 -0
  275. flow_compute-0.0.1/src/flow/providers/fcp/code_transfer.py +404 -0
  276. flow_compute-0.0.1/src/flow/providers/fcp/config.py +131 -0
  277. flow_compute-0.0.1/src/flow/providers/fcp/core/__init__.py +81 -0
  278. flow_compute-0.0.1/src/flow/providers/fcp/core/constants.py +295 -0
  279. flow_compute-0.0.1/src/flow/providers/fcp/core/errors.py +70 -0
  280. flow_compute-0.0.1/src/flow/providers/fcp/core/models.py +134 -0
  281. flow_compute-0.0.1/src/flow/providers/fcp/init.py +158 -0
  282. flow_compute-0.0.1/src/flow/providers/fcp/manifest.py +108 -0
  283. flow_compute-0.0.1/src/flow/providers/fcp/provider.py +3991 -0
  284. flow_compute-0.0.1/src/flow/providers/fcp/provider.py,cover +1718 -0
  285. flow_compute-0.0.1/src/flow/providers/fcp/remote_operations.py +611 -0
  286. flow_compute-0.0.1/src/flow/providers/fcp/resources/__init__.py +24 -0
  287. flow_compute-0.0.1/src/flow/providers/fcp/resources/gpu.py +57 -0
  288. flow_compute-0.0.1/src/flow/providers/fcp/resources/projects.py +161 -0
  289. flow_compute-0.0.1/src/flow/providers/fcp/resources/ssh.py +819 -0
  290. flow_compute-0.0.1/src/flow/providers/fcp/runtime/__init__.py +13 -0
  291. flow_compute-0.0.1/src/flow/providers/fcp/runtime/quota.py +47 -0
  292. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/__init__.py +26 -0
  293. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/exceptions.py +22 -0
  294. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/handler.py +434 -0
  295. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/models.py +35 -0
  296. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/strategies.py +222 -0
  297. flow_compute-0.0.1/src/flow/providers/fcp/runtime/script_size/templates.py +245 -0
  298. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/__init__.py +36 -0
  299. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/builder.py +349 -0
  300. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/constants.py +100 -0
  301. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/legacy.py +49 -0
  302. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/sections.py +1743 -0
  303. flow_compute-0.0.1/src/flow/providers/fcp/runtime/startup/templates.py +148 -0
  304. flow_compute-0.0.1/src/flow/providers/fcp/setup/__init__.py +6 -0
  305. flow_compute-0.0.1/src/flow/providers/fcp/setup/adapter.py +554 -0
  306. flow_compute-0.0.1/src/flow/providers/fcp/setup.py +433 -0
  307. flow_compute-0.0.1/src/flow/providers/fcp/ssh_utils.py +545 -0
  308. flow_compute-0.0.1/src/flow/providers/fcp/ssh_waiter.py +301 -0
  309. flow_compute-0.0.1/src/flow/providers/fcp/storage/__init__.py +24 -0
  310. flow_compute-0.0.1/src/flow/providers/fcp/storage/backends.py +713 -0
  311. flow_compute-0.0.1/src/flow/providers/fcp/storage/models.py +35 -0
  312. flow_compute-0.0.1/src/flow/providers/fcp/transfer_strategies.py +441 -0
  313. flow_compute-0.0.1/src/flow/providers/fcp/volume_operations.py +213 -0
  314. flow_compute-0.0.1/src/flow/providers/interfaces.py +127 -0
  315. flow_compute-0.0.1/src/flow/providers/local/__init__.py +25 -0
  316. flow_compute-0.0.1/src/flow/providers/local/config.py +134 -0
  317. flow_compute-0.0.1/src/flow/providers/local/executor.py +537 -0
  318. flow_compute-0.0.1/src/flow/providers/local/init.py +111 -0
  319. flow_compute-0.0.1/src/flow/providers/local/logs.py +260 -0
  320. flow_compute-0.0.1/src/flow/providers/local/manifest.py +90 -0
  321. flow_compute-0.0.1/src/flow/providers/local/provider.py +497 -0
  322. flow_compute-0.0.1/src/flow/providers/local/storage.py +151 -0
  323. flow_compute-0.0.1/src/flow/providers/registry.py +158 -0
  324. flow_compute-0.0.1/src/flow/utils/__init__.py +0 -0
  325. flow_compute-0.0.1/src/flow/utils/cache.py +128 -0
  326. flow_compute-0.0.1/src/flow/utils/circuit_breaker.py +108 -0
  327. flow_compute-0.0.1/src/flow/utils/exceptions.py +15 -0
  328. flow_compute-0.0.1/src/flow/utils/instance_parser.py +214 -0
  329. flow_compute-0.0.1/src/flow/utils/instance_type_validator.py +213 -0
  330. flow_compute-0.0.1/src/flow/utils/instance_validator.py +272 -0
  331. flow_compute-0.0.1/src/flow/utils/region_validator.py +32 -0
  332. flow_compute-0.0.1/src/flow/utils/retry.py +108 -0
  333. flow_compute-0.0.1/src/flow/utils/retry_helper.py +192 -0
  334. flow_compute-0.0.1/src/flow/utils/security.py +109 -0
  335. flow_compute-0.0.1/src/flow/utils/validation.py +171 -0
  336. flow_compute-0.0.1/test-gpu.yaml +8 -0
  337. flow_compute-0.0.1/test_jupyter_colab.py +446 -0
  338. flow_compute-0.0.1/test_jupyter_simple.py +146 -0
  339. flow_compute-0.0.1/tests/PROPOSED_STRUCTURE.md +56 -0
  340. flow_compute-0.0.1/tests/README.md +75 -0
  341. flow_compute-0.0.1/tests/REORGANIZATION_SUMMARY.md +77 -0
  342. flow_compute-0.0.1/tests/RESTRUCTURE_DETAILED_PLAN.md +263 -0
  343. flow_compute-0.0.1/tests/__init__.py +1 -0
  344. flow_compute-0.0.1/tests/config/mock_flow_config.yaml +7 -0
  345. flow_compute-0.0.1/tests/config/requirements-mock.txt +3 -0
  346. flow_compute-0.0.1/tests/conftest.py +269 -0
  347. flow_compute-0.0.1/tests/docs/README.md +423 -0
  348. flow_compute-0.0.1/tests/docs/README_MOCK_API.md +273 -0
  349. flow_compute-0.0.1/tests/docs/TEST_FIXES_SUMMARY.md +141 -0
  350. flow_compute-0.0.1/tests/fast/__init__.py +0 -0
  351. flow_compute-0.0.1/tests/fast/test_api_contracts.py +639 -0
  352. flow_compute-0.0.1/tests/fast/test_api_contracts_refactored.py +215 -0
  353. flow_compute-0.0.1/tests/fast/test_auth.py +448 -0
  354. flow_compute-0.0.1/tests/fast/test_basic.py +37 -0
  355. flow_compute-0.0.1/tests/fast/test_capability_selection.py +367 -0
  356. flow_compute-0.0.1/tests/fast/test_cli_commands.py +145 -0
  357. flow_compute-0.0.1/tests/fast/test_cli_commands_fixed.py +578 -0
  358. flow_compute-0.0.1/tests/fast/test_cli_commands_principled.py +275 -0
  359. flow_compute-0.0.1/tests/fast/test_cli_commands_status_fixed.py +302 -0
  360. flow_compute-0.0.1/tests/fast/test_cli_environment_isolation.py +230 -0
  361. flow_compute-0.0.1/tests/fast/test_cli_integration.py +60 -0
  362. flow_compute-0.0.1/tests/fast/test_cli_parsing.py +210 -0
  363. flow_compute-0.0.1/tests/fast/test_clock_skew_scenarios.py +328 -0
  364. flow_compute-0.0.1/tests/fast/test_code_packaging.py +167 -0
  365. flow_compute-0.0.1/tests/fast/test_complex_slurm.py +71 -0
  366. flow_compute-0.0.1/tests/fast/test_config.py +173 -0
  367. flow_compute-0.0.1/tests/fast/test_config_from_env.py +159 -0
  368. flow_compute-0.0.1/tests/fast/test_config_loader.py +198 -0
  369. flow_compute-0.0.1/tests/fast/test_decorator_real.py +516 -0
  370. flow_compute-0.0.1/tests/fast/test_decorator_thread_safety.py +58 -0
  371. flow_compute-0.0.1/tests/fast/test_dev_sdk.py +346 -0
  372. flow_compute-0.0.1/tests/fast/test_errors.py +116 -0
  373. flow_compute-0.0.1/tests/fast/test_example_validator.py +312 -0
  374. flow_compute-0.0.1/tests/fast/test_examples.py +333 -0
  375. flow_compute-0.0.1/tests/fast/test_extreme_scale_scenarios.py +452 -0
  376. flow_compute-0.0.1/tests/fast/test_fcp_error_handling.py +317 -0
  377. flow_compute-0.0.1/tests/fast/test_fcp_init.py +413 -0
  378. flow_compute-0.0.1/tests/fast/test_fcp_instance_resolution.py +149 -0
  379. flow_compute-0.0.1/tests/fast/test_fcp_mount_adapter.py +196 -0
  380. flow_compute-0.0.1/tests/fast/test_fcp_provider.py +132 -0
  381. flow_compute-0.0.1/tests/fast/test_fcp_provider_behavior.py +349 -0
  382. flow_compute-0.0.1/tests/fast/test_fcp_provider_initialization.py +121 -0
  383. flow_compute-0.0.1/tests/fast/test_fcp_provider_unit_fixed.py +606 -0
  384. flow_compute-0.0.1/tests/fast/test_fcp_provider_unit_updated.py +180 -0
  385. flow_compute-0.0.1/tests/fast/test_fcp_task_management.py +344 -0
  386. flow_compute-0.0.1/tests/fast/test_file_share_support.py +449 -0
  387. flow_compute-0.0.1/tests/fast/test_flow_find_instances.py +116 -0
  388. flow_compute-0.0.1/tests/fast/test_google_colab_integration.py +263 -0
  389. flow_compute-0.0.1/tests/fast/test_gpu_docker_fixes.py +165 -0
  390. flow_compute-0.0.1/tests/fast/test_gpu_docker_fixes_updated.py +178 -0
  391. flow_compute-0.0.1/tests/fast/test_gpu_parser.py +84 -0
  392. flow_compute-0.0.1/tests/fast/test_implementation_showcase.py +335 -0
  393. flow_compute-0.0.1/tests/fast/test_instance_matcher.py +99 -0
  394. flow_compute-0.0.1/tests/fast/test_instance_type_mapping.py +111 -0
  395. flow_compute-0.0.1/tests/fast/test_invoke_comprehensive.py +655 -0
  396. flow_compute-0.0.1/tests/fast/test_invoke_integration.py +127 -0
  397. flow_compute-0.0.1/tests/fast/test_invoke_retry.py +258 -0
  398. flow_compute-0.0.1/tests/fast/test_invoke_serialization.py +73 -0
  399. flow_compute-0.0.1/tests/fast/test_jupyter_integration.py +269 -0
  400. flow_compute-0.0.1/tests/fast/test_local_init.py +374 -0
  401. flow_compute-0.0.1/tests/fast/test_local_phase0.py +142 -0
  402. flow_compute-0.0.1/tests/fast/test_local_phase1.py +178 -0
  403. flow_compute-0.0.1/tests/fast/test_local_phase2.py +209 -0
  404. flow_compute-0.0.1/tests/fast/test_local_phase3.py +197 -0
  405. flow_compute-0.0.1/tests/fast/test_local_phase4.py +231 -0
  406. flow_compute-0.0.1/tests/fast/test_local_provider_full.py +109 -0
  407. flow_compute-0.0.1/tests/fast/test_logs.py +314 -0
  408. flow_compute-0.0.1/tests/fast/test_memory_leak_detection.py +616 -0
  409. flow_compute-0.0.1/tests/fast/test_models.py +420 -0
  410. flow_compute-0.0.1/tests/fast/test_models_property.py +899 -0
  411. flow_compute-0.0.1/tests/fast/test_monarch.py +339 -0
  412. flow_compute-0.0.1/tests/fast/test_monarch_adapter.py +411 -0
  413. flow_compute-0.0.1/tests/fast/test_mount_processor.py +212 -0
  414. flow_compute-0.0.1/tests/fast/test_mount_volume.py +259 -0
  415. flow_compute-0.0.1/tests/fast/test_multi_region_selection.py +277 -0
  416. flow_compute-0.0.1/tests/fast/test_network_failures.py +568 -0
  417. flow_compute-0.0.1/tests/fast/test_provider.py +202 -0
  418. flow_compute-0.0.1/tests/fast/test_provider_manifest.py +278 -0
  419. flow_compute-0.0.1/tests/fast/test_resolver.py +144 -0
  420. flow_compute-0.0.1/tests/fast/test_s3_script_section.py +122 -0
  421. flow_compute-0.0.1/tests/fast/test_s3_support.py +327 -0
  422. flow_compute-0.0.1/tests/fast/test_script_sections.py +459 -0
  423. flow_compute-0.0.1/tests/fast/test_script_size_handler.py +301 -0
  424. flow_compute-0.0.1/tests/fast/test_script_size_limits.py +196 -0
  425. flow_compute-0.0.1/tests/fast/test_security.py +135 -0
  426. flow_compute-0.0.1/tests/fast/test_slurm_adapter.py +75 -0
  427. flow_compute-0.0.1/tests/fast/test_slurm_parsing.py +82 -0
  428. flow_compute-0.0.1/tests/fast/test_ssh_key_auto_generation.py +301 -0
  429. flow_compute-0.0.1/tests/fast/test_ssh_key_manager_security.py +205 -0
  430. flow_compute-0.0.1/tests/fast/test_ssh_multi_node.py +308 -0
  431. flow_compute-0.0.1/tests/fast/test_ssh_preconditions.py +175 -0
  432. flow_compute-0.0.1/tests/fast/test_ssh_tunnel_concepts.py +142 -0
  433. flow_compute-0.0.1/tests/fast/test_ssh_waiter.py +200 -0
  434. flow_compute-0.0.1/tests/fast/test_startup_script_edge_cases.py +623 -0
  435. flow_compute-0.0.1/tests/fast/test_startup_script_fixes.py +156 -0
  436. flow_compute-0.0.1/tests/fast/test_submit_api.py +243 -0
  437. flow_compute-0.0.1/tests/fast/test_submitit_adapter.py +395 -0
  438. flow_compute-0.0.1/tests/fast/test_task_manager.py +468 -0
  439. flow_compute-0.0.1/tests/fast/test_task_manager_simple.py +176 -0
  440. flow_compute-0.0.1/tests/fast/test_task_resolver.py +226 -0
  441. flow_compute-0.0.1/tests/fast/test_task_submission.py +55 -0
  442. flow_compute-0.0.1/tests/fast/test_template_engine.py +187 -0
  443. flow_compute-0.0.1/tests/fast/test_transfer_strategies.py +288 -0
  444. flow_compute-0.0.1/tests/fast/test_unicode_edge_cases.py +440 -0
  445. flow_compute-0.0.1/tests/fast/test_upload_code.py +398 -0
  446. flow_compute-0.0.1/tests/fast/test_url_resolver.py +193 -0
  447. flow_compute-0.0.1/tests/fast/test_user_resolution.py +802 -0
  448. flow_compute-0.0.1/tests/fast/test_validation_errors.py +132 -0
  449. flow_compute-0.0.1/tests/fast/test_validator.py +157 -0
  450. flow_compute-0.0.1/tests/fast/test_volume_commands_comprehensive.py +543 -0
  451. flow_compute-0.0.1/tests/fast/test_workload_resume_section.py +166 -0
  452. flow_compute-0.0.1/tests/fast/test_writer.py +184 -0
  453. flow_compute-0.0.1/tests/fast/test_yaml_adapter.py +475 -0
  454. flow_compute-0.0.1/tests/slow/__init__.py +0 -0
  455. flow_compute-0.0.1/tests/slow/docker_caching/test_docker_persistent_storage.py +351 -0
  456. flow_compute-0.0.1/tests/slow/e2e/__init__.py +0 -0
  457. flow_compute-0.0.1/tests/slow/e2e/test_api.py +70 -0
  458. flow_compute-0.0.1/tests/slow/e2e/test_gpu.py +55 -0
  459. flow_compute-0.0.1/tests/slow/e2e/test_ssh_e2e.py +281 -0
  460. flow_compute-0.0.1/tests/slow/fcp_live_instances/test_critical_features.py +302 -0
  461. flow_compute-0.0.1/tests/slow/fcp_live_instances/test_docker_integration.py +353 -0
  462. flow_compute-0.0.1/tests/slow/fcp_live_instances/test_logs_integration.py +330 -0
  463. flow_compute-0.0.1/tests/slow/fcp_live_instances/test_startup_scripts_dev_sdk.py +483 -0
  464. flow_compute-0.0.1/tests/slow/fcp_live_instances/test_startup_scripts_integration.py +453 -0
  465. flow_compute-0.0.1/tests/slow/performance/__init__.py +0 -0
  466. flow_compute-0.0.1/tests/slow/performance/test_benchmarks.py +478 -0
  467. flow_compute-0.0.1/tests/slow/performance/test_complexity.py +210 -0
  468. flow_compute-0.0.1/tests/slow/performance/test_regression_tracking.py +387 -0
  469. flow_compute-0.0.1/tests/slow/performance/test_volume_bulk_operations.py +461 -0
  470. flow_compute-0.0.1/tests/slow/providers/__init__.py +0 -0
  471. flow_compute-0.0.1/tests/slow/providers/test_docker_integration.py +333 -0
  472. flow_compute-0.0.1/tests/slow/providers/test_docker_integration_fixed.py +233 -0
  473. flow_compute-0.0.1/tests/slow/providers/test_script_size_integration.py +195 -0
  474. flow_compute-0.0.1/tests/slow/providers/test_startup_script_builder_dev_sdk.py +551 -0
  475. flow_compute-0.0.1/tests/slow/providers/test_startup_script_validation.py +311 -0
  476. flow_compute-0.0.1/tests/slow/system/__init__.py +0 -0
  477. flow_compute-0.0.1/tests/slow/test_cli.py +191 -0
  478. flow_compute-0.0.1/tests/slow/test_cli_manifest_integration.py +290 -0
  479. flow_compute-0.0.1/tests/slow/test_cli_mounts.py +214 -0
  480. flow_compute-0.0.1/tests/slow/test_concurrent_operations.py +685 -0
  481. flow_compute-0.0.1/tests/slow/test_docker_caching_e2e.py +58 -0
  482. flow_compute-0.0.1/tests/slow/test_end_to_end.py +259 -0
  483. flow_compute-0.0.1/tests/slow/test_fcp_dev_sdk_integration.py +522 -0
  484. flow_compute-0.0.1/tests/slow/test_fcp_integration.py +314 -0
  485. flow_compute-0.0.1/tests/slow/test_fcp_integration_fixed.py +477 -0
  486. flow_compute-0.0.1/tests/slow/test_fcp_user_journeys.py +193 -0
  487. flow_compute-0.0.1/tests/slow/test_fcp_user_journeys_fixed.py +382 -0
  488. flow_compute-0.0.1/tests/slow/test_fcp_user_journeys_improved.py +360 -0
  489. flow_compute-0.0.1/tests/slow/test_file_share_integration.py +285 -0
  490. flow_compute-0.0.1/tests/slow/test_flow_mounts.py +287 -0
  491. flow_compute-0.0.1/tests/slow/test_init_e2e.py +257 -0
  492. flow_compute-0.0.1/tests/slow/test_init_reconfigure.py +237 -0
  493. flow_compute-0.0.1/tests/slow/test_invoke_integration.py +619 -0
  494. flow_compute-0.0.1/tests/slow/test_jupyter_integration.py +268 -0
  495. flow_compute-0.0.1/tests/slow/test_local_provider_logs.py +344 -0
  496. flow_compute-0.0.1/tests/slow/test_monarch_integration.py +376 -0
  497. flow_compute-0.0.1/tests/slow/test_mount_command.py +243 -0
  498. flow_compute-0.0.1/tests/slow/test_partial_failures.py +630 -0
  499. flow_compute-0.0.1/tests/slow/test_resource_cleanup.py +545 -0
  500. flow_compute-0.0.1/tests/slow/test_runner_with_isolation.py +532 -0
  501. flow_compute-0.0.1/tests/slow/test_ssh_dev_sdk.py +591 -0
  502. flow_compute-0.0.1/tests/slow/test_ssh_integration.py +100 -0
  503. flow_compute-0.0.1/tests/slow/test_ssh_key_generation_integration.py +191 -0
  504. flow_compute-0.0.1/tests/slow/test_ssh_real_server.py +182 -0
  505. flow_compute-0.0.1/tests/slow/test_ssh_with_local_provider.py +165 -0
  506. flow_compute-0.0.1/tests/slow/test_upload_code_integration.py +307 -0
  507. flow_compute-0.0.1/tests/support/__init__.py +0 -0
  508. flow_compute-0.0.1/tests/support/analysis/__init__.py +0 -0
  509. flow_compute-0.0.1/tests/support/analysis/test_dependency_map.py +329 -0
  510. flow_compute-0.0.1/tests/support/config/__init__.py +0 -0
  511. flow_compute-0.0.1/tests/support/data/__init__.py +0 -0
  512. flow_compute-0.0.1/tests/support/data/generators.py +298 -0
  513. flow_compute-0.0.1/tests/support/docs/__init__.py +0 -0
  514. flow_compute-0.0.1/tests/support/fixtures/__init__.py +1 -0
  515. flow_compute-0.0.1/tests/support/fixtures/api_responses/__init__.py +166 -0
  516. flow_compute-0.0.1/tests/support/fixtures/environment.py +198 -0
  517. flow_compute-0.0.1/tests/support/fixtures/invoke_fixtures.py +115 -0
  518. flow_compute-0.0.1/tests/support/fixtures/task_fixtures.py +83 -0
  519. flow_compute-0.0.1/tests/support/framework/__init__.py +56 -0
  520. flow_compute-0.0.1/tests/support/framework/api_state.py +162 -0
  521. flow_compute-0.0.1/tests/support/framework/assertions.py +341 -0
  522. flow_compute-0.0.1/tests/support/framework/async_utils.py +319 -0
  523. flow_compute-0.0.1/tests/support/framework/base.py +108 -0
  524. flow_compute-0.0.1/tests/support/framework/builders.py +332 -0
  525. flow_compute-0.0.1/tests/support/framework/constants.py +231 -0
  526. flow_compute-0.0.1/tests/support/framework/factories.py +600 -0
  527. flow_compute-0.0.1/tests/support/framework/generators.py +308 -0
  528. flow_compute-0.0.1/tests/support/framework/helpers.py +81 -0
  529. flow_compute-0.0.1/tests/support/framework/providers.py +208 -0
  530. flow_compute-0.0.1/tests/support/framework/sandbox.py +421 -0
  531. flow_compute-0.0.1/tests/support/framework/task_helpers.py +156 -0
  532. flow_compute-0.0.1/tests/support/misc/IMPORT_FIXER.py +476 -0
  533. flow_compute-0.0.1/tests/support/misc/RESTRUCTURE_AUTOMATION.py +517 -0
  534. flow_compute-0.0.1/tests/support/misc/__init__.py +0 -0
  535. flow_compute-0.0.1/tests/support/misc/discover_and_test.py +142 -0
  536. flow_compute-0.0.1/tests/support/misc/migrate_to_dev_sdk_example.py +285 -0
  537. flow_compute-0.0.1/tests/support/misc/research_docker_image_preloading.py +308 -0
  538. flow_compute-0.0.1/tests/support/misc/research_docker_persistent_mount.py +75 -0
  539. flow_compute-0.0.1/tests/support/misc/research_docker_sudo.py +71 -0
  540. flow_compute-0.0.1/tests/support/misc/setup_docker_persistent_cache.py +243 -0
  541. flow_compute-0.0.1/tests/support/misc/verify_instance_access.py +238 -0
  542. flow_compute-0.0.1/tests/support/scripts/__init__.py +0 -0
  543. flow_compute-0.0.1/tests/support/scripts/run_ssh_tests.py +182 -0
  544. flow_compute-0.0.1/tests/support/scripts/run_tests.py +158 -0
  545. flow_compute-0.0.1/tests/support/scripts/validate_examples.py +265 -0
  546. flow_compute-0.0.1/tests/support/tools/__init__.py +0 -0
  547. flow_compute-0.0.1/tests/support/tools/test_cli_states.py +465 -0
  548. flow_compute-0.0.1/tests/support/utils/__init__.py +0 -0
  549. flow_compute-0.0.1/tests/support/utils/mock_api_server.py +630 -0
  550. flow_compute-0.0.1/tests/support/utils/ssh_test_server.py +205 -0
  551. flow_compute-0.0.1/tests/support/verification/__init__.py +0 -0
  552. flow_compute-0.0.1/tests/support/verification/instance_verifier.py +492 -0
  553. flow_compute-0.0.1/tests_backup_20250802_115839/IMPORT_FIXER.py +476 -0
  554. flow_compute-0.0.1/tests_backup_20250802_115839/PROPOSED_STRUCTURE.md +56 -0
  555. flow_compute-0.0.1/tests_backup_20250802_115839/README.md +96 -0
  556. flow_compute-0.0.1/tests_backup_20250802_115839/REORGANIZATION_SUMMARY.md +77 -0
  557. flow_compute-0.0.1/tests_backup_20250802_115839/RESTRUCTURE_AUTOMATION.py +517 -0
  558. flow_compute-0.0.1/tests_backup_20250802_115839/RESTRUCTURE_DETAILED_PLAN.md +263 -0
  559. flow_compute-0.0.1/tests_backup_20250802_115839/__init__.py +1 -0
  560. flow_compute-0.0.1/tests_backup_20250802_115839/analysis/dependency_report.json +1166 -0
  561. flow_compute-0.0.1/tests_backup_20250802_115839/analysis/test_dependency_map.py +329 -0
  562. flow_compute-0.0.1/tests_backup_20250802_115839/config/mock_flow_config.yaml +7 -0
  563. flow_compute-0.0.1/tests_backup_20250802_115839/config/requirements-mock.txt +3 -0
  564. flow_compute-0.0.1/tests_backup_20250802_115839/conftest.py +269 -0
  565. flow_compute-0.0.1/tests_backup_20250802_115839/data/api/v2024-01-01/list_tasks_response.json +36 -0
  566. flow_compute-0.0.1/tests_backup_20250802_115839/data/api/v2024-01-01/submit_task_response.json +9 -0
  567. flow_compute-0.0.1/tests_backup_20250802_115839/data/configs/complex.yaml +72 -0
  568. flow_compute-0.0.1/tests_backup_20250802_115839/data/configs/minimal.yaml +3 -0
  569. flow_compute-0.0.1/tests_backup_20250802_115839/data/generators.py +298 -0
  570. flow_compute-0.0.1/tests_backup_20250802_115839/docs/README.md +423 -0
  571. flow_compute-0.0.1/tests_backup_20250802_115839/docs/README_MOCK_API.md +273 -0
  572. flow_compute-0.0.1/tests_backup_20250802_115839/docs/TEST_FIXES_SUMMARY.md +141 -0
  573. flow_compute-0.0.1/tests_backup_20250802_115839/e2e/conftest.py +22 -0
  574. flow_compute-0.0.1/tests_backup_20250802_115839/e2e/test_api.py +70 -0
  575. flow_compute-0.0.1/tests_backup_20250802_115839/e2e/test_gpu.py +55 -0
  576. flow_compute-0.0.1/tests_backup_20250802_115839/e2e/test_ssh_e2e.py +281 -0
  577. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/__init__.py +1 -0
  578. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/api_responses/MIGRATION_GUIDE.md +187 -0
  579. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/api_responses/__init__.py +166 -0
  580. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/api_responses/fcp_responses.json +242 -0
  581. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/environment.py +198 -0
  582. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/invoke_fixtures.py +115 -0
  583. flow_compute-0.0.1/tests_backup_20250802_115839/fixtures/task_fixtures.py +83 -0
  584. flow_compute-0.0.1/tests_backup_20250802_115839/functional/__init__.py +0 -0
  585. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_cli_integration.py +60 -0
  586. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_code_packaging.py +167 -0
  587. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_complex_slurm.py +71 -0
  588. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_dev_sdk.py +346 -0
  589. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_example_validator.py +312 -0
  590. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_examples.py +333 -0
  591. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_invoke_integration.py +127 -0
  592. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_local_provider_full.py +109 -0
  593. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_slurm_adapter.py +75 -0
  594. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_slurm_parsing.py +82 -0
  595. flow_compute-0.0.1/tests_backup_20250802_115839/functional/test_task_submission.py +55 -0
  596. flow_compute-0.0.1/tests_backup_20250802_115839/integration/DEV_SDK_TEST_REFACTORING.md +194 -0
  597. flow_compute-0.0.1/tests_backup_20250802_115839/integration/__init__.py +1 -0
  598. flow_compute-0.0.1/tests_backup_20250802_115839/integration/conftest.py +240 -0
  599. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/__init__.py +4 -0
  600. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/correct_docker_cache_implementation.sh +132 -0
  601. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/research_docker_image_preloading.py +308 -0
  602. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/research_docker_persistent_mount.py +75 -0
  603. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/setup_docker_persistent_cache.py +243 -0
  604. flow_compute-0.0.1/tests_backup_20250802_115839/integration/docker_caching/test_docker_persistent_storage.py +351 -0
  605. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/__init__.py +4 -0
  606. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/discover_and_test.py +142 -0
  607. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/migrate_to_dev_sdk_example.py +285 -0
  608. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/research_docker_sudo.py +71 -0
  609. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/test_critical_features.py +302 -0
  610. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/test_docker_integration.py +353 -0
  611. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/test_logs_integration.py +330 -0
  612. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/test_startup_scripts_dev_sdk.py +483 -0
  613. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/test_startup_scripts_integration.py +453 -0
  614. flow_compute-0.0.1/tests_backup_20250802_115839/integration/fcp_live_instances/verify_instance_access.py +238 -0
  615. flow_compute-0.0.1/tests_backup_20250802_115839/integration/providers/fcp/test_docker_integration.py +333 -0
  616. flow_compute-0.0.1/tests_backup_20250802_115839/integration/providers/fcp/test_docker_integration_fixed.py +233 -0
  617. flow_compute-0.0.1/tests_backup_20250802_115839/integration/providers/fcp/test_script_size_integration.py +195 -0
  618. flow_compute-0.0.1/tests_backup_20250802_115839/integration/providers/fcp/test_startup_script_builder_dev_sdk.py +551 -0
  619. flow_compute-0.0.1/tests_backup_20250802_115839/integration/providers/fcp/test_startup_script_validation.py +311 -0
  620. flow_compute-0.0.1/tests_backup_20250802_115839/integration/pytest_dev_sdk.ini +57 -0
  621. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_cli.py +191 -0
  622. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_cli_manifest_integration.py +290 -0
  623. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_cli_mounts.py +214 -0
  624. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_concurrent_operations.py +685 -0
  625. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_docker_caching_e2e.py +58 -0
  626. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_end_to_end.py +259 -0
  627. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_dev_sdk_integration.py +522 -0
  628. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_integration.py +314 -0
  629. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_integration_fixed.py +477 -0
  630. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_user_journeys.py +193 -0
  631. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_user_journeys_fixed.py +382 -0
  632. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_fcp_user_journeys_improved.py +360 -0
  633. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_file_share_integration.py +285 -0
  634. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_flow_mounts.py +287 -0
  635. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_init_e2e.py +257 -0
  636. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_init_reconfigure.py +237 -0
  637. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_invoke_integration.py +619 -0
  638. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_jupyter_integration.py +268 -0
  639. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_local_provider_logs.py +344 -0
  640. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_monarch_integration.py +376 -0
  641. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_mount_command.py +243 -0
  642. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_partial_failures.py +630 -0
  643. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_resource_cleanup.py +545 -0
  644. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_runner_with_isolation.py +532 -0
  645. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_ssh_dev_sdk.py +591 -0
  646. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_ssh_integration.py +100 -0
  647. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_ssh_key_generation_integration.py +191 -0
  648. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_ssh_real_server.py +182 -0
  649. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_ssh_with_local_provider.py +165 -0
  650. flow_compute-0.0.1/tests_backup_20250802_115839/integration/test_upload_code_integration.py +307 -0
  651. flow_compute-0.0.1/tests_backup_20250802_115839/performance/.baselines.json +112 -0
  652. flow_compute-0.0.1/tests_backup_20250802_115839/performance/test_benchmarks.py +478 -0
  653. flow_compute-0.0.1/tests_backup_20250802_115839/performance/test_complexity.py +210 -0
  654. flow_compute-0.0.1/tests_backup_20250802_115839/performance/test_regression_tracking.py +387 -0
  655. flow_compute-0.0.1/tests_backup_20250802_115839/performance/test_volume_bulk_operations.py +461 -0
  656. flow_compute-0.0.1/tests_backup_20250802_115839/scripts/__init__.py +0 -0
  657. flow_compute-0.0.1/tests_backup_20250802_115839/scripts/run_ssh_tests.py +182 -0
  658. flow_compute-0.0.1/tests_backup_20250802_115839/scripts/run_tests.py +158 -0
  659. flow_compute-0.0.1/tests_backup_20250802_115839/scripts/validate_examples.py +265 -0
  660. flow_compute-0.0.1/tests_backup_20250802_115839/smoke/__init__.py +0 -0
  661. flow_compute-0.0.1/tests_backup_20250802_115839/smoke/test_basic.py +37 -0
  662. flow_compute-0.0.1/tests_backup_20250802_115839/testing/README_IMPROVEMENTS.md +177 -0
  663. flow_compute-0.0.1/tests_backup_20250802_115839/testing/__init__.py +56 -0
  664. flow_compute-0.0.1/tests_backup_20250802_115839/testing/api_state.py +162 -0
  665. flow_compute-0.0.1/tests_backup_20250802_115839/testing/assertions.py +341 -0
  666. flow_compute-0.0.1/tests_backup_20250802_115839/testing/async_utils.py +319 -0
  667. flow_compute-0.0.1/tests_backup_20250802_115839/testing/base.py +108 -0
  668. flow_compute-0.0.1/tests_backup_20250802_115839/testing/builders.py +332 -0
  669. flow_compute-0.0.1/tests_backup_20250802_115839/testing/constants.py +231 -0
  670. flow_compute-0.0.1/tests_backup_20250802_115839/testing/factories.py +600 -0
  671. flow_compute-0.0.1/tests_backup_20250802_115839/testing/generators.py +308 -0
  672. flow_compute-0.0.1/tests_backup_20250802_115839/testing/helpers.py +81 -0
  673. flow_compute-0.0.1/tests_backup_20250802_115839/testing/providers.py +208 -0
  674. flow_compute-0.0.1/tests_backup_20250802_115839/testing/sandbox.py +421 -0
  675. flow_compute-0.0.1/tests_backup_20250802_115839/testing/task_helpers.py +156 -0
  676. flow_compute-0.0.1/tests_backup_20250802_115839/tools/__init__.py +0 -0
  677. flow_compute-0.0.1/tests_backup_20250802_115839/tools/test_cli_states.py +465 -0
  678. flow_compute-0.0.1/tests_backup_20250802_115839/unit/__init__.py +1 -0
  679. flow_compute-0.0.1/tests_backup_20250802_115839/unit/init/__init__.py +1 -0
  680. flow_compute-0.0.1/tests_backup_20250802_115839/unit/init/test_resolver.py +144 -0
  681. flow_compute-0.0.1/tests_backup_20250802_115839/unit/init/test_validator.py +157 -0
  682. flow_compute-0.0.1/tests_backup_20250802_115839/unit/init/test_writer.py +184 -0
  683. flow_compute-0.0.1/tests_backup_20250802_115839/unit/integrations/test_monarch.py +339 -0
  684. flow_compute-0.0.1/tests_backup_20250802_115839/unit/integrations/test_monarch_adapter.py +411 -0
  685. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_fcp_init.py +413 -0
  686. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_gpu_docker_fixes.py +165 -0
  687. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_gpu_docker_fixes_updated.py +178 -0
  688. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_instance_type_mapping.py +111 -0
  689. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_mount_volume.py +259 -0
  690. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_script_sections.py +459 -0
  691. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_script_size_handler.py +301 -0
  692. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_script_size_limits.py +196 -0
  693. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_ssh_waiter.py +200 -0
  694. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_startup_script_edge_cases.py +623 -0
  695. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_startup_script_fixes.py +156 -0
  696. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_template_engine.py +187 -0
  697. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_transfer_strategies.py +288 -0
  698. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/fcp/test_workload_resume_section.py +166 -0
  699. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/local/test_local_init.py +374 -0
  700. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/test_local_phase0.py +142 -0
  701. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/test_local_phase1.py +178 -0
  702. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/test_local_phase2.py +209 -0
  703. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/test_local_phase3.py +197 -0
  704. flow_compute-0.0.1/tests_backup_20250802_115839/unit/providers/test_local_phase4.py +231 -0
  705. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_api_contracts.py +639 -0
  706. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_api_contracts_refactored.py +215 -0
  707. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_auth.py +448 -0
  708. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_capability_selection.py +367 -0
  709. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_commands.py +145 -0
  710. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_commands_fixed.py +578 -0
  711. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_commands_principled.py +275 -0
  712. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_commands_status_fixed.py +302 -0
  713. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_environment_isolation.py +230 -0
  714. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_cli_parsing.py +210 -0
  715. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_clock_skew_scenarios.py +328 -0
  716. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_colab_mock.py.skip +167 -0
  717. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_config.py +173 -0
  718. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_config_from_env.py +159 -0
  719. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_config_loader.py +198 -0
  720. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_decorator_real.py +516 -0
  721. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_decorator_thread_safety.py +58 -0
  722. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_errors.py +116 -0
  723. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_extreme_scale_scenarios.py +452 -0
  724. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_error_handling.py +317 -0
  725. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_instance_resolution.py +149 -0
  726. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_mount_adapter.py +196 -0
  727. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_provider.py +132 -0
  728. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_provider_behavior.py +349 -0
  729. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_provider_initialization.py +121 -0
  730. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_provider_unit_fixed.py +606 -0
  731. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_provider_unit_updated.py +180 -0
  732. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_fcp_task_management.py +344 -0
  733. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_file_share_support.py +449 -0
  734. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_flow_find_instances.py +116 -0
  735. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_google_colab_integration.py +263 -0
  736. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_gpu_parser.py +84 -0
  737. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_implementation_showcase.py +335 -0
  738. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_instance_matcher.py +99 -0
  739. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_invoke_comprehensive.py +655 -0
  740. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_invoke_retry.py +258 -0
  741. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_invoke_serialization.py +73 -0
  742. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_jupyter_integration.py +269 -0
  743. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_logs.py +314 -0
  744. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_memory_leak_detection.py +616 -0
  745. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_models.py +420 -0
  746. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_models_property.py +899 -0
  747. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_mount_processor.py +212 -0
  748. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_multi_region_selection.py +277 -0
  749. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_network_failures.py +568 -0
  750. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_provider.py +202 -0
  751. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_provider_manifest.py +278 -0
  752. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_s3_script_section.py +122 -0
  753. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_s3_support.py +327 -0
  754. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_security.py +135 -0
  755. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_slurm_adapter.py +466 -0
  756. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_ssh_key_auto_generation.py +301 -0
  757. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_ssh_key_manager_security.py +205 -0
  758. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_ssh_multi_node.py +308 -0
  759. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_ssh_preconditions.py +175 -0
  760. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_ssh_tunnel_concepts.py +142 -0
  761. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_submit_api.py +243 -0
  762. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_submitit_adapter.py +395 -0
  763. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_task_manager.py +468 -0
  764. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_task_manager_simple.py +176 -0
  765. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_task_resolver.py +226 -0
  766. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_unicode_edge_cases.py +440 -0
  767. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_upload_code.py +398 -0
  768. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_url_resolver.py +193 -0
  769. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_user_resolution.py +802 -0
  770. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_validation_errors.py +132 -0
  771. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_volume_commands_comprehensive.py +543 -0
  772. flow_compute-0.0.1/tests_backup_20250802_115839/unit/test_yaml_adapter.py +475 -0
  773. flow_compute-0.0.1/tests_backup_20250802_115839/utils/mock_api_server.py +630 -0
  774. flow_compute-0.0.1/tests_backup_20250802_115839/utils/ssh_test_server.py +205 -0
  775. flow_compute-0.0.1/tests_backup_20250802_115839/verification/instance_verifier.py +492 -0
  776. flow_compute-0.0.1/tests_backup_20250802_120003/IMPORT_FIXER.py +476 -0
  777. flow_compute-0.0.1/tests_backup_20250802_120003/PROPOSED_STRUCTURE.md +56 -0
  778. flow_compute-0.0.1/tests_backup_20250802_120003/README.md +96 -0
  779. flow_compute-0.0.1/tests_backup_20250802_120003/REORGANIZATION_SUMMARY.md +77 -0
  780. flow_compute-0.0.1/tests_backup_20250802_120003/RESTRUCTURE_AUTOMATION.py +517 -0
  781. flow_compute-0.0.1/tests_backup_20250802_120003/RESTRUCTURE_DETAILED_PLAN.md +263 -0
  782. flow_compute-0.0.1/tests_backup_20250802_120003/__init__.py +1 -0
  783. flow_compute-0.0.1/tests_backup_20250802_120003/analysis/dependency_report.json +1166 -0
  784. flow_compute-0.0.1/tests_backup_20250802_120003/analysis/test_dependency_map.py +329 -0
  785. flow_compute-0.0.1/tests_backup_20250802_120003/config/mock_flow_config.yaml +7 -0
  786. flow_compute-0.0.1/tests_backup_20250802_120003/config/requirements-mock.txt +3 -0
  787. flow_compute-0.0.1/tests_backup_20250802_120003/conftest.py +269 -0
  788. flow_compute-0.0.1/tests_backup_20250802_120003/data/api/v2024-01-01/list_tasks_response.json +36 -0
  789. flow_compute-0.0.1/tests_backup_20250802_120003/data/api/v2024-01-01/submit_task_response.json +9 -0
  790. flow_compute-0.0.1/tests_backup_20250802_120003/data/configs/complex.yaml +72 -0
  791. flow_compute-0.0.1/tests_backup_20250802_120003/data/configs/minimal.yaml +3 -0
  792. flow_compute-0.0.1/tests_backup_20250802_120003/data/generators.py +298 -0
  793. flow_compute-0.0.1/tests_backup_20250802_120003/docs/README.md +423 -0
  794. flow_compute-0.0.1/tests_backup_20250802_120003/docs/README_MOCK_API.md +273 -0
  795. flow_compute-0.0.1/tests_backup_20250802_120003/docs/TEST_FIXES_SUMMARY.md +141 -0
  796. flow_compute-0.0.1/tests_backup_20250802_120003/e2e/conftest.py +22 -0
  797. flow_compute-0.0.1/tests_backup_20250802_120003/e2e/test_api.py +70 -0
  798. flow_compute-0.0.1/tests_backup_20250802_120003/e2e/test_gpu.py +55 -0
  799. flow_compute-0.0.1/tests_backup_20250802_120003/e2e/test_ssh_e2e.py +281 -0
  800. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/__init__.py +1 -0
  801. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/api_responses/MIGRATION_GUIDE.md +187 -0
  802. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/api_responses/__init__.py +166 -0
  803. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/api_responses/fcp_responses.json +242 -0
  804. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/environment.py +198 -0
  805. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/invoke_fixtures.py +115 -0
  806. flow_compute-0.0.1/tests_backup_20250802_120003/fixtures/task_fixtures.py +83 -0
  807. flow_compute-0.0.1/tests_backup_20250802_120003/functional/__init__.py +0 -0
  808. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_cli_integration.py +60 -0
  809. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_code_packaging.py +167 -0
  810. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_complex_slurm.py +71 -0
  811. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_dev_sdk.py +346 -0
  812. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_example_validator.py +312 -0
  813. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_examples.py +333 -0
  814. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_invoke_integration.py +127 -0
  815. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_local_provider_full.py +109 -0
  816. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_slurm_adapter.py +75 -0
  817. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_slurm_parsing.py +82 -0
  818. flow_compute-0.0.1/tests_backup_20250802_120003/functional/test_task_submission.py +55 -0
  819. flow_compute-0.0.1/tests_backup_20250802_120003/integration/DEV_SDK_TEST_REFACTORING.md +194 -0
  820. flow_compute-0.0.1/tests_backup_20250802_120003/integration/__init__.py +1 -0
  821. flow_compute-0.0.1/tests_backup_20250802_120003/integration/conftest.py +240 -0
  822. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/__init__.py +4 -0
  823. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/correct_docker_cache_implementation.sh +132 -0
  824. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/research_docker_image_preloading.py +308 -0
  825. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/research_docker_persistent_mount.py +75 -0
  826. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/setup_docker_persistent_cache.py +243 -0
  827. flow_compute-0.0.1/tests_backup_20250802_120003/integration/docker_caching/test_docker_persistent_storage.py +351 -0
  828. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/__init__.py +4 -0
  829. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/discover_and_test.py +142 -0
  830. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/migrate_to_dev_sdk_example.py +285 -0
  831. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/research_docker_sudo.py +71 -0
  832. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/test_critical_features.py +302 -0
  833. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/test_docker_integration.py +353 -0
  834. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/test_logs_integration.py +330 -0
  835. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/test_startup_scripts_dev_sdk.py +483 -0
  836. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/test_startup_scripts_integration.py +453 -0
  837. flow_compute-0.0.1/tests_backup_20250802_120003/integration/fcp_live_instances/verify_instance_access.py +238 -0
  838. flow_compute-0.0.1/tests_backup_20250802_120003/integration/providers/fcp/test_docker_integration.py +333 -0
  839. flow_compute-0.0.1/tests_backup_20250802_120003/integration/providers/fcp/test_docker_integration_fixed.py +233 -0
  840. flow_compute-0.0.1/tests_backup_20250802_120003/integration/providers/fcp/test_script_size_integration.py +195 -0
  841. flow_compute-0.0.1/tests_backup_20250802_120003/integration/providers/fcp/test_startup_script_builder_dev_sdk.py +551 -0
  842. flow_compute-0.0.1/tests_backup_20250802_120003/integration/providers/fcp/test_startup_script_validation.py +311 -0
  843. flow_compute-0.0.1/tests_backup_20250802_120003/integration/pytest_dev_sdk.ini +57 -0
  844. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_cli.py +191 -0
  845. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_cli_manifest_integration.py +290 -0
  846. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_cli_mounts.py +214 -0
  847. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_concurrent_operations.py +685 -0
  848. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_docker_caching_e2e.py +58 -0
  849. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_end_to_end.py +259 -0
  850. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_dev_sdk_integration.py +522 -0
  851. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_integration.py +314 -0
  852. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_integration_fixed.py +477 -0
  853. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_user_journeys.py +193 -0
  854. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_user_journeys_fixed.py +382 -0
  855. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_fcp_user_journeys_improved.py +360 -0
  856. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_file_share_integration.py +285 -0
  857. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_flow_mounts.py +287 -0
  858. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_init_e2e.py +257 -0
  859. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_init_reconfigure.py +237 -0
  860. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_invoke_integration.py +619 -0
  861. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_jupyter_integration.py +268 -0
  862. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_local_provider_logs.py +344 -0
  863. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_monarch_integration.py +376 -0
  864. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_mount_command.py +243 -0
  865. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_partial_failures.py +630 -0
  866. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_resource_cleanup.py +545 -0
  867. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_runner_with_isolation.py +532 -0
  868. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_ssh_dev_sdk.py +591 -0
  869. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_ssh_integration.py +100 -0
  870. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_ssh_key_generation_integration.py +191 -0
  871. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_ssh_real_server.py +182 -0
  872. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_ssh_with_local_provider.py +165 -0
  873. flow_compute-0.0.1/tests_backup_20250802_120003/integration/test_upload_code_integration.py +307 -0
  874. flow_compute-0.0.1/tests_backup_20250802_120003/performance/.baselines.json +112 -0
  875. flow_compute-0.0.1/tests_backup_20250802_120003/performance/test_benchmarks.py +478 -0
  876. flow_compute-0.0.1/tests_backup_20250802_120003/performance/test_complexity.py +210 -0
  877. flow_compute-0.0.1/tests_backup_20250802_120003/performance/test_regression_tracking.py +387 -0
  878. flow_compute-0.0.1/tests_backup_20250802_120003/performance/test_volume_bulk_operations.py +461 -0
  879. flow_compute-0.0.1/tests_backup_20250802_120003/scripts/__init__.py +0 -0
  880. flow_compute-0.0.1/tests_backup_20250802_120003/scripts/run_ssh_tests.py +182 -0
  881. flow_compute-0.0.1/tests_backup_20250802_120003/scripts/run_tests.py +158 -0
  882. flow_compute-0.0.1/tests_backup_20250802_120003/scripts/validate_examples.py +265 -0
  883. flow_compute-0.0.1/tests_backup_20250802_120003/smoke/__init__.py +0 -0
  884. flow_compute-0.0.1/tests_backup_20250802_120003/smoke/test_basic.py +37 -0
  885. flow_compute-0.0.1/tests_backup_20250802_120003/testing/README_IMPROVEMENTS.md +177 -0
  886. flow_compute-0.0.1/tests_backup_20250802_120003/testing/__init__.py +56 -0
  887. flow_compute-0.0.1/tests_backup_20250802_120003/testing/api_state.py +162 -0
  888. flow_compute-0.0.1/tests_backup_20250802_120003/testing/assertions.py +341 -0
  889. flow_compute-0.0.1/tests_backup_20250802_120003/testing/async_utils.py +319 -0
  890. flow_compute-0.0.1/tests_backup_20250802_120003/testing/base.py +108 -0
  891. flow_compute-0.0.1/tests_backup_20250802_120003/testing/builders.py +332 -0
  892. flow_compute-0.0.1/tests_backup_20250802_120003/testing/constants.py +231 -0
  893. flow_compute-0.0.1/tests_backup_20250802_120003/testing/factories.py +600 -0
  894. flow_compute-0.0.1/tests_backup_20250802_120003/testing/generators.py +308 -0
  895. flow_compute-0.0.1/tests_backup_20250802_120003/testing/helpers.py +81 -0
  896. flow_compute-0.0.1/tests_backup_20250802_120003/testing/providers.py +208 -0
  897. flow_compute-0.0.1/tests_backup_20250802_120003/testing/sandbox.py +421 -0
  898. flow_compute-0.0.1/tests_backup_20250802_120003/testing/task_helpers.py +156 -0
  899. flow_compute-0.0.1/tests_backup_20250802_120003/tools/__init__.py +0 -0
  900. flow_compute-0.0.1/tests_backup_20250802_120003/tools/test_cli_states.py +465 -0
  901. flow_compute-0.0.1/tests_backup_20250802_120003/unit/__init__.py +1 -0
  902. flow_compute-0.0.1/tests_backup_20250802_120003/unit/init/__init__.py +1 -0
  903. flow_compute-0.0.1/tests_backup_20250802_120003/unit/init/test_resolver.py +144 -0
  904. flow_compute-0.0.1/tests_backup_20250802_120003/unit/init/test_validator.py +157 -0
  905. flow_compute-0.0.1/tests_backup_20250802_120003/unit/init/test_writer.py +184 -0
  906. flow_compute-0.0.1/tests_backup_20250802_120003/unit/integrations/test_monarch.py +339 -0
  907. flow_compute-0.0.1/tests_backup_20250802_120003/unit/integrations/test_monarch_adapter.py +411 -0
  908. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_fcp_init.py +413 -0
  909. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_gpu_docker_fixes.py +165 -0
  910. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_gpu_docker_fixes_updated.py +178 -0
  911. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_instance_type_mapping.py +111 -0
  912. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_mount_volume.py +259 -0
  913. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_script_sections.py +459 -0
  914. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_script_size_handler.py +301 -0
  915. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_script_size_limits.py +196 -0
  916. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_ssh_waiter.py +200 -0
  917. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_startup_script_edge_cases.py +623 -0
  918. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_startup_script_fixes.py +156 -0
  919. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_template_engine.py +187 -0
  920. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_transfer_strategies.py +288 -0
  921. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/fcp/test_workload_resume_section.py +166 -0
  922. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/local/test_local_init.py +374 -0
  923. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/test_local_phase0.py +142 -0
  924. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/test_local_phase1.py +178 -0
  925. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/test_local_phase2.py +209 -0
  926. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/test_local_phase3.py +197 -0
  927. flow_compute-0.0.1/tests_backup_20250802_120003/unit/providers/test_local_phase4.py +231 -0
  928. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_api_contracts.py +639 -0
  929. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_api_contracts_refactored.py +215 -0
  930. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_auth.py +448 -0
  931. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_capability_selection.py +367 -0
  932. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_commands.py +145 -0
  933. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_commands_fixed.py +578 -0
  934. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_commands_principled.py +275 -0
  935. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_commands_status_fixed.py +302 -0
  936. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_environment_isolation.py +230 -0
  937. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_cli_parsing.py +210 -0
  938. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_clock_skew_scenarios.py +328 -0
  939. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_colab_mock.py.skip +167 -0
  940. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_config.py +173 -0
  941. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_config_from_env.py +159 -0
  942. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_config_loader.py +198 -0
  943. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_decorator_real.py +516 -0
  944. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_decorator_thread_safety.py +58 -0
  945. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_errors.py +116 -0
  946. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_extreme_scale_scenarios.py +452 -0
  947. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_error_handling.py +317 -0
  948. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_instance_resolution.py +149 -0
  949. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_mount_adapter.py +196 -0
  950. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_provider.py +132 -0
  951. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_provider_behavior.py +349 -0
  952. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_provider_initialization.py +121 -0
  953. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_provider_unit_fixed.py +606 -0
  954. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_provider_unit_updated.py +180 -0
  955. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_fcp_task_management.py +344 -0
  956. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_file_share_support.py +449 -0
  957. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_flow_find_instances.py +116 -0
  958. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_google_colab_integration.py +263 -0
  959. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_gpu_parser.py +84 -0
  960. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_implementation_showcase.py +335 -0
  961. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_instance_matcher.py +99 -0
  962. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_invoke_comprehensive.py +655 -0
  963. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_invoke_retry.py +258 -0
  964. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_invoke_serialization.py +73 -0
  965. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_jupyter_integration.py +269 -0
  966. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_logs.py +314 -0
  967. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_memory_leak_detection.py +616 -0
  968. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_models.py +420 -0
  969. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_models_property.py +899 -0
  970. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_mount_processor.py +212 -0
  971. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_multi_region_selection.py +277 -0
  972. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_network_failures.py +568 -0
  973. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_provider.py +202 -0
  974. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_provider_manifest.py +278 -0
  975. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_s3_script_section.py +122 -0
  976. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_s3_support.py +327 -0
  977. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_security.py +135 -0
  978. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_slurm_adapter.py +466 -0
  979. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_ssh_key_auto_generation.py +301 -0
  980. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_ssh_key_manager_security.py +205 -0
  981. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_ssh_multi_node.py +308 -0
  982. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_ssh_preconditions.py +175 -0
  983. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_ssh_tunnel_concepts.py +142 -0
  984. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_submit_api.py +243 -0
  985. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_submitit_adapter.py +395 -0
  986. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_task_manager.py +468 -0
  987. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_task_manager_simple.py +176 -0
  988. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_task_resolver.py +226 -0
  989. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_unicode_edge_cases.py +440 -0
  990. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_upload_code.py +398 -0
  991. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_url_resolver.py +193 -0
  992. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_user_resolution.py +802 -0
  993. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_validation_errors.py +132 -0
  994. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_volume_commands_comprehensive.py +543 -0
  995. flow_compute-0.0.1/tests_backup_20250802_120003/unit/test_yaml_adapter.py +475 -0
  996. flow_compute-0.0.1/tests_backup_20250802_120003/utils/mock_api_server.py +630 -0
  997. flow_compute-0.0.1/tests_backup_20250802_120003/utils/ssh_test_server.py +205 -0
  998. flow_compute-0.0.1/tests_backup_20250802_120003/verification/instance_verifier.py +492 -0
  999. flow_compute-0.0.1/upload_code_design.md +85 -0
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1 @@
1
+ Signature: 8a477f597d28d172789f06886806bc55
File without changes
File without changes
@@ -0,0 +1,31 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(uv run pytest:*)",
5
+ "Bash(rg:*)",
6
+ "Bash(python -m pytest tests/test_basic.py -v)",
7
+ "Bash(python -m pytest tests/unit/test_volume_commands_comprehensive.py::TestVolumeDeleteCommand -xvs)",
8
+ "Bash(python -m pytest tests/unit/test_volume_commands_comprehensive.py::TestVolumeDeleteAllCommand -xvs)",
9
+ "Bash(python -m pytest tests/integration/test_init_e2e.py tests/integration/test_init_reconfigure.py -v)",
10
+ "Bash(find:*)",
11
+ "Bash(cp:*)",
12
+ "Bash(mkdir:*)",
13
+ "Bash(git add:*)",
14
+ "Bash(python -m pytest tests/unit/test_implementation_showcase.py::TestIntegrationExample::test_complete_workflow_with_network_failures -v)",
15
+ "Bash(python3 -m pytest tests/unit/providers/fcp/test_script_sections.py -xvs -k \"test_docker\")",
16
+ "Bash(ls:*)",
17
+ "Bash(python3:*)",
18
+ "Bash(python -m pytest tests/integration/test_concurrent_operations.py --collect-only)",
19
+ "Bash(uv run:*)",
20
+ "Bash(grep:*)",
21
+ "Bash(python:*)",
22
+ "Bash(uv run:*)",
23
+ "Bash(rm:*)",
24
+ "Bash(flow cancel:*)",
25
+ "Bash(ssh:*)",
26
+ "Bash(uv build:*)",
27
+ "Bash(cat:*)"
28
+ ],
29
+ "deny": []
30
+ }
31
+ }
@@ -0,0 +1,96 @@
1
+ # Flow SDK ignore file - exclude unnecessary files from code upload
2
+
3
+ # Python
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+ *.so
8
+ .Python
9
+ build/
10
+ develop-eggs/
11
+ dist/
12
+ downloads/
13
+ eggs/
14
+ .eggs/
15
+ lib/
16
+ lib64/
17
+ parts/
18
+ sdist/
19
+ var/
20
+ wheels/
21
+ *.egg-info/
22
+ .installed.cfg
23
+ *.egg
24
+ MANIFEST
25
+
26
+ # Virtual environments
27
+ .env
28
+ .venv
29
+ env/
30
+ venv/
31
+ ENV/
32
+ env.bak/
33
+ venv.bak/
34
+ **/venv/
35
+ **/.venv/
36
+
37
+ # Testing
38
+ .tox/
39
+ .nox/
40
+ .coverage
41
+ .coverage.*
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+ *.cover
46
+ .hypothesis/
47
+ .pytest_cache/
48
+ htmlcov/
49
+
50
+ # Git
51
+ .git/
52
+ .gitignore
53
+
54
+ # IDE
55
+ .idea/
56
+ .vscode/
57
+ *.swp
58
+ *.swo
59
+ *~
60
+ .project
61
+ .pydevproject
62
+
63
+ # Documentation
64
+ docs/_build/
65
+ site/
66
+
67
+ # Jupyter
68
+ .ipynb_checkpoints
69
+ *.ipynb
70
+
71
+ # OS
72
+ .DS_Store
73
+ .DS_Store?
74
+ ._*
75
+ .Spotlight-V100
76
+ .Trashes
77
+ ehthumbs.db
78
+ Thumbs.db
79
+
80
+ # Project specific
81
+ tests/
82
+ test_*.py
83
+ *.log
84
+ *.md
85
+ llms.txt
86
+ examples/
87
+ scripts/
88
+ tmp/
89
+ mithril/
90
+ mithril-js/
91
+ dist/
92
+ docs/
93
+ uv.lock
94
+ .pytest_cache/
95
+ .mypy_cache/
96
+ .ruff_cache/
@@ -0,0 +1,59 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ package_name:
9
+ description: 'Package name to publish'
10
+ required: true
11
+ type: choice
12
+ options:
13
+ - flow-sdk
14
+ - mithril-ai
15
+ - flow-acc
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: '3.11'
27
+
28
+ - name: Install dependencies
29
+ run: |
30
+ python -m pip install --upgrade pip
31
+ pip install build twine
32
+
33
+ - name: Update package name if needed
34
+ if: github.event_name == 'workflow_dispatch' && github.event.inputs.package_name != 'flow-sdk'
35
+ run: |
36
+ # Backup original
37
+ cp pyproject.toml pyproject.toml.bak
38
+
39
+ # Update package name
40
+ sed -i "s/^name = \"flow-sdk\"/name = \"${{ github.event.inputs.package_name }}\"/" pyproject.toml
41
+
42
+ # Show the change
43
+ echo "Updated package name to: ${{ github.event.inputs.package_name }}"
44
+ grep "^name = " pyproject.toml
45
+
46
+ - name: Build package
47
+ run: python -m build
48
+
49
+ - name: Check package
50
+ run: twine check dist/*
51
+
52
+ - name: Publish to PyPI
53
+ env:
54
+ TWINE_USERNAME: __token__
55
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
56
+ run: |
57
+ twine upload dist/*
58
+ echo "Package published to PyPI"
59
+ echo "Install with: pip install ${{ github.event.inputs.package_name || 'flow-sdk' }}"
@@ -0,0 +1,123 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.so
5
+
6
+ # Distribution / packaging
7
+ .Python
8
+ build/
9
+ develop-eggs/
10
+ eggs/
11
+ sdist/
12
+ *.egg-info/
13
+ .egg/
14
+ dist/
15
+ pip-wheel-metadata/
16
+
17
+ # Virtual Environments
18
+ env/
19
+ venv/
20
+ ENV/
21
+ .venv/
22
+
23
+ # IPython/Jupyter
24
+ .ipynb_checkpoints/
25
+
26
+ # OS files
27
+ .DS_Store
28
+
29
+ # Pytest cache
30
+ .pytest_cache/
31
+
32
+ # Ignore generate_catalogue and catalogue_manager
33
+ src/flow/scripts/generate_catalogue.py
34
+ src/flow/managers/catalogue_manager.py
35
+
36
+ # Ignore log files
37
+ coverage_debug.log
38
+
39
+ # Ignore packaging metadata
40
+ flow.egg-info/
41
+
42
+ # Internal documentation
43
+ .internal_documents/
44
+ .internal_docs/
45
+ docs/internal/
46
+
47
+ # Coverage reports
48
+ .coverage
49
+ .coverage.*
50
+ htmlcov/
51
+ .hypothesis/
52
+ coverage.xml
53
+ *.cover
54
+
55
+ # Test outputs
56
+ test_report_*.json
57
+ pytest_results.xml
58
+ .tox/
59
+
60
+ # Temporary files
61
+ tmp/
62
+ temp/
63
+ test-env/
64
+ *.tmp
65
+ *.temp
66
+
67
+ # Lock files
68
+ uv.lock
69
+
70
+ # Scripts directory
71
+ /scripts
72
+
73
+ # Archive - development history
74
+ .archive/
75
+
76
+ # API data files
77
+ api_data/
78
+
79
+ # Development/debug scripts
80
+ gather_api_formats.py
81
+ test_debug.py
82
+ list_available.py
83
+ cleanup_all_resources.py
84
+ cancel_instances.py
85
+
86
+ # Changelog (for now)
87
+ CHANGELOG.md
88
+
89
+ # Hidden development directories
90
+ .archive/
91
+ .backup_colab_docs/
92
+ .hypothesis/
93
+ .internal_documents/
94
+ .pytest_cache/
95
+ .ruff_cache/
96
+ .venv/
97
+
98
+ # Project instructions (private)
99
+
100
+ # GitBook documentation
101
+ docs/gitbook/
102
+ docs/gitbook-foundry-integration/
103
+ docs/gitbook-*.zip
104
+ docs/*.zip
105
+
106
+ # Design documents
107
+ docs/bonus/
108
+ docs/*/bonus/
109
+ **/documentation-design.md
110
+ docs/design/
111
+ docs/proposals/
112
+
113
+ # GitBook build artifacts
114
+ _book/
115
+ .gitbook/
116
+
117
+ # Documentation drafts
118
+ docs/drafts/
119
+ docs/scratch/
120
+
121
+ # Duplicate/temporary project folders
122
+ flow-sdk-final/
123
+ flow-sdk-*/
@@ -0,0 +1,82 @@
1
+ # Contributing to Flow SDK
2
+
3
+ We love your input! We want to make contributing to Flow SDK as easy and transparent as possible, whether it's:
4
+
5
+ - Reporting a bug
6
+ - Discussing the current state of the code
7
+ - Submitting a fix
8
+ - Proposing new features
9
+ - Becoming a maintainer
10
+
11
+ ## Development Process
12
+
13
+ We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
14
+
15
+ 1. Fork the repo and create your branch from `main`
16
+ 2. If you've added code that should be tested, add tests
17
+ 3. If you've changed APIs, update the documentation
18
+ 4. Ensure the test suite passes
19
+ 5. Make sure your code follows the existing style
20
+ 6. Issue that pull request!
21
+
22
+ ## Setup
23
+
24
+ ```bash
25
+ # Clone your fork
26
+ git clone https://github.com/YOUR_USERNAME/flow-sdk
27
+ cd flow-sdk
28
+
29
+ # Create virtual environment
30
+ uv venv
31
+ source .venv/bin/activate
32
+
33
+ # Install in development mode
34
+ uv pip install -e ".[dev]"
35
+
36
+ # Run tests
37
+ pytest
38
+ ```
39
+
40
+ ## Code Style
41
+
42
+ - We use [Black](https://github.com/psf/black) for Python code formatting
43
+ - We follow the [Google Python Style Guide](https://google.github.io/styleguide/pyguide.html)
44
+ - Run `black .` before committing
45
+ - Run `ruff check .` to check for common issues
46
+
47
+ ## Testing
48
+
49
+ - Write tests for any new functionality
50
+ - Ensure all tests pass: `pytest`
51
+ - Aim for high test coverage
52
+ - Test edge cases and error conditions
53
+
54
+ ## Pull Request Process
55
+
56
+ 1. Update the README.md with details of changes to the interface, if applicable
57
+ 2. Update the CHANGELOG.md with your changes
58
+ 3. The PR will be merged once you have the sign-off of at least one maintainer
59
+
60
+ ## Any contributions you make will be under the Apache 2.0 License
61
+
62
+ When you submit code changes, your submissions are understood to be under the same [Apache 2.0 License](LICENSE.txt) that covers the project.
63
+
64
+ ## Report bugs using GitHub Issues
65
+
66
+ We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/foundrytechnologies/flow-v2/issues/new).
67
+
68
+ ## Write bug reports with detail, background, and sample code
69
+
70
+ **Great Bug Reports** tend to have:
71
+
72
+ - A quick summary and/or background
73
+ - Steps to reproduce
74
+ - Be specific!
75
+ - Give sample code if you can
76
+ - What you expected would happen
77
+ - What actually happens
78
+ - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
79
+
80
+ ## License
81
+
82
+ By contributing, you agree that your contributions will be licensed under its Apache 2.0 License.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2025 Foundry Technologies, Inc.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,31 @@
1
+ .PHONY: help install dev test build publish-test publish clean
2
+
3
+ help:
4
+ @echo "Flow SDK Development Commands"
5
+ @echo "============================"
6
+ @echo "install Install flow-sdk in current environment"
7
+ @echo "dev Install with dev dependencies"
8
+ @echo "test Run tests"
9
+ @echo "build Build distribution packages"
10
+ @echo "publish Publish to PyPI"
11
+ @echo "clean Remove build artifacts"
12
+
13
+ install:
14
+ uv sync
15
+
16
+ dev:
17
+ uv sync --dev
18
+
19
+ test:
20
+ uv run pytest
21
+
22
+ build:
23
+ uv run python -m build
24
+
25
+ publish: build
26
+ uv run twine upload dist/*
27
+
28
+ clean:
29
+ rm -rf dist/ build/ *.egg-info
30
+ find . -type d -name __pycache__ -exec rm -rf {} +
31
+ find . -type f -name "*.pyc" -delete