Skip to main content

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)

Source distribution for anyflow 0.2.0
File Size Uploaded
anyflow-0.2.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anyflow 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page