Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bottle_tools-2019.12.22rc1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file bottle_tools-2019.12.22rc1.tar.gz.

File metadata

  • Download URL: bottle_tools-2019.12.22rc1.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

Hashes for bottle_tools-2019.12.22rc1.tar.gz
Algorithm Hash digest
SHA256 42f0fd62ea811bbba008229649e91816800c2f98bbe9f86b92e63a820061fae4
MD5 f2bc684afdba32cc637d6b3842b240fc
BLAKE2b-256 dcf4c3a056f28f03a54f30ab550d7e8b67f90aa4dc221cebe31aa029f2db7f84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page