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.
Files changed (26) hide show
  1. {muffin-0.93.4/muffin.egg-info → muffin-0.93.5}/PKG-INFO +1 -1
  2. {muffin-0.93.4 → muffin-0.93.5}/muffin/app.py +3 -3
  3. {muffin-0.93.4 → muffin-0.93.5/muffin.egg-info}/PKG-INFO +1 -1
  4. {muffin-0.93.4 → muffin-0.93.5}/pyproject.toml +1 -1
  5. {muffin-0.93.4 → muffin-0.93.5}/LICENSE +0 -0
  6. {muffin-0.93.4 → muffin-0.93.5}/MANIFEST.in +0 -0
  7. {muffin-0.93.4 → muffin-0.93.5}/README.rst +0 -0
  8. {muffin-0.93.4 → muffin-0.93.5}/muffin/__init__.py +0 -0
  9. {muffin-0.93.4 → muffin-0.93.5}/muffin/constants.py +0 -0
  10. {muffin-0.93.4 → muffin-0.93.5}/muffin/errors.py +0 -0
  11. {muffin-0.93.4 → muffin-0.93.5}/muffin/handler.py +0 -0
  12. {muffin-0.93.4 → muffin-0.93.5}/muffin/manage.py +0 -0
  13. {muffin-0.93.4 → muffin-0.93.5}/muffin/plugins.py +0 -0
  14. {muffin-0.93.4 → muffin-0.93.5}/muffin/py.typed +0 -0
  15. {muffin-0.93.4 → muffin-0.93.5}/muffin/pytest.py +0 -0
  16. {muffin-0.93.4 → muffin-0.93.5}/muffin/types.py +0 -0
  17. {muffin-0.93.4 → muffin-0.93.5}/muffin/utils.py +0 -0
  18. {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/SOURCES.txt +0 -0
  19. {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/dependency_links.txt +0 -0
  20. {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/entry_points.txt +0 -0
  21. {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/requires.txt +0 -0
  22. {muffin-0.93.4 → muffin-0.93.5}/muffin.egg-info/top_level.txt +0 -0
  23. {muffin-0.93.4 → muffin-0.93.5}/setup.cfg +0 -0
  24. {muffin-0.93.4 → muffin-0.93.5}/tests/test_application.py +0 -0
  25. {muffin-0.93.4 → muffin-0.93.5}/tests/test_base.py +0 -0
  26. {muffin-0.93.4 → muffin-0.93.5}/tests/test_pytest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: muffin
3
- Version: 0.93.4
3
+ Version: 0.93.5
4
4
  Summary: Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)
5
5
  Author-email: Kirill Klenov <horneds@gmail.com>
6
6
  License: MIT License
@@ -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 run_background(self, task: Awaitable):
129
- """Await the given awaitable after the request is completed.
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.run_background(send_email('user@email.com', 'Hello from Muffin!'))
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: muffin
3
- Version: 0.93.4
3
+ Version: 0.93.5
4
4
  Summary: Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)
5
5
  Author-email: Kirill Klenov <horneds@gmail.com>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "muffin"
3
- version = "0.93.4"
3
+ version = "0.93.5"
4
4
  description = "Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)"
5
5
  readme = "README.rst"
6
6
  requires-python = ">=3.8"
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