fractal-server 2.16.6__py3-none-any.whl → 2.17.0a0__py3-none-any.whl

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 (111) hide show
  1. fractal_server/__init__.py +1 -1
  2. fractal_server/__main__.py +129 -22
  3. fractal_server/app/db/__init__.py +9 -11
  4. fractal_server/app/models/security.py +7 -3
  5. fractal_server/app/models/user_settings.py +0 -4
  6. fractal_server/app/models/v2/__init__.py +4 -0
  7. fractal_server/app/models/v2/profile.py +16 -0
  8. fractal_server/app/models/v2/project.py +3 -0
  9. fractal_server/app/models/v2/resource.py +130 -0
  10. fractal_server/app/models/v2/task_group.py +3 -0
  11. fractal_server/app/routes/admin/v2/__init__.py +4 -0
  12. fractal_server/app/routes/admin/v2/_aux_functions.py +55 -0
  13. fractal_server/app/routes/admin/v2/profile.py +86 -0
  14. fractal_server/app/routes/admin/v2/resource.py +229 -0
  15. fractal_server/app/routes/admin/v2/task_group_lifecycle.py +48 -82
  16. fractal_server/app/routes/api/__init__.py +26 -7
  17. fractal_server/app/routes/api/v2/_aux_functions.py +27 -1
  18. fractal_server/app/routes/api/v2/_aux_functions_history.py +2 -2
  19. fractal_server/app/routes/api/v2/_aux_functions_task_lifecycle.py +3 -3
  20. fractal_server/app/routes/api/v2/_aux_functions_tasks.py +7 -7
  21. fractal_server/app/routes/api/v2/project.py +5 -1
  22. fractal_server/app/routes/api/v2/submit.py +32 -24
  23. fractal_server/app/routes/api/v2/task.py +5 -0
  24. fractal_server/app/routes/api/v2/task_collection.py +36 -47
  25. fractal_server/app/routes/api/v2/task_collection_custom.py +11 -5
  26. fractal_server/app/routes/api/v2/task_collection_pixi.py +34 -40
  27. fractal_server/app/routes/api/v2/task_group_lifecycle.py +39 -82
  28. fractal_server/app/routes/auth/_aux_auth.py +3 -3
  29. fractal_server/app/routes/auth/current_user.py +45 -7
  30. fractal_server/app/routes/auth/oauth.py +1 -1
  31. fractal_server/app/routes/auth/users.py +9 -0
  32. fractal_server/app/routes/aux/_runner.py +2 -1
  33. fractal_server/app/routes/aux/validate_user_profile.py +62 -0
  34. fractal_server/app/routes/aux/validate_user_settings.py +12 -9
  35. fractal_server/app/schemas/user.py +20 -13
  36. fractal_server/app/schemas/user_settings.py +0 -4
  37. fractal_server/app/schemas/v2/__init__.py +11 -0
  38. fractal_server/app/schemas/v2/profile.py +72 -0
  39. fractal_server/app/schemas/v2/resource.py +117 -0
  40. fractal_server/app/security/__init__.py +6 -13
  41. fractal_server/app/security/signup_email.py +2 -2
  42. fractal_server/app/user_settings.py +2 -12
  43. fractal_server/config/__init__.py +23 -0
  44. fractal_server/config/_database.py +58 -0
  45. fractal_server/config/_email.py +170 -0
  46. fractal_server/config/_init_data.py +27 -0
  47. fractal_server/config/_main.py +216 -0
  48. fractal_server/config/_settings_config.py +7 -0
  49. fractal_server/images/tools.py +3 -3
  50. fractal_server/logger.py +3 -3
  51. fractal_server/main.py +14 -21
  52. fractal_server/migrations/versions/90f6508c6379_drop_useroauth_username.py +36 -0
  53. fractal_server/migrations/versions/a80ac5a352bf_resource_profile.py +195 -0
  54. fractal_server/runner/config/__init__.py +2 -0
  55. fractal_server/runner/config/_local.py +21 -0
  56. fractal_server/runner/config/_slurm.py +128 -0
  57. fractal_server/runner/config/slurm_mem_to_MB.py +63 -0
  58. fractal_server/runner/exceptions.py +4 -0
  59. fractal_server/runner/executors/base_runner.py +17 -7
  60. fractal_server/runner/executors/local/get_local_config.py +21 -86
  61. fractal_server/runner/executors/local/runner.py +48 -5
  62. fractal_server/runner/executors/slurm_common/_batching.py +2 -2
  63. fractal_server/runner/executors/slurm_common/base_slurm_runner.py +59 -25
  64. fractal_server/runner/executors/slurm_common/get_slurm_config.py +38 -54
  65. fractal_server/runner/executors/slurm_common/remote.py +1 -1
  66. fractal_server/runner/executors/slurm_common/{_slurm_config.py → slurm_config.py} +3 -254
  67. fractal_server/runner/executors/slurm_common/slurm_job_task_models.py +1 -1
  68. fractal_server/runner/executors/slurm_ssh/runner.py +12 -14
  69. fractal_server/runner/executors/slurm_sudo/_subprocess_run_as_user.py +2 -2
  70. fractal_server/runner/executors/slurm_sudo/runner.py +12 -12
  71. fractal_server/runner/v2/_local.py +36 -21
  72. fractal_server/runner/v2/_slurm_ssh.py +40 -4
  73. fractal_server/runner/v2/_slurm_sudo.py +41 -11
  74. fractal_server/runner/v2/db_tools.py +1 -1
  75. fractal_server/runner/v2/runner.py +3 -11
  76. fractal_server/runner/v2/runner_functions.py +42 -28
  77. fractal_server/runner/v2/submit_workflow.py +87 -108
  78. fractal_server/runner/versions.py +8 -3
  79. fractal_server/ssh/_fabric.py +6 -6
  80. fractal_server/tasks/config/__init__.py +3 -0
  81. fractal_server/tasks/config/_pixi.py +127 -0
  82. fractal_server/tasks/config/_python.py +51 -0
  83. fractal_server/tasks/v2/local/_utils.py +7 -7
  84. fractal_server/tasks/v2/local/collect.py +13 -5
  85. fractal_server/tasks/v2/local/collect_pixi.py +26 -10
  86. fractal_server/tasks/v2/local/deactivate.py +7 -1
  87. fractal_server/tasks/v2/local/deactivate_pixi.py +5 -1
  88. fractal_server/tasks/v2/local/delete.py +4 -0
  89. fractal_server/tasks/v2/local/reactivate.py +13 -5
  90. fractal_server/tasks/v2/local/reactivate_pixi.py +27 -9
  91. fractal_server/tasks/v2/ssh/_pixi_slurm_ssh.py +11 -10
  92. fractal_server/tasks/v2/ssh/_utils.py +6 -7
  93. fractal_server/tasks/v2/ssh/collect.py +19 -12
  94. fractal_server/tasks/v2/ssh/collect_pixi.py +34 -16
  95. fractal_server/tasks/v2/ssh/deactivate.py +12 -8
  96. fractal_server/tasks/v2/ssh/deactivate_pixi.py +14 -10
  97. fractal_server/tasks/v2/ssh/delete.py +12 -9
  98. fractal_server/tasks/v2/ssh/reactivate.py +18 -12
  99. fractal_server/tasks/v2/ssh/reactivate_pixi.py +36 -17
  100. fractal_server/tasks/v2/templates/4_pip_show.sh +4 -6
  101. fractal_server/tasks/v2/utils_database.py +2 -2
  102. fractal_server/tasks/v2/utils_python_interpreter.py +8 -16
  103. fractal_server/tasks/v2/utils_templates.py +7 -10
  104. fractal_server/utils.py +1 -1
  105. {fractal_server-2.16.6.dist-info → fractal_server-2.17.0a0.dist-info}/METADATA +1 -1
  106. {fractal_server-2.16.6.dist-info → fractal_server-2.17.0a0.dist-info}/RECORD +110 -88
  107. fractal_server/config.py +0 -906
  108. /fractal_server/{runner → app}/shutdown.py +0 -0
  109. {fractal_server-2.16.6.dist-info → fractal_server-2.17.0a0.dist-info}/WHEEL +0 -0
  110. {fractal_server-2.16.6.dist-info → fractal_server-2.17.0a0.dist-info}/entry_points.txt +0 -0
  111. {fractal_server-2.16.6.dist-info → fractal_server-2.17.0a0.dist-info}/licenses/LICENSE +0 -0
File without changes