No project description provided
Project description
BottleCors
pip install bottlecors
and then
from bottle import Bottle
from bottlecors import add_cors, abort
app = Bottle()
@app.get('/')
def home():
"This just shows 404 always"
abort(404, 'msg')
# Cors needs to be added after
# all routes have been added to your app
app = add_cors(app)
Features
- Full blown cors
- Sends docstring of function in options body
- Adds only for routes which have already been added
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
bottlecors-0.34.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file bottlecors-0.34.tar.gz
.
File metadata
- Download URL: bottlecors-0.34.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07e5928b90dd14c3dfd92fa68f6e1263717d3a0bcce73ee2c34e2ff4b1d74702 |
|
MD5 | 1ccba488be79042289d622da28156596 |
|
BLAKE2b-256 | 1d842dd0514e5a69c57859c9595bae0506078f5cfe2f7b3b0bfb0fbf50a17e56 |
File details
Details for the file bottlecors-0.34-py3-none-any.whl
.
File metadata
- Download URL: bottlecors-0.34-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5486b6ab056cfa67f016bf5a058285c876a7cea460e4847c78ef7017ea9f9fa |
|
MD5 | b9e3d4dadc2582719350a43ff8d8d2e7 |
|
BLAKE2b-256 | c0539e627cc604cd311d99dd7b32117d333a8486a723d556617473d269c41202 |