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()
Metadata
Release files for anyflow 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| anyflow-0.2.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anyflow-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / anyflow-0.2.0.tar.gz
| Download URL | anyflow-0.2.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97296814df9c1ce81e42e4f12cbe12afb8d9e657854f5faed11aab83a2a77c42
|
|
BLAKE2b-256 checksum How to use checksums |
229306130933ec3cb6173997688c6d165a3e4addd8dcbdac773a223df9af2c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Windows/10
|
Release files / anyflow-0.2.0-py3-none-any.whl
| Download URL | anyflow-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3aac49dc2b8e6c413cecf958bccc3426a8aa2d169ec4ef47ebe185e96895c425
|
|
BLAKE2b-256 checksum How to use checksums |
eb6ba00416754f725eb7a8f420b679db676c166dccaaadf1c7ee2dee868df88f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.6 Windows/10
|