muffin 0.93.4__py3-none-any.whl → 0.93.5__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.
muffin/app.py CHANGED
@@ -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,5 +1,5 @@
1
1
  muffin/__init__.py,sha256=F8Qp4ETX5FqI1832dj2moRAQ5hEb0TO9u4aRjSKXNjI,982
2
- muffin/app.py,sha256=-Gw9G_xL4WBhiB05aIvVPZSRNlXmORN0xX9o8C9CJPE,4774
2
+ muffin/app.py,sha256=Q9EiTKZyUAJDp-Pm3xtBGxmrALz7gU92J9GX7Dp2mCo,4783
3
3
  muffin/constants.py,sha256=Q9Nm3Q4P3llL_irsvNQAkkD3CqlD4zKkGAM4nabzwrg,38
4
4
  muffin/errors.py,sha256=I-vKbMMBiMU07zPdKvoJKqA7s4xYAUA-4oZXrRMRzcM,701
5
5
  muffin/handler.py,sha256=c0b4pwsIF8jmqYwsWn3iuXR5BMwq2e6ASatGcPu9-N4,3667
@@ -9,9 +9,9 @@ muffin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  muffin/pytest.py,sha256=vnSEsQP8dJCFeS8nZklzAh7Stc3H-ng3jm6KlnAOMN0,2169
10
10
  muffin/types.py,sha256=wsUj5oAfqSZMoEf-wyFJLBlWa8Mc-eJGqKLr02HxuXE,153
11
11
  muffin/utils.py,sha256=4tdGNAmdEy6LPaf-5rLYx2YMZ5EOe6tXSqAC1GtG_TY,2422
12
- muffin-0.93.4.dist-info/LICENSE,sha256=xHPkOZhjyKBMOwXpWn9IB_BVLjrrMxv2M9slKkHj2hM,1082
13
- muffin-0.93.4.dist-info/METADATA,sha256=O3gdr3jLwZyfZT0w9Tp9fhnVP6ubXCvHUvmwipYmldg,12021
14
- muffin-0.93.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
15
- muffin-0.93.4.dist-info/entry_points.txt,sha256=Q3DAZGQk-y5n7HmzJ4FrkNizqTRE2OVXsniPQXzS0Bg,87
16
- muffin-0.93.4.dist-info/top_level.txt,sha256=b_xNEFyizTmSqZWCTHwcvbycGyADewdsnaLXo2Pq1Ck,7
17
- muffin-0.93.4.dist-info/RECORD,,
12
+ muffin-0.93.5.dist-info/LICENSE,sha256=xHPkOZhjyKBMOwXpWn9IB_BVLjrrMxv2M9slKkHj2hM,1082
13
+ muffin-0.93.5.dist-info/METADATA,sha256=3iPBBuFZGjt802Pq_L8meEmh9yEI2dNHT5OsfRycShI,12021
14
+ muffin-0.93.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
15
+ muffin-0.93.5.dist-info/entry_points.txt,sha256=Q3DAZGQk-y5n7HmzJ4FrkNizqTRE2OVXsniPQXzS0Bg,87
16
+ muffin-0.93.5.dist-info/top_level.txt,sha256=b_xNEFyizTmSqZWCTHwcvbycGyADewdsnaLXo2Pq1Ck,7
17
+ muffin-0.93.5.dist-info/RECORD,,