No project description provided
Project description
Bottle-Tools
A set of tools to make things easier to work with when using Bottle. Full Documentation
Autofill APIs with typed information
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for bottle_tools-2019.12.22rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42f0fd62ea811bbba008229649e91816800c2f98bbe9f86b92e63a820061fae4 |
|
MD5 | f2bc684afdba32cc637d6b3842b240fc |
|
BLAKE2b-256 | dcf4c3a056f28f03a54f30ab550d7e8b67f90aa4dc221cebe31aa029f2db7f84 |