muffin 0.93.4__tar.gz → 0.93.5__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.
- {muffin-0.93.4/muffin.egg-info → muffin-0.93.5}/PKG-INFO +1 -1
- {muffin-0.93.4 → muffin-0.93.5}/muffin/app.py +3 -3
- {muffin-0.93.4 → muffin-0.93.5/muffin.egg-info}/PKG-INFO +1 -1
- {muffin-0.93.4 → muffin-0.93.5}/pyproject.toml +1 -1
- {muffin-0.93.4 → muffin-0.93.5}/LICENSE +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/MANIFEST.in +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/README.rst +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/__init__.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/constants.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/errors.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/handler.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/manage.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/plugins.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/py.typed +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/pytest.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/types.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin/utils.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/SOURCES.txt +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/dependency_links.txt +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/entry_points.txt +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/requires.txt +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/top_level.txt +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/setup.cfg +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/tests/test_application.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/tests/test_base.py +0 -0
- {muffin-0.93.4 → muffin-0.93.5}/tests/test_pytest.py +0 -0
@@ -125,8 +125,8 @@ class Application(BaseApp):
|
|
125
125
|
package_name = parent_frame.f_locals["__name__"]
|
126
126
|
return import_submodules(package_name, *submodules)
|
127
127
|
|
128
|
-
def
|
129
|
-
"""Await the given awaitable after the
|
128
|
+
def run_after_response(self, task: Awaitable):
|
129
|
+
"""Await the given awaitable after the response is completed.
|
130
130
|
|
131
131
|
.. code-block:: python
|
132
132
|
|
@@ -143,7 +143,7 @@ class Application(BaseApp):
|
|
143
143
|
async def send(request):
|
144
144
|
|
145
145
|
# Schedule any awaitable for later execution
|
146
|
-
app.
|
146
|
+
app.run_after_response(send_email('user@email.com', 'Hello from Muffin!'))
|
147
147
|
|
148
148
|
# Return response to a client immediately
|
149
149
|
# The task will be executed after the response is sent
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|