simple-module-hosting 0.0.1__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 (65) hide show
  1. simple_module_hosting/__init__.py +7 -0
  2. simple_module_hosting/_error_handlers.py +54 -0
  3. simple_module_hosting/_hydrate_step.py +39 -0
  4. simple_module_hosting/_inertia_setup.py +73 -0
  5. simple_module_hosting/_inertia_shared.py +61 -0
  6. simple_module_hosting/_observability.py +108 -0
  7. simple_module_hosting/_phase_helpers.py +160 -0
  8. simple_module_hosting/app_builder.py +281 -0
  9. simple_module_hosting/bootstrap_settings.py +55 -0
  10. simple_module_hosting/cli.py +292 -0
  11. simple_module_hosting/health.py +79 -0
  12. simple_module_hosting/host_settings.py +33 -0
  13. simple_module_hosting/i18n_deps.py +25 -0
  14. simple_module_hosting/i18n_manifest.py +202 -0
  15. simple_module_hosting/i18n_middleware.py +95 -0
  16. simple_module_hosting/inertia_deps.py +27 -0
  17. simple_module_hosting/inertia_utils.py +31 -0
  18. simple_module_hosting/logging.py +91 -0
  19. simple_module_hosting/manifest.py +250 -0
  20. simple_module_hosting/middleware.py +272 -0
  21. simple_module_hosting/migrations.py +65 -0
  22. simple_module_hosting/permissions.py +75 -0
  23. simple_module_hosting/py.typed +0 -0
  24. simple_module_hosting/redirects.py +45 -0
  25. simple_module_hosting/scaffolding.py +294 -0
  26. simple_module_hosting/settings.py +10 -0
  27. simple_module_hosting/templates/host/.env.example +20 -0
  28. simple_module_hosting/templates/host/.gitignore +19 -0
  29. simple_module_hosting/templates/host/Makefile +24 -0
  30. simple_module_hosting/templates/host/README.md.tpl +59 -0
  31. simple_module_hosting/templates/host/alembic.ini +36 -0
  32. simple_module_hosting/templates/host/client_app/app.tsx +16 -0
  33. simple_module_hosting/templates/host/client_app/main.tsx +2 -0
  34. simple_module_hosting/templates/host/client_app/package.json.tpl +23 -0
  35. simple_module_hosting/templates/host/client_app/pages/Error.tsx +13 -0
  36. simple_module_hosting/templates/host/client_app/pages.ts +47 -0
  37. simple_module_hosting/templates/host/client_app/styles.css +7 -0
  38. simple_module_hosting/templates/host/client_app/tsconfig.json +16 -0
  39. simple_module_hosting/templates/host/client_app/vite.config.ts +39 -0
  40. simple_module_hosting/templates/host/main.py +27 -0
  41. simple_module_hosting/templates/host/migrations/env.py +80 -0
  42. simple_module_hosting/templates/host/migrations/script.py.mako +26 -0
  43. simple_module_hosting/templates/host/migrations/versions/.gitkeep +1 -0
  44. simple_module_hosting/templates/host/pyproject.toml.tpl +17 -0
  45. simple_module_hosting/templates/host/templates/index.html +12 -0
  46. simple_module_hosting/templates/module/.github/workflows/ci.yml +32 -0
  47. simple_module_hosting/templates/module/.github/workflows/publish.yml.tpl +52 -0
  48. simple_module_hosting/templates/module/.gitignore +14 -0
  49. simple_module_hosting/templates/module/README.md.tpl +82 -0
  50. simple_module_hosting/templates/module/__PACKAGE__/__init__.py +0 -0
  51. simple_module_hosting/templates/module/__PACKAGE__/endpoints/__init__.py +0 -0
  52. simple_module_hosting/templates/module/__PACKAGE__/endpoints/api.py.tpl +11 -0
  53. simple_module_hosting/templates/module/__PACKAGE__/module.py.tpl +46 -0
  54. simple_module_hosting/templates/module/__PACKAGE__/pages/.gitkeep +1 -0
  55. simple_module_hosting/templates/module/__PACKAGE__/services.py.tpl +22 -0
  56. simple_module_hosting/templates/module/package.json.tpl +16 -0
  57. simple_module_hosting/templates/module/pyproject.toml.tpl +39 -0
  58. simple_module_hosting/templates/module/tests/__init__.py +0 -0
  59. simple_module_hosting/templates/module/tests/test_module.py.tpl +27 -0
  60. simple_module_hosting/templates/module/tsconfig.json.tpl +11 -0
  61. simple_module_hosting-0.0.1.dist-info/METADATA +93 -0
  62. simple_module_hosting-0.0.1.dist-info/RECORD +65 -0
  63. simple_module_hosting-0.0.1.dist-info/WHEEL +4 -0
  64. simple_module_hosting-0.0.1.dist-info/entry_points.txt +3 -0
  65. simple_module_hosting-0.0.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,65 @@
1
+ simple_module_hosting/__init__.py,sha256=uQij867cqgZFdIZYcp_qmi6YHk1pHI7j7OYlNXeanVI,333
2
+ simple_module_hosting/_error_handlers.py,sha256=Fe7NMFgrCH9yI_69FT3Q6H7Vw2b2YtGs640VTWpfrKw,2080
3
+ simple_module_hosting/_hydrate_step.py,sha256=mZPhWBweYevHXq2omKMqF1a5XMuLiPnNftVhvKVxRjg,1298
4
+ simple_module_hosting/_inertia_setup.py,sha256=nkH3SS86o5ke8pMHaRbmGBriR_YhWKpqpp9b8qju0Xs,2288
5
+ simple_module_hosting/_inertia_shared.py,sha256=gxIbIsXzapWxQsxPbNSBmFbqq_dMNFy4gJTk7opxkFc,2477
6
+ simple_module_hosting/_observability.py,sha256=fpCWVvQama3U4nZ90HMshWd8_wHtek4BxDPRcSyCknE,3556
7
+ simple_module_hosting/_phase_helpers.py,sha256=tIdsETEPW0xEw44mxM7WVccRB_cdVaEZfsECwgRCeQ4,5978
8
+ simple_module_hosting/app_builder.py,sha256=i26OJLn_AgxP0MYHUj2g-cuXkG8eJSoZSS2vKm2yhys,11355
9
+ simple_module_hosting/bootstrap_settings.py,sha256=iRHwLPTpAjPigzLa1EM0rR34dPqgP-PzyZVpN6d4_bw,1860
10
+ simple_module_hosting/cli.py,sha256=xWyYit-RQ1V9QZLPGPxPeJZUTU-8U0o7Dv-xaoucVhQ,8901
11
+ simple_module_hosting/health.py,sha256=tEZHBZB5I_nGF9-SQ31cF2oTzgPlVvCvbubF_57pdfo,2113
12
+ simple_module_hosting/host_settings.py,sha256=csqvFWQ8pV8ueu2-bo1ulC-05ubvSGXnEH9Hjf30_AM,1094
13
+ simple_module_hosting/i18n_deps.py,sha256=wtxoUrtakED_aaNGXh72JHfaWlWm14PVMZc-L6D8DOY,864
14
+ simple_module_hosting/i18n_manifest.py,sha256=VVyQFNbtjiXpa3I5zkmdEU6_YKZffV1RyTej-O1ckpA,6995
15
+ simple_module_hosting/i18n_middleware.py,sha256=BnVslRlmCT5LSicWjMOne_MjmkQ0aX7ITn9vtGvW4GY,3282
16
+ simple_module_hosting/inertia_deps.py,sha256=5X95ASJyb-3eUM5DzN-zk0_-Hx-9NogPNre0dMUcu-c,746
17
+ simple_module_hosting/inertia_utils.py,sha256=31HvT1PQAcXMzepQ7zjpzO4EIh3r9eTIz7ez_AuF7ts,1254
18
+ simple_module_hosting/logging.py,sha256=_eS13gwDLnujwhjeeIGB1FqsQ4Z3UTaK9-5-UtaLfig,2704
19
+ simple_module_hosting/manifest.py,sha256=F4vQTXWTPbctsK3ci-PBDLyiL5hbQ_UldLDHJfV-T0k,9365
20
+ simple_module_hosting/middleware.py,sha256=s-Cbhj_JF0kmgxJpSqa8-P3dT0njfImcKyJvDK8DWR8,10217
21
+ simple_module_hosting/migrations.py,sha256=yDau3Kb8WCUYA1npTW-CNsHJ4lW0uCW8An5c99QuQ1U,2125
22
+ simple_module_hosting/permissions.py,sha256=GByZ_mlaZf0TFFNQHripgsaN3Bf5y0eFqVXhKOudU30,2496
23
+ simple_module_hosting/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ simple_module_hosting/redirects.py,sha256=f1Zz7eWvF_SX_DnBB9wG6Zosj1Ajct1dDe12OvGebeE,1545
25
+ simple_module_hosting/scaffolding.py,sha256=2qGDbiyk3XknrwM0wMnKRwK7S9s-AbwEOMRrAGSukXo,10091
26
+ simple_module_hosting/settings.py,sha256=4qKnS9qgRM3YNwrw4xXyMxPB4lDJ2W2S97QjJINjw3w,367
27
+ simple_module_hosting/templates/host/.env.example,sha256=52NXbAWL7XKRiW2jOMbne05d6p2QOb6NNhN08FrYdQs,780
28
+ simple_module_hosting/templates/host/.gitignore,sha256=q_xzoBdIHbXWEwAaokRKI6Yw8LlqkZEkhq2rlWBju80,223
29
+ simple_module_hosting/templates/host/Makefile,sha256=eeKn8s92NU-zJ7XMfCJN3NsLulHqZgbqxxSsifbNvug,425
30
+ simple_module_hosting/templates/host/README.md.tpl,sha256=n3JtananlMSTfUKh5QfTp2-vontSg-GhHIBbZjfD378,1622
31
+ simple_module_hosting/templates/host/alembic.ini,sha256=Iw2BNlafy955Ip84-sROCSZQx3btnL_WkUYMiyKAycg,523
32
+ simple_module_hosting/templates/host/main.py,sha256=zA2V8CSPmYxfBm6EPpQf0CxQZxWiwfxU6U6Z5wr5YCw,620
33
+ simple_module_hosting/templates/host/pyproject.toml.tpl,sha256=YKkBlSPewzNG-3GTjBqmxEh5uY-9L5BNsv5IN20QNm8,395
34
+ simple_module_hosting/templates/host/client_app/app.tsx,sha256=PnMxiExNqvr1SzVXuqq3o5vZg9px5xd-YQE9NVnqcbY,372
35
+ simple_module_hosting/templates/host/client_app/main.tsx,sha256=eGDSRJr4UTdX6vri01XWNY-UVVOHc10lrTVGkrYtDRc,39
36
+ simple_module_hosting/templates/host/client_app/package.json.tpl,sha256=-t16doPDXYIZjLWkc2HenyOhGKF5HTjnAY9tHdhilBs,504
37
+ simple_module_hosting/templates/host/client_app/pages.ts,sha256=VIB1738vWihTdRXr-XgGWmAG2Lawm3Yx6xObRcexVRY,1517
38
+ simple_module_hosting/templates/host/client_app/styles.css,sha256=_T6KO2ndN1BfPZHts5o2Z-RPoQ8QBjgdvM1jgUbwE48,87
39
+ simple_module_hosting/templates/host/client_app/tsconfig.json,sha256=XSfdhUkSE7oYBod45vNVoB8BP6o9Mq-v6OSRV6hruE8,395
40
+ simple_module_hosting/templates/host/client_app/vite.config.ts,sha256=SutRzxb30zhsZNigTiTOoVYsLeiBMGh_5JKiJ0Qg030,1180
41
+ simple_module_hosting/templates/host/client_app/pages/Error.tsx,sha256=5cao7DmhuRBuS6IolvvIvCyeGsEH3oow8t14k8poqu0,307
42
+ simple_module_hosting/templates/host/migrations/env.py,sha256=BKy4w3ucxNy0mLcnpx3Y3z2NAVwV0ryaE_G63PpOQyQ,2290
43
+ simple_module_hosting/templates/host/migrations/script.py.mako,sha256=WL6l766ire0f1QNiTvopoksk1FV5KTCQjTw3MNutiIY,621
44
+ simple_module_hosting/templates/host/migrations/versions/.gitkeep,sha256=ZVznI8gTedHSg8-1m0BGBSc7NVZbVGcy74MOnW_7Lkc,29
45
+ simple_module_hosting/templates/host/templates/index.html,sha256=2Ei05NgvJphd5mDrIq6IaiMEJrRsB3KITrc_X2W-32g,275
46
+ simple_module_hosting/templates/module/.gitignore,sha256=Eo1Lld-nxFdy1WXFhOIzaheBjqB_AnM46_g9VKxT0eY,267
47
+ simple_module_hosting/templates/module/README.md.tpl,sha256=Y7wsz9NMMj_JoJAapVhmt1Jj5ySwJzVvUFpQtkc5b0U,2599
48
+ simple_module_hosting/templates/module/package.json.tpl,sha256=tLi5VwzEd56ULFa0dy_yo6bdhDuPHlpFAD3hREIaw28,393
49
+ simple_module_hosting/templates/module/pyproject.toml.tpl,sha256=R4WpalzFN3OlLtDdlU7zNMZER8mraYgscLSPlaavSlQ,1380
50
+ simple_module_hosting/templates/module/tsconfig.json.tpl,sha256=OLZybYSFmZqwS7_dkCbfFQSwQd2UnN82PGJaOElTVNA,296
51
+ simple_module_hosting/templates/module/.github/workflows/ci.yml,sha256=1RaWyGVouHQWzjJ4fQ_mNFbVjOm_uyci_e04woyiI9o,590
52
+ simple_module_hosting/templates/module/.github/workflows/publish.yml.tpl,sha256=Kgl2bZ96u_Dw8RDW_bigUJuKZUiqDirwzu8Gx8ReZqQ,1476
53
+ simple_module_hosting/templates/module/__PACKAGE__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
+ simple_module_hosting/templates/module/__PACKAGE__/module.py.tpl,sha256=jBgL_1qlM9AyIq3OzByLANcrnGJ5OklsW1Yb4YE9bbc,1674
55
+ simple_module_hosting/templates/module/__PACKAGE__/services.py.tpl,sha256=QIaYi46pgnKl4mFKMUKbRGSRg7cal5uRgg_kbjCICck,551
56
+ simple_module_hosting/templates/module/__PACKAGE__/endpoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
+ simple_module_hosting/templates/module/__PACKAGE__/endpoints/api.py.tpl,sha256=pCvRH_npycyHxnrRwLoovyV_-UF5JoPWNBgSm0mLSfw,268
58
+ simple_module_hosting/templates/module/__PACKAGE__/pages/.gitkeep,sha256=ozHKCaZJVarwrSmvRbf6u9Kzo-b72Gh1I2nq063SrO0,72
59
+ simple_module_hosting/templates/module/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ simple_module_hosting/templates/module/tests/test_module.py.tpl,sha256=3SlS_nR-iOgXecMbZ6O85JBW54ckIAWJw3Ep06BKrUw,996
61
+ simple_module_hosting-0.0.1.dist-info/METADATA,sha256=PNutId7GncOMzzF1UNsra22xzEuVtAG9C9lpEgALXqs,3543
62
+ simple_module_hosting-0.0.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
63
+ simple_module_hosting-0.0.1.dist-info/entry_points.txt,sha256=behHHNuBNyvbwOsDQ2flOgVnKsUrx0h4uqsjJxsMQVg,101
64
+ simple_module_hosting-0.0.1.dist-info/licenses/LICENSE,sha256=Yn66lhLklsF5p7pa85_ksQrJ79Q-FgOaUAHevLBjer4,1068
65
+ simple_module_hosting-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ simple-module = simple_module_hosting.cli:main
3
+ sm = simple_module_hosting.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Anto Subash
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.