Flask application scaffolding tool
Project description
flask-kickstart
This is a Python-based command-line tool for scaffolding a Flask project with a predefined structure. It generates a boilerplate for a Flask application, including basic configuration, routes, templates, and testing setup.
Features
Automatically sets up a Flask project with a basic directory structure. Includes boilerplate code for:
- app/init.py: Flask application factory.
- app/routes.py: Sample route with HTML template rendering.
- config.py: Configurable settings (e.g., SECRET_KEY).
- run.py: Application entry point.
- tests/test_app.py: Basic unit test for Flask routes.
- templates/base.html: Basic HTML template.
- requirements.txt: List of required dependencies (Flask, Flask-SQLAlchemy).
- Object-oriented design to ensure modularity and scalability.
Prerequisites
Before using this tool, ensure you have the following installed:
- Python 3.6+
- Flask (pip install Flask)
Customization
You can modify the template files in the templates/ directory to customize the structure of your Flask project. Placeholders like {{secret_key}} in config.py.template can be dynamically replaced by the tool if needed.
Contribution
If you'd like to contribute to this project, feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 Distributions
Built Distribution
File details
Details for the file flask_kickstart-0.2-py3-none-any.whl
.
File metadata
- Download URL: flask_kickstart-0.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2fb7dd7f187dbbb5948059d9aa30df1b61ada3fca171690e8407c2ab79107f |
|
MD5 | 8089c8aa1d9e039f4d571091067b80d2 |
|
BLAKE2b-256 | eddf933903b58ca1a3ea301f803897529b3fc23b2289c2e53c9e037d7ccfca0f |