Boilerplate setup for webapps, apis and cli applications with flask
Project description
shift-boiler
Boiler is a best-practices setup of flask framework integrated with a number of libraries to quickly bootstrap app development. You can do console applications, web apps or apis with boiler. It is also a good example of how to set up flask framework for large projects.
Here are some main features all of which are pluggable and optional:
- Click integration for CLI apps
- Web app scaffolding
- API app scaffolding and Restfulness
- ORM with SQLAlchemy
- Database migrations with Alembic
- Entity/model validation framework with shift-schema
- Localization and translations with Babel
- Web forms with WTForms
- User registration and authentication including OAuth support for facebook, google, twitter and vk
- RBAC and access control with Principal
- Routing with lazy-views and on-demand view import
- Set of useful Jinja additions and filters including support for versioned static assets.
- All of the features are pluggable and optional. Use whatever you need.
Ridiculously quick start
Create virtual environment:
mkdir boiler-testdrive && cd boiler-testdrive
virtualenv -p python3 env
source env/bin/activate
Install and run boiler:
pip install shiftboiler
boiler init .
boiler dependencies flask
./cli run
That was quickstart for robots. We also have a quickstart for humans, with some further exaplanations.
Versioning
We loosely follow semver except we did not have a major release yet to indicate the fact that the is still not entirely production ready. We however did successfully used it in production on multiple occasions for webapps and apis. Just remember to freeze your boiler version in requirements file and expect minor versions to introduce breaking changes.
Documentation
- Quickstart for humans
- Full configuration example
- Boiler features
- Testing: helpers and environment
- Working with collections
- Working with forms: entity validation and recaptcha
- MacOS: signing python interpreter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for shiftboiler-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2268a4f6501505127da16b188e0155af24a7e06de3331f21eb8b34e65f7a7cb5 |
|
MD5 | 03283e8ea9267548a05ee3bbe9407807 |
|
BLAKE2b-256 | b3acb1ec7f60df5903132b17dd8d1bbfcc150a6d11ad6a40062b143025ccb775 |