Radix-tree router for ASGI projects.
In a star as in a fusion device, plasmas provide the environment in which light elements can fuse and yield energy.
Tokamak is a router based on Radix trees intended for ASGI Python applications.
Project Goals (Why Did You Build This?)
Thus, this project exists to provide radix-tree-based router for Python web frameworks (or any custom ASGI or WSGI implementation).
While early, this project is an attempt to achieve the following goals:
- Build an HTTP router based on radix trees.
- Make sure it shows good performance well while looking-up HTTP paths (especially or in particular where there are many, possible routes to select from).
- Provide implementations of routers for the ASGI spec (and possibly the WSGI spec as well).
As a secondary goal, a minimal web framework may in the future also be provided for building web applications, but more fully featured frameworks should be considered before this one. Producing a feature-complete web framework is not a primary goal of this project.
Is This Project Production Ready
This is an experimental prototype, untested in the wild. It was first created in order to provide routing for a project that grew to have many HTTP paths to choose from.
If you decide to test and then use this project in your projects, please let us know.
You can install
$ pip install tokamak
Tokamak has no dependencies.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size tokamak-0.0.1-py3-none-any.whl (11.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size tokamak-0.0.1.tar.gz (12.0 kB)||File type Source||Python version None||Upload date||Hashes View|