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'

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.22.tar.gz (5.1 kB view details)

Uploaded Source

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

Hashes for bottle_tools-2019.12.22.tar.gz
Algorithm Hash digest
SHA256 47bbbf1b90de8f97db80a13344c2bc9c2d733684d28af24d47feb2d4199f46e1
MD5 ae26f5e9b8d453bd29cd457c3a29006c
BLAKE2b-256 31150fee245c88359e49e6bb4b541262e3822a202c729a0bc0a2c93e5e3526a8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2019.12.22 This release

1 file

2019.4.17

2 files

2019.2.14

2 files

2019.2.13

2 files

2019.2.12

2 files

2019.2.4

2 files

2019.2.3

2 files

2019.2.1

2 files

2019.1.19

2 files

2019.1.16

2 files

0.382

2 files

0.381

2 files

0.42

2 files

0.41

2 files

0.40

2 files

0.39

2 files

0.38

2 files

0.37

2 files

0.36

2 files

0.35

2 files

0.34

2 files

0.33

2 files

0.32

2 files

0.31

2 files

0.3

2 files

0.2

2 files

0.1

2 files

0.0

2 files

Supported by

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