Constrictor is a microframework based on Flask, designed to simplify the creation and management of modular Flask applications. With features inspired by Rails, Constrictor allows for easy module generation, testing, and execution.
- Modular Structure: Organize your Flask app into separate modules with ease.
- Blueprint Support: Seamless integration with Flask Blueprints.
- Command-Line Interface: Simplified commands for creating projects, generating modules, running the app, and testing.
- Environment Configuration: Load configurations from
.env
files and environment variables.
Install Constrictor via pip:
pip install constrictor
-
Create a New Project:
constrictor new project_name
-
Generate a New Module:
constrictor g module module_name
-
Run the App:
constrictor run
-
Run Tests for All Modules:
constrictor test
-
Run Tests for Specific Modules:
constrictor test module1 module2
In construction.