Bundle
Class Bundle is similar to flasks Blueprint with one important difference - Bundle is a class, when blueprints are instances.
Thats all. Small example how it works:
from flask.ext.bundle import Bundle, expose
class News(Bundle):
@expose('/', methods=['GET', 'POST'])
def index(self):
return 'Ok'
APIs
Based on bundle we have some helpers to build APIs in flask.ext.bundle.api.
bundle.utils
check_data
Decorator for views, get Trafaret instance. Will return errors dict and status 400 on error.
encode_result
Decorator for result encoding, gets list of encoders. Each encoder must implement two methods, mimes that returns MIME codes, and encode(self, data, mime=None) that encode data to response string.
APIBundle
Extensions to Bundle to make API explorable (TODO write more)
Metadata
Release files for Flask-Bundle 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Flask-Bundle-0.4.tar.gz | 4.0 kB | Without provenance | Details |
Release files / Flask-Bundle-0.4.tar.gz
| Download URL | Flask-Bundle-0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e43f0ee58a96fbeb87816f84e3efc3fc4b1d72983b57dc147191f23cae5da5a
|
|
BLAKE2b-256 checksum How to use checksums |
fe3d949b34ad495d62fe00580df8614b75cbc9f466b988c9543536c0dbed3800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Bundle 0.4
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.