bottle-tools-2019.4.17rc1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bottle-tools-2019.4.17rc1 |
| نام | bottle-tools |
| نسخه کتابخانه | 2019.4.17rc1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Arjoonn Sharma |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bottle-tools/ |
| مجوز | - |
Bottle-Tools
============
A set of tools to make things easier to work with when using Bottle.
[Full Documentation](https://bottle-tools.readthedocs.io/en/latest/)
Autofill APIs with typed information
```python
import bottle_tools as bt
bt.common_kwargs.update({"User": UserTable})
@app.post('/calculate')
@bt.fill_args(coerce_types=True)
def login(usrname: str, pwd: str, User):
user = User.get_or_404(usrname=usrname)
if not user.password_is_correct(pwd):
raise HttpNotFound()
return 'ok'
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bottle-tools-2019.4.17rc1:
pip install bottle-tools-2019.4.17rc1.whl
نصب پکیج tar.gz bottle-tools-2019.4.17rc1:
pip install bottle-tools-2019.4.17rc1.tar.gz