alpha-python 0.7.9__py3-none-any.whl → 0.7.10__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.
@@ -89,9 +89,7 @@ app.add_api(
89
89
  @app.app.after_request
90
90
  def add_headers(response: Response):
91
91
  response_headers = container.config.response.headers()
92
- is_swagger_ui_request = request.path == "/ui" or request.path.startswith(
93
- "/ui/"
94
- )
92
+ is_swagger_ui_request = "ui" in request.path.strip("/").split("/")
95
93
 
96
94
  if response_headers is None:
97
95
  response_headers = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: alpha-python
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary: Alpha is intended to be the first dependency you need to add to your Python application. It is a Python library which contains standard building blocks that can be used in applications that are used as APIs and/or make use of database interaction.
5
5
  Author-email: Bart Reijling <bart@reijling.eu>
6
6
  License-Expression: MIT
@@ -47,7 +47,7 @@ alpha/handlers/templates/python-flask/Dockerfile.mustache,sha256=nyginFsU-nKyq0b
47
47
  alpha/handlers/templates/python-flask/README.mustache,sha256=X-giJMN_juUrVoW2mj_2Npw6q1s8NGsAgToK2um3NLQ,1368
48
48
  alpha/handlers/templates/python-flask/__init__model.mustache,sha256=JRwyJmOCAD8nskG1DnYjt7orBTmza8qPQ2N24JaPcuY,209
49
49
  alpha/handlers/templates/python-flask/__init__test.mustache,sha256=wUxDXcyE4rPh3sDp8MvR5m8vqzoU25Fw1bo_xh6InnY,438
50
- alpha/handlers/templates/python-flask/__main__.mustache,sha256=LN4FxQyvsCGAYQlD2ccdYIY0hyY1DBi-3Apncia350w,3847
50
+ alpha/handlers/templates/python-flask/__main__.mustache,sha256=HeF2w2R5eFdy2CIpZ5eSmDBKTI_qk-j1_9QOfMxoxMo,3819
51
51
  alpha/handlers/templates/python-flask/base_model.mustache,sha256=B--jl9LmfiHACq9n1kDxm6YTi6tb1oSUFnZya_IKOhU,2184
52
52
  alpha/handlers/templates/python-flask/controller.mustache,sha256=PoQ1nOa7wjqH1KEuWSIyC0XZlcz0iqBf9aEHTbPFEuo,18721
53
53
  alpha/handlers/templates/python-flask/controller_test.mustache,sha256=2i2cwgQonT1RMJQwdxeq8B3x8-hLjpK7YkI--LkKLOI,2848
@@ -144,9 +144,9 @@ alpha/utils/openapi_test/models.py,sha256=5iZpUqgXy6T5f4v1XctD23l87m4g_pCVeuH09M
144
144
  alpha/utils/openapi_test/orm.py,sha256=Py95GV_0e7wI1MYDZR1_EHkvTgev6eNo70SVmnD7kGc,3045
145
145
  alpha/utils/openapi_test/response.py,sha256=IxbQ6Nw258LLViHkgfjOpc7zWGTP8ofVOX1zrwDoR50,270
146
146
  alpha/utils/openapi_test/service.py,sha256=WWR33FYr76zV7CD8OWYc1B0zofv3_DDo0jnRPV6uJuM,4948
147
- alpha_python-0.7.9.dist-info/licenses/LICENSE,sha256=5KwEqC3KUoH4lVXgZ9tGriKOl-LGxHkXBWo16mFmAYM,1070
148
- alpha_python-0.7.9.dist-info/METADATA,sha256=FM8botA-RX1qExZNw9obuJhGnvuhnjbKILY71DfQMtQ,8639
149
- alpha_python-0.7.9.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
150
- alpha_python-0.7.9.dist-info/entry_points.txt,sha256=LBEXdcofOugYYdZ46nz5Dxj_aj1QbRBkumfPGhy-GXI,41
151
- alpha_python-0.7.9.dist-info/top_level.txt,sha256=tqmNnOmi2RSSiPo99C03fD5Cc3r9za9xTjPAoQC1EGA,6
152
- alpha_python-0.7.9.dist-info/RECORD,,
147
+ alpha_python-0.7.10.dist-info/licenses/LICENSE,sha256=5KwEqC3KUoH4lVXgZ9tGriKOl-LGxHkXBWo16mFmAYM,1070
148
+ alpha_python-0.7.10.dist-info/METADATA,sha256=-cPx6dWy6M2pPypM6XHZPZwd-S9rp_lmNTPk6Ns-tIw,8640
149
+ alpha_python-0.7.10.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
150
+ alpha_python-0.7.10.dist-info/entry_points.txt,sha256=LBEXdcofOugYYdZ46nz5Dxj_aj1QbRBkumfPGhy-GXI,41
151
+ alpha_python-0.7.10.dist-info/top_level.txt,sha256=tqmNnOmi2RSSiPo99C03fD5Cc3r9za9xTjPAoQC1EGA,6
152
+ alpha_python-0.7.10.dist-info/RECORD,,