MarsRouter 0.40

Creator: codyrutscher

Last updated:

Add to Cart

Description:

MarsRouter 0.40

MarsRouter
MarsRouter is a lightweight and flexible dynamic routing system for Python.
It allows you to define URL patterns with dynamic segments and map them
to controller functions. The routing system matches incoming URLs to
the defined patterns, extracts dynamic parameters, and provides a simple
interface to handle requests based on these parameters.
Features

Dynamic URL pattern matching
Simple function-based controllers
Flexible parameter extraction
Easy integration into existing Python projects

Usage
router = Router()
router.add_route('/user/{username}', user_profile)
result = router.dispatch('/user/john')
# {'controller': user_profile, 'params': {'username': 'john'}}

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.