shoestring-assembler 0.2.5__tar.gz → 0.2.7__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 (170) hide show
  1. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/PKG-INFO +1 -1
  2. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/pyproject.toml +1 -1
  3. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/__init__.py +1 -1
  4. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/cli.py +53 -20
  5. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/action/docker.py +39 -101
  6. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/action/user_config.py +4 -1
  7. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/dsl/parsetab.py +4 -4
  8. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/dsl/prompt_criteria.py +6 -1
  9. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/_events.py +1 -1
  10. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/_prompt_questions.py +6 -7
  11. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/user_config.py +8 -4
  12. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/app.py +16 -0
  13. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/config_inputs.py +61 -1
  14. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/engine.py +7 -6
  15. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/plain_cli/__init__.py +14 -2
  16. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/PKG-INFO +1 -1
  17. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/AUTHORS.rst +0 -0
  18. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/CONTRIBUTING.rst +0 -0
  19. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/HISTORY.rst +0 -0
  20. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/LICENSE +0 -0
  21. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/MANIFEST.in +0 -0
  22. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/README.rst +0 -0
  23. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/setup.cfg +0 -0
  24. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/api.doctree +0 -0
  25. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/authors.doctree +0 -0
  26. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/contributing.doctree +0 -0
  27. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/environment.pickle +0 -0
  28. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/file_structure.doctree +0 -0
  29. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/modules.doctree +0 -0
  30. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.doctree +0 -0
  31. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.engine.doctree +0 -0
  32. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.interface.doctree +0 -0
  33. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.interface.events.doctree +0 -0
  34. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.model.doctree +0 -0
  35. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.model.schemas.doctree +0 -0
  36. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.components.doctree +0 -0
  37. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.doctree +0 -0
  38. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.screens.doctree +0 -0
  39. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.view.doctree +0 -0
  40. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/generated/shoestring_assembler.view.plain_cli.doctree +0 -0
  41. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/history.doctree +0 -0
  42. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/index.doctree +0 -0
  43. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/installation.doctree +0 -0
  44. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/modules.doctree +0 -0
  45. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/recipe.doctree +0 -0
  46. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/setup.doctree +0 -0
  47. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/sources.doctree +0 -0
  48. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/usage.doctree +0 -0
  49. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/doctrees/user_config.doctree +0 -0
  50. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/api.md +0 -0
  51. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/authors.md +0 -0
  52. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/contributing.md +0 -0
  53. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/file_structure.md +0 -0
  54. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/modules.md +0 -0
  55. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.engine.md +0 -0
  56. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.interface.events.md +0 -0
  57. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.interface.md +0 -0
  58. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.md +0 -0
  59. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.model.md +0 -0
  60. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.model.schemas.md +0 -0
  61. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.components.md +0 -0
  62. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.md +0 -0
  63. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.screens.md +0 -0
  64. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.view.md +0 -0
  65. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/generated/shoestring_assembler.view.plain_cli.md +0 -0
  66. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/history.md +0 -0
  67. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/index.md +0 -0
  68. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/installation.md +0 -0
  69. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/modules.md +0 -0
  70. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/recipe.md +0 -0
  71. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/setup.md +0 -0
  72. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/sources.md +0 -0
  73. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/usage.md +0 -0
  74. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/_build/markdown/user_config.md +0 -0
  75. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/api.rst +0 -0
  76. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/authors.rst +0 -0
  77. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/conf.py +0 -0
  78. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/contributing.rst +0 -0
  79. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/file_structure.md +0 -0
  80. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/modules.rst +0 -0
  81. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.engine.rst +0 -0
  82. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.interface.events.rst +0 -0
  83. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.interface.rst +0 -0
  84. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.model.rst +0 -0
  85. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.model.schemas.rst +0 -0
  86. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.rst +0 -0
  87. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.view.cli_app.components.rst +0 -0
  88. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.view.cli_app.rst +0 -0
  89. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.view.cli_app.screens.rst +0 -0
  90. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.view.plain_cli.rst +0 -0
  91. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/generated/shoestring_assembler.view.rst +0 -0
  92. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/history.rst +0 -0
  93. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/index.rst +0 -0
  94. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/installation.rst +0 -0
  95. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/make.bat +0 -0
  96. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/modules.rst +0 -0
  97. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/recipe.md +0 -0
  98. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/setup.md +0 -0
  99. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/sources.md +0 -0
  100. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/usage.rst +0 -0
  101. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/docs/user_config.md +0 -0
  102. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/constants.py +0 -0
  103. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/display.py +0 -0
  104. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/__init__.py +0 -0
  105. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/action/assemble.py +0 -0
  106. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/action/filesystem.py +0 -0
  107. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/action/git.py +0 -0
  108. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/engine/engine.py +0 -0
  109. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/dsl/parser.out +0 -0
  110. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/source/__init__.py +0 -0
  111. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/source/filesystem.py +0 -0
  112. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/source/git.py +0 -0
  113. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/implementation/vc/git.py +0 -0
  114. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/__init__.py +0 -0
  115. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/__init__.py +0 -0
  116. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/audit.py +0 -0
  117. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/input.py +0 -0
  118. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/progress.py +0 -0
  119. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/events/updates.py +0 -0
  120. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/pipe/pipe.py +0 -0
  121. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/signals.py +0 -0
  122. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/state_machine/process.MD +0 -0
  123. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/interface/state_machine/steps.py +0 -0
  124. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/__init__.py +0 -0
  125. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/_prompt_outputs.py +0 -0
  126. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/base_module.py +0 -0
  127. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/common.py +0 -0
  128. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/container.py +0 -0
  129. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/filesystem.py +0 -0
  130. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/infrastructure_module.py +0 -0
  131. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/installed.py +0 -0
  132. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/prompts.py +0 -0
  133. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/recipe.py +0 -0
  134. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/schemas/__init__.py +0 -0
  135. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/schemas/meta.schema.json +0 -0
  136. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/schemas/recipe.schema.json +0 -0
  137. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/schemas/schema_validators.py +0 -0
  138. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/service_module.py +0 -0
  139. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/solution.py +0 -0
  140. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/model/source.py +0 -0
  141. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/solution_picker.py +0 -0
  142. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/utilities/minimal_mustache.py +0 -0
  143. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/utilities/path.py +0 -0
  144. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/__init__.py +0 -0
  145. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/__init__.py +0 -0
  146. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/components/__init__.py +0 -0
  147. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/components/_bottom_bar.py +0 -0
  148. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/layout.tcss +0 -0
  149. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/__init__.py +0 -0
  150. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/config.tcss +0 -0
  151. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/download.py +0 -0
  152. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/download.tcss +0 -0
  153. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/engine.tcss +0 -0
  154. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/find_solution.py +0 -0
  155. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/home.py +0 -0
  156. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/home.tcss +0 -0
  157. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/modals.py +0 -0
  158. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/modals.tcss +0 -0
  159. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/select_update.py +0 -0
  160. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/solution_picker.py +0 -0
  161. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/cli_app/screens/solution_picker.tcss +0 -0
  162. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler/view/plain_cli/audit_events.py +0 -0
  163. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/SOURCES.txt +0 -0
  164. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/dependency_links.txt +0 -0
  165. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/entry_points.txt +0 -0
  166. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/requires.txt +0 -0
  167. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/src/shoestring_assembler.egg-info/top_level.txt +0 -0
  168. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/tests/__init__.py +0 -0
  169. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/tests/console.log +0 -0
  170. {shoestring_assembler-0.2.5 → shoestring_assembler-0.2.7}/tests/test_shoestring_assembler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shoestring_assembler
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Assembles Shoestring Solutions from a solution recipe
5
5
  Author-email: Greg Hawkridge <gth24@cam.ac.uk>
6
6
  Maintainer-email: Greg Hawkridge <gth24@cam.ac.uk>
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "shoestring_assembler"
9
- version = "0.2.5"
9
+ version = "0.2.7"
10
10
  description = "Assembles Shoestring Solutions from a solution recipe"
11
11
  readme = "README.rst"
12
12
  authors = [
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """Greg Hawkridge"""
4
4
  __email__ = 'gth24@cam.ac.uk'
5
- __version__ = '0.2.5'
5
+ __version__ = '0.2.7'
@@ -13,18 +13,6 @@ import asyncio
13
13
 
14
14
  typer_app = typer.Typer(name="Shoestring Assembler", no_args_is_help=True)
15
15
 
16
-
17
- @typer_app.command()
18
- def check_recipe(
19
- recipe_location: Annotated[
20
- str, typer.Argument(help="Path to recipe file")
21
- ] = "./recipe.toml",
22
- ):
23
- Display.print_top_header("Checking Recipe")
24
- Recipe.load(recipe_location)
25
- Display.print_top_header("Finished")
26
-
27
-
28
16
  @typer_app.command()
29
17
  def download(
30
18
  verbose: Annotated[
@@ -32,7 +20,7 @@ def download(
32
20
  ] = False,
33
21
  ):
34
22
  """
35
- Downloads the specified solution
23
+ Download a new solution
36
24
  """
37
25
  execute(Action.DOWNLOAD, verbose=verbose)
38
26
 
@@ -69,7 +57,7 @@ def update(
69
57
 
70
58
  @typer_app.command()
71
59
  def assemble(
72
- recipe_location: Annotated[
60
+ recipe: Annotated[
73
61
  str, typer.Argument(help="Path to recipe file")
74
62
  ] = "./recipe.toml",
75
63
  download: bool = True,
@@ -82,7 +70,7 @@ def assemble(
82
70
  """
83
71
  execute(
84
72
  Action.ASSEMBLE,
85
- recipe_location=recipe_location,
73
+ recipe_location=recipe,
86
74
  verbose=verbose,
87
75
  download=download,
88
76
  )
@@ -97,31 +85,78 @@ def reconfigure(
97
85
  bool, typer.Option("--verbose", help="Show extra logs.")
98
86
  ] = False,
99
87
  ):
88
+ """
89
+ Generates configuration files based on user input.
90
+ """
100
91
  execute(Action.RECONFIGURE, recipe_location=recipe_location, verbose=verbose)
101
92
 
102
93
 
103
94
  @typer_app.command()
104
95
  def build():
96
+ """
97
+ Builds the solution's docker images
98
+ """
105
99
  execute(Action.BUILD)
106
100
 
107
101
 
108
102
  @typer_app.command()
109
103
  def setup():
104
+ """
105
+ Runs setup scripts for containers that have them
106
+ """
110
107
  execute(Action.SETUP)
111
108
 
112
109
 
113
110
  @typer_app.command()
114
111
  def start():
112
+ """
113
+ Starts the solution
114
+ """
115
115
  execute(Action.START)
116
116
 
117
117
 
118
118
  @typer_app.command()
119
119
  def stop():
120
+ """
121
+ Stops the solution
122
+ """
120
123
  execute(Action.STOP)
121
124
 
122
125
 
126
+ @typer_app.command()
127
+ def restart():
128
+ """
129
+ Stops, rebuilds, and starts the solution
130
+ """
131
+ execute(Action.RESTART)
132
+
133
+
134
+ @typer_app.command()
135
+ def check_recipe(
136
+ recipe: Annotated[
137
+ str, typer.Argument(help="Path to recipe file")
138
+ ] = "./recipe.toml",
139
+ ):
140
+ """
141
+ Validates the provided recipe file
142
+ """
143
+ Display.print_top_header("Checking Recipe")
144
+
145
+ loop = asyncio.get_event_loop()
146
+ check_task = loop.create_task(Recipe.load(recipe))
147
+ try:
148
+ loop.run_until_complete(check_task)
149
+ Display.print_complete("Recipe is valid")
150
+ Display.print_top_header("Finished")
151
+ except asyncio.CancelledError:
152
+ Display.print_error("Failed")
153
+
154
+
123
155
  @typer_app.command()
124
156
  def logs(service: Annotated[str, typer.Option(help="Service to log")] = None):
157
+ """
158
+ Shows the logs for the solution or a specific service if specified
159
+ """
125
160
  from shoestring_assembler.engine.action.docker import Docker
126
161
  from shoestring_assembler.model.solution import SolutionModel
127
162
 
@@ -129,13 +164,11 @@ def logs(service: Annotated[str, typer.Option(help="Service to log")] = None):
129
164
  Docker.logs(solution_model, service)
130
165
 
131
166
 
132
- @typer_app.command()
133
- def restart():
134
- execute(Action.RESTART)
135
-
136
-
137
167
  @typer_app.command()
138
168
  def app():
169
+ """
170
+ Runs the interactive CLI application
171
+ """
139
172
  from shoestring_assembler.view.cli_app import SolutionAssemblerApp
140
173
 
141
174
  app = SolutionAssemblerApp()
@@ -16,7 +16,7 @@ from pathlib import Path
16
16
  import yaml
17
17
  import json
18
18
  import datetime
19
-
19
+ import asyncio
20
20
 
21
21
  # TODO - look at --progress json tag for all operations - when not affected by bug
22
22
 
@@ -112,6 +112,7 @@ class Docker:
112
112
  if err_line:
113
113
  await Update.SuccessMsg(f"{err_line}")
114
114
 
115
+ await asyncio.sleep(0) # yield
115
116
  process.poll()
116
117
 
117
118
  process.wait()
@@ -141,12 +142,20 @@ class Docker:
141
142
  command.extend(setup_cmd)
142
143
  else:
143
144
  command.append(setup_cmd)
144
- # process = subprocess.run(command, capture_output=False)
145
- process = subprocess.Popen(
146
- command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin= subprocess.PIPE
145
+
146
+ process = await asyncio.create_subprocess_exec(
147
+ *command,
148
+ stdin=asyncio.subprocess.PIPE,
149
+ stdout=asyncio.subprocess.PIPE,
150
+ stderr=asyncio.subprocess.STDOUT,
147
151
  )
148
152
 
149
- await handle_setup_process(process)
153
+ try:
154
+ await handle_async_setup_process(process)
155
+ except asyncio.CancelledError: # ensure subprocess is terminated on task cancellation
156
+ process.kill()
157
+ await process.wait()
158
+ raise
150
159
 
151
160
  if process.returncode == 0:
152
161
  await Update.InfoMsg(f"{service_name} - Setup Successful")
@@ -247,103 +256,31 @@ class Docker:
247
256
  except json.JSONDecodeError:
248
257
  return None
249
258
 
250
-
251
- def reader_thread(stdout_pipe, output_queue):
252
- """
253
- Reads data from the subprocess's stdout and places it in a queue.
254
- This prevents the main thread from blocking on a read call.
255
- """
256
- try:
257
- out_buffer = bytearray()
258
- while True:
259
- out_line = None
260
- char = stdout_pipe.read(1)
261
- if char == b"\n":
262
- out_line = out_buffer.decode()
263
- out_buffer.clear()
264
- elif char:
265
- out_buffer += char
266
- else:
267
- # end of file
268
- break
269
-
270
- if out_line:
271
- output_queue.put(out_line)
272
- except Exception as e:
273
- print(f"Reader thread error: {e}")
274
-
275
-
276
- # A thread to write to the subprocess's stdin
277
- def writer_thread(stdin_pipe, input_queue):
278
- """
279
- Reads messages from an input queue and writes them to the subprocess's stdin.
280
- This allows the main thread to send messages without blocking.
281
- """
282
- try:
283
- while True:
284
- # Use get(block=True) to wait for a message
285
- message = input_queue.get()
286
- if message is None: # Use a sentinel value to signal termination
287
- break
288
- stdin_pipe.write(f"{message}\n".encode())
289
- stdin_pipe.flush()
290
- except Exception as e:
291
- print(f"Writer thread error: {e}")
292
-
293
-
294
- import threading
295
- import queue
296
-
297
- async def handle_setup_process(process: subprocess.Popen):
298
- # Queues for inter-thread communication
299
- input_queue = queue.Queue() # For sending messages to the writer thread
300
- output_queue = queue.Queue() # For receiving messages from the reader thread
301
-
302
- # Create and start the I/O threads
303
- reader = threading.Thread(target=reader_thread, args=(process.stdout, output_queue))
304
- writer = threading.Thread(target=writer_thread, args=(process.stdin, input_queue))
305
-
306
- reader.daemon = (
307
- True # Allows the main program to exit even if the thread is still running
308
- )
309
- writer.daemon = True
310
-
311
- reader.start()
312
- writer.start()
313
-
259
+ async def handle_async_setup_process(process: asyncio.subprocess.Process):
314
260
  while process.returncode == None:
261
+ response = await process.stdout.readline()
315
262
  try:
316
- # Use a non-blocking get to check if the queue has data
317
- response = output_queue.get(block=False)
318
- try:
319
- payload = json.loads(response)
320
- match payload.get("type"):
321
- case "input":
322
- response = await Input.make_request(payload)
323
- if response is not None:
324
- input_queue.put(response)
325
- case "output":
326
- message = payload.get("message")
327
- match payload.get("variant"):
328
- case "heading":
329
- await Update.StepHeading(message)
330
- case "error":
331
- await Update.ErrorMsg(message)
332
- case "success":
333
- await Update.SuccessMsg(message)
334
- case _:
335
- await Update.InfoMsg(message)
336
- case _:
337
- print("NO TYPE")
338
- except json.JSONDecodeError:
339
- await Update.InfoMsg(response.strip())
340
-
341
- except queue.Empty:
342
- # No data available, continue doing other work
343
- pass
344
- process.poll()
345
-
346
- input_queue.put(None) # Signal the writer thread to terminate
263
+ payload = json.loads(response)
264
+ match payload.get("type"):
265
+ case "input":
266
+ response = await Input.make_request(payload)
267
+ if response is not None:
268
+ process.stdin.write((response + "\n").encode())
269
+ case "output":
270
+ message = payload.get("message")
271
+ match payload.get("variant"):
272
+ case "heading":
273
+ await Update.StepHeading(message)
274
+ case "error":
275
+ await Update.ErrorMsg(message)
276
+ case "success":
277
+ await Update.SuccessMsg(message)
278
+ case _:
279
+ await Update.InfoMsg(message)
280
+ case _:
281
+ print("NO TYPE")
282
+ except json.JSONDecodeError:
283
+ await Update.InfoMsg(response.decode().strip())
347
284
 
348
285
 
349
286
  async def parse_docker_json_progress(process: subprocess.Popen, callback):
@@ -404,7 +341,8 @@ async def parse_docker_json_progress(process: subprocess.Popen, callback):
404
341
  await callback(line_content)
405
342
  except:
406
343
  await Update.ErrorMsg(err_line)
407
-
344
+
345
+ await asyncio.sleep(0) # yield
408
346
  process.poll()
409
347
 
410
348
  process.wait()
@@ -48,7 +48,10 @@ class UserConfig:
48
48
  sm.user_config.version = sm.user_config.template.version
49
49
 
50
50
  # write answers
51
- sm.user_config.prev_answers = sm.user_config.answers
51
+ sm.user_config.prev_answers = sm.user_config.answer_context
52
+ await Update.DebugLog(
53
+ f"Saved answers for {sm.name} - {sm.user_config.answer_context}"
54
+ )
52
55
 
53
56
 
54
57
  """
@@ -27,8 +27,8 @@ for _k, _v in _lr_goto_items.items():
27
27
  del _lr_goto_items
28
28
  _lr_productions = [
29
29
  ("S' -> expression","S'",1,None,None,None),
30
- ('expression -> ENTRY = ENTRY','expression',3,'p_expression_assign','prompt_criteria.py',89),
31
- ('expression -> expression & expression','expression',3,'p_expression_binop','prompt_criteria.py',94),
32
- ('expression -> expression | expression','expression',3,'p_expression_binop','prompt_criteria.py',95),
33
- ('expression -> ( expression )','expression',3,'p_expression_group','prompt_criteria.py',103),
30
+ ('expression -> ENTRY = ENTRY','expression',3,'p_expression_assign','prompt_criteria.py',92),
31
+ ('expression -> expression & expression','expression',3,'p_expression_binop','prompt_criteria.py',102),
32
+ ('expression -> expression | expression','expression',3,'p_expression_binop','prompt_criteria.py',103),
33
+ ('expression -> ( expression )','expression',3,'p_expression_group','prompt_criteria.py',111),
34
34
  ]
@@ -90,7 +90,12 @@ class Or(Expression):
90
90
 
91
91
  def p_expression_assign(p):
92
92
  'expression : ENTRY "=" ENTRY'
93
- p[0] = Statement(p[1], p[3])
93
+ value = p[3]
94
+ if p[3] == "true":
95
+ value = True
96
+ elif p[3] == "false":
97
+ value = False
98
+ p[0] = Statement(p[1], value)
94
99
 
95
100
 
96
101
  def p_expression_binop(p):
@@ -29,4 +29,4 @@ class EventPipe:
29
29
  async def __call_callback(self, event):
30
30
  if self.__callback is not None:
31
31
  await self.__callback(event)
32
- await asyncio.sleep(0)
32
+ await asyncio.sleep(0) # yield
@@ -10,6 +10,8 @@ class Question:
10
10
  return Question.Select(id, key, details)
11
11
  case "text":
12
12
  return Question.Text(id, key, details)
13
+ case "bool":
14
+ return Question.Bool(id,key,details)
13
15
 
14
16
  class Base:
15
17
  def __init__(self, id, key, details):
@@ -39,7 +41,6 @@ class Question:
39
41
  return self.criteria.matches(context)
40
42
 
41
43
  class Text(Base):
42
-
43
44
  def __init__(self, id, key, details):
44
45
  super().__init__(id, key, details)
45
46
 
@@ -52,11 +53,9 @@ class Question:
52
53
  self.__options[key] = prompt
53
54
 
54
55
  @property
55
- def choices(self) -> list["Prompts.Select.Choice"]:
56
+ def choices(self):
56
57
  return self.__options
57
58
 
58
- class Value(Base):
59
-
60
- def __init__(self, prompt_config, id):
61
- super().__init__(prompt_config, id)
62
- self.value = prompt_config.get("value")
59
+ class Bool(Base):
60
+ def __init__(self, id, key, details):
61
+ super().__init__(id, key, details)
@@ -209,13 +209,17 @@ class UserConfig:
209
209
  Returns a merged dict of template defaults and previous answers.
210
210
  Preference is given to previous answers
211
211
  """
212
+ val = {**self.template.defaults, **self.prev_answers}
213
+ print(f"DEF {val}")
212
214
  return {**self.template.defaults, **self.prev_answers}
213
215
 
214
216
  @property
215
- def context(self):
216
- return self.template.prompts.generate_outputs({**self.prompt_defaults,**self.answers})
217
-
218
-
217
+ def answer_context(self):
218
+ return {**self.prompt_defaults, **self.answers}
219
+
220
+ @property
221
+ def context(self): # file gen context
222
+ return self.template.prompts.generate_outputs(self.answer_context)
219
223
 
220
224
 
221
225
  class Version(tuple):
@@ -15,6 +15,7 @@ from shoestring_assembler.interface.state_machine import steps
15
15
 
16
16
  from shoestring_assembler.interface.events.updates import FatalError
17
17
  from shoestring_assembler.engine.engine import Engine
18
+ from textual.worker import WorkerCancelled
18
19
 
19
20
 
20
21
  class SolutionAssemblerApp(App):
@@ -136,4 +137,19 @@ class SolutionAssemblerApp(App):
136
137
  # display error modal and then quit
137
138
  self.push_screen(screens.FatalErrorModal(error_message=fatal_error.message))
138
139
 
140
+ self.action_quit()
141
+
142
+ # overload to add cleanup
143
+ async def action_quit(self) -> None:
144
+ """An [action](/guide/actions) to quit the app as soon as possible."""
145
+ self.engine_worker.cancel()
146
+ try:
147
+ await self.engine_worker.wait()
148
+ except WorkerCancelled:
149
+ pass
150
+ self.monitor_worker.cancel()
151
+ try:
152
+ await self.monitor_worker.wait()
153
+ except WorkerCancelled:
154
+ pass
139
155
  self.exit()
@@ -114,7 +114,7 @@ class ServiceModuleEntry(VerticalScroll):
114
114
  yield Label("No user config prompts for this service module")
115
115
  return
116
116
 
117
- prompts.start(name, user_config.answers)
117
+ prompts.start(name, user_config.answer_context)
118
118
  Display.print_debug(f"Initialising Prompts: {prompts}")
119
119
  while question := prompts.next():
120
120
  Display.print_debug(
@@ -148,6 +148,20 @@ class ServiceModuleEntry(VerticalScroll):
148
148
  question_prompt=question.prompt,
149
149
  value=str(real_value),
150
150
  )
151
+ case Question.Bool():
152
+ default_value = user_config.prompt_defaults.get(question.key)
153
+ answer_value = user_config.answers.get(question.key)
154
+ real_value = (
155
+ answer_value
156
+ if answer_value is not None
157
+ else default_value if default_value is not None else False
158
+ )
159
+
160
+ yield BoolQuestion(
161
+ question_id=question.id,
162
+ question_prompt=question.prompt,
163
+ value=real_value,
164
+ )
151
165
 
152
166
  def fix_focus(self):
153
167
  if self.last_changed:
@@ -188,6 +202,18 @@ class ServiceModuleEntry(VerticalScroll):
188
202
  # Audit.submit("text_input", Audit.Type.Expected, key=prompt_id, value=value)
189
203
  self.last_changed = prompt_id
190
204
 
205
+ @on(Button.Pressed)
206
+ def handle_button_press(self, message: Button.Pressed):
207
+ prompt_id = message.button.id
208
+ value = message.button.variant == "error"
209
+
210
+ prompt = self.service_module.user_config.template.prompts.get(prompt_id)
211
+ self.service_module.user_config.answers[prompt.key] = value
212
+
213
+ self.last_changed = prompt_id
214
+ self.refresh_flag = not self.refresh_flag
215
+ self.call_after_refresh(self.fix_focus)
216
+
191
217
 
192
218
  class SelectQuestion(VerticalGroup):
193
219
 
@@ -265,3 +291,37 @@ class TextQuestion(VerticalGroup):
265
291
  def compose(self):
266
292
  yield Label(self.question_prompt)
267
293
  yield Input(value=self.value, id=self.question_id)
294
+
295
+
296
+ class BoolQuestion(VerticalGroup):
297
+
298
+ def __init__(
299
+ self,
300
+ *children,
301
+ question_prompt="",
302
+ value=None,
303
+ question_id=None,
304
+ name=None,
305
+ id=None,
306
+ classes=None,
307
+ disabled=False,
308
+ markup=True,
309
+ ):
310
+ super().__init__(
311
+ *children,
312
+ name=name,
313
+ id=id,
314
+ classes=classes,
315
+ disabled=disabled,
316
+ markup=markup,
317
+ )
318
+ self.question_prompt = question_prompt
319
+ self.value = value
320
+ self.question_id = question_id
321
+
322
+ def compose(self):
323
+ yield Label(self.question_prompt)
324
+ text = "Yes" if self.value == True else "No"
325
+ variant = "success" if self.value == True else "error"
326
+
327
+ yield Button(text, variant=variant, id=self.question_id)
@@ -228,10 +228,11 @@ class PromptWrapper(HorizontalGroup):
228
228
 
229
229
 
230
230
  class StageLog(VerticalScroll):
231
- contents = reactive({}, recompose=True)
231
+ refresh_flag = reactive(bool, recompose=True)
232
232
 
233
233
  def __init__(self, *args, **kwargs):
234
234
  super().__init__(*args, **kwargs)
235
+ self.contents = {}
235
236
  self.id_counter = 0
236
237
  self.select_options = {}
237
238
 
@@ -328,13 +329,13 @@ class StageLog(VerticalScroll):
328
329
  @on(Select.Changed)
329
330
  def handle_select_changed(self, event: Select.Changed):
330
331
  self.select_options[event.select.name] = event.value
331
-
332
+
332
333
  @on(Button.Pressed, ".select_button")
333
334
  def handle_select_pressed(self, event: Button.Pressed):
334
335
  key = event.button.name
335
336
  if key in self.select_options:
336
337
  self.handle_input_result(key, self.select_options[key])
337
-
338
+
338
339
  @on(Button.Pressed, ".continue_button")
339
340
  def handle_continue_pressed(self, event: Button.Pressed):
340
341
  self.handle_input_result(event.button.name, "continue")
@@ -361,7 +362,7 @@ class StageLog(VerticalScroll):
361
362
 
362
363
  def clear(self):
363
364
  self.contents = {}
364
- self.mutate_reactive(StageLog.contents)
365
+ self.refresh_flag = not self.refresh_flag
365
366
 
366
367
  def set_progress(self):
367
368
  # import time
@@ -377,12 +378,12 @@ class StageLog(VerticalScroll):
377
378
 
378
379
  def handle_progress_update(self, event: ProgressEvent):
379
380
  self.contents[event.key] = event
380
- self.mutate_reactive(StageLog.contents)
381
+ self.refresh_flag = not self.refresh_flag
381
382
 
382
383
  def add_update(self, event):
383
384
  self.contents[f"{self.id_counter}"] = event
384
385
  self.id_counter += 1
385
- self.mutate_reactive(StageLog.contents)
386
+ self.refresh_flag = not self.refresh_flag
386
387
 
387
388
 
388
389
  class LogSection(VerticalGroup):
@@ -229,8 +229,8 @@ class PlainCLI:
229
229
  if prompt_list is None:
230
230
  pass
231
231
  else:
232
- prompt_list.start("", user_config.answers)
233
- while question := prompt_list.next(user_config.answers):
232
+ prompt_list.start("", user_config.answer_context)
233
+ while question := prompt_list.next(user_config.answer_context):
234
234
  match question:
235
235
  case Question.Select():
236
236
  default_value = user_config.prompt_defaults.get(
@@ -268,6 +268,18 @@ class PlainCLI:
268
268
  f"\[answered] {result}", log_level=5
269
269
  )
270
270
  user_config.answers[question.key] = result
271
+ case Question.Bool():
272
+ result = Prompt.ask(
273
+ question.prompt,
274
+ choices=["y", "n"],
275
+ default="y" if user_config.prompt_defaults.get(
276
+ question.key
277
+ ) else "n"
278
+ )
279
+ Display.print_log(
280
+ f"\[answered] {result}", log_level=5
281
+ )
282
+ user_config.answers[question.key] = result
271
283
  return "continue"
272
284
 
273
285
  case steps.PromptNoRecipe():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shoestring_assembler
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: Assembles Shoestring Solutions from a solution recipe
5
5
  Author-email: Greg Hawkridge <gth24@cam.ac.uk>
6
6
  Maintainer-email: Greg Hawkridge <gth24@cam.ac.uk>