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
File details
Details for the file bottle_tools-2019.12.22.tar.gz
.
File metadata
- Download URL: bottle_tools-2019.12.22.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47bbbf1b90de8f97db80a13344c2bc9c2d733684d28af24d47feb2d4199f46e1 |
|
MD5 | ae26f5e9b8d453bd29cd457c3a29006c |
|
BLAKE2b-256 | 31150fee245c88359e49e6bb4b541262e3822a202c729a0bc0a2c93e5e3526a8 |