a simplest common middleware framework for python.
Project description
anyflow
a simplest common middleware framework for python.
HOW-TO-USE
from anyflow import Flow
flow = Flow()
@flow.use()
def middleware_1(ctx, next):
ctx.state['value'] = 1
# call the next middleware (middleware_2):
return next()
@flow.use()
def middleware_2(ctx, next):
print(ctx.state['value'])
# next middleware does not exists, call nothing:
return next()
flow.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anyflow-0.2.0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anyflow-0.2.0.tar.gz.
File metadata
- Download URL: anyflow-0.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97296814df9c1ce81e42e4f12cbe12afb8d9e657854f5faed11aab83a2a77c42
|
|
| MD5 |
7445b29beda938df454b69ec185d2433
|
|
| BLAKE2b-256 |
229306130933ec3cb6173997688c6d165a3e4addd8dcbdac773a223df9af2c84
|
File details
Details for the file anyflow-0.2.0-py3-none-any.whl.
File metadata
- Download URL: anyflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aac49dc2b8e6c413cecf958bccc3426a8aa2d169ec4ef47ebe185e96895c425
|
|
| MD5 |
022d36c362eee801287dfe863cbe0171
|
|
| BLAKE2b-256 |
eb6ba00416754f725eb7a8f420b679db676c166dccaaadf1c7ee2dee868df88f
|