Skip to main content

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

Metadata

Release files for bottlecors 0.34

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

Source distribution (sdist)

Source distribution for bottlecors 0.34
File Size Uploaded Provenance Actions
bottlecors-0.34.tar.gz 1.9 kB Without provenance Details for bottlecors-0.34.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bottlecors 0.34
File Interpreter ABI Platform Actions
bottlecors-0.34-py3-none-any.whl Python 3 none any Details for bottlecors-0.34-py3-none-any.whl

Total release size: 4.0 kB

Release files / bottlecors-0.34.tar.gz

Download URL bottlecors-0.34.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07e5928b90dd14c3dfd92fa68f6e1263717d3a0bcce73ee2c34e2ff4b1d74702
BLAKE2b-256 checksum
How to use checksums
1d842dd0514e5a69c57859c9595bae0506078f5cfe2f7b3b0bfb0fbf50a17e56
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / bottlecors-0.34-py3-none-any.whl

Download URL bottlecors-0.34-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5486b6ab056cfa67f016bf5a058285c876a7cea460e4847c78ef7017ea9f9fa
BLAKE2b-256 checksum
How to use checksums
c0539e627cc604cd311d99dd7b32117d333a8486a723d556617473d269c41202
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for bottlecors 0.34

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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