Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Class based tool that behaves like blueprints

Project Description

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)

Release History

Release History

This version
History Node

0.4

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask-Bundle-0.4.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting