chaosrouter-0.2.7
توضیحات
Route path based requests to JSON endpoints. Designed for web APIs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chaosrouter-0.2.7 |
| نام | chaosrouter |
| نسخه کتابخانه | 0.2.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matthew Brisebois |
| ایمیل نویسنده | matthew@webheroes.ca |
| آدرس صفحه اصلی | https://github.com/webheroesinc/chaos-router |
| آدرس اینترنتی | https://pypi.org/project/chaosrouter/ |
| مجوز | Dual License; GPLv3 and Proprietary |
Route path based requests to JSON endpoints. Designed for web APIs
===============
Usage examples
===============
::
from chaosrouter import ChaosRouter
router = ChaosRouter({
"404": {
"error": "Not Found",
"message": "The page you are looking for does not exist",
"code": 404
}
})
Draft = router.route("/404")
data = Draft.proceed()
print(data)
# Output:
# {
# "error": "Not Found",
# "message": "The page you are looking for does not exist",
# "code": 404
# }
نحوه نصب
نصب پکیج whl chaosrouter-0.2.7:
pip install chaosrouter-0.2.7.whl
نصب پکیج tar.gz chaosrouter-0.2.7:
pip install chaosrouter-0.2.7.tar.gz