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'}}
Metadata
Release files for MarsRouter 0.50
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marsrouter-0.50.tar.gz | 6.2 kB | Without provenance | Details for marsrouter-0.50.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MarsRouter-0.50-py3-none-any.whl | Python 3 | none | any | Details for MarsRouter-0.50-py3-none-any.whl |
Total release size: 11.3 kB
Release files / marsrouter-0.50.tar.gz
| Download URL | marsrouter-0.50.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83637c9f71d163c763f3c5514af54d2b93f9e8cacc3246410a3c9f923b2dc5a7
|
|
BLAKE2b-256 checksum How to use checksums |
37b153d21ac561d6ea5e9ab9cc80baafa2d9bb0db89e532ed698fd38bfb8a015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / MarsRouter-0.50-py3-none-any.whl
| Download URL | MarsRouter-0.50-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32ff025f52e52ca78d158999c93f8f71a3d62cbcc5d5cf320c9b3eb75d30cfd6
|
|
BLAKE2b-256 checksum How to use checksums |
d016ed44c79dc3c6de33e64b5c62c96598a929a18811d96dd209108f4ef40079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Security for MarsRouter 0.50
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.