Skip to content

Add matchapi - #128

Open
troyan-dy wants to merge 1 commit into
timofurrer:mainfrom
troyan-dy:add-matchapi
Open

troyan-dy wants to merge 1 commit into
timofurrer:mainfrom
troyan-dy:add-matchapi

Conversation

@troyan-dy

Copy link
Copy Markdown

Adds matchapi to Web Frameworks.

Why it is awesome: an HTTP service is one async def handle(req) function, and match over req.route replaces the router. No route decorators, no route tables, no middleware stack, no ASGI adapter: it talks to granian through its native Rust-backed RSGI interface, and granian is the only dependency. The whole framework is one file of about 300 lines, with 100% test coverage and mypy --strict. On HTTP/1.1 it runs within a few percent of a bare hand-written RSGI application.

Python 3.11+, MIT, on PyPI: https://pypi.org/project/matchapi/

Disclosure: I am the author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant