flask-interface comes with a command-line interface (CLI) that mimics a bash terminal. It provides a CLI command to quickly generate a full file structure for a Flask app, along with a user-friendly bash-like UI for executing commands. and You can use it to execute various commands related to your Flask app.
Project description
flask-interface
Introduction
flask-interface is a Python package that simplifies the process of creating and managing Flask web applications. It provides a CLI command to quickly generate a full file structure for a Flask app, along with a user-friendly bash-like UI for executing commands.
Get Started
To install flask-interface, simply run:
pip install flask-interface
Create a New Flask App
To create a new Flask app, use the following command:
create-flask-app mynewapp # app name
Replace mynewapp
with the desired name of your Flask application.
Command UI Bash
flask-interface comes with a command-line interface (CLI) that mimics a bash terminal. You can use it to execute various commands related to your Flask app.
Example Command:
> create-flask-app mynewapp
What Executing Commands Do
The commands executed via the bash-like UI will handle all necessary steps for setting up a Flask application. This includes creating the project structure, setting up configuration files, and initializing essential Flask components such as blueprints, models, forms, and routes.
Project Directory Structure
After running the command, the project directory structure will look like this:
mynewapp/
│
├── app/
│ ├── __init__.py
│ ├── models.py
│ ├── routes.py
│ ├── auth_routes.py
│ ├── forms.py
│ ├── admin.py
│ ├── static/
│ │ ├── css/
│ │ │ └── styles.css
│ │ ├── js/
│ │ │ └── scripts.js
│ │ └── img/
│ │ └── logo.png
│ └── templates/
│ ├── base.html
│ ├── index.html
│ ├── login.html
│ ├── register.html
│ ├── docs.html
│ ├── about.html
│ └── blog/
│ ├── create_post.html
│ └── post.html
├── config.py
├── app.py
└── README.md
flask-interfaceApp Structure
The Flask app structure created by flask-interface follows a full-fledged MVC architecture, providing separation of concerns and scalability for your application.
Included Libraries
flask-interface includes several libraries that are commonly used in Flask projects:
Click
Flask
Flask-SQLAlchemy
Flask-WTF
Flask-Bcrypt
Flask-Login
Flask-Admin
email-validator
Contributing
Contributions are welcome! Please feel free to open issues or pull requests on the GitHub repository.
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_interface-0.1-py3-none-any.whl
.
File metadata
- Download URL: flask_interface-0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d544b1478b3170b7f00b25237c6748440dd09e14ce46428253b30bbdf802311 |
|
MD5 | d141e5a2ba5da63e53097236f142c9c5 |
|
BLAKE2b-256 | f2eb5b1195b2fef21c8232fad3486b88ae720feeb7d145559aa8a290634695e4 |