Skip to main content

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'

Metadata

Release files for bottle-tools 2019.12.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bottle-tools 2019.12.22
File Size Uploaded
bottle_tools-2019.12.22.tar.gz 5.1 kB Details

Release files / bottle_tools-2019.12.22.tar.gz

Download URL bottle_tools-2019.12.22.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
47bbbf1b90de8f97db80a13344c2bc9c2d733684d28af24d47feb2d4199f46e1
BLAKE2b-256 checksum
How to use checksums
31150fee245c88359e49e6bb4b541262e3822a202c729a0bc0a2c93e5e3526a8
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page