flask-batteries-0.0.0
توضیحات
A simple command line tool for bootstrapping flask applications.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flask-batteries-0.0.0 |
| نام | flask-batteries |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Grayden Shand |
| ایمیل نویسنده | graydenshand@gmail.com |
| آدرس صفحه اصلی | https://github.com/graydenshand/flask-batteries |
| آدرس اینترنتی | https://pypi.org/project/flask-batteries/ |
| مجوز | - |
*\~work in progress\~*
# Flask-Batteries
An opinionated command line tool for bootstrapping Flask applications with less boiler-plate code.
Inspired by Ruby on Rails.
## Installing
This has not been deployed to PYPI yet, as it is still under active development.
To install, clone the repo and install using pip
```bash
git clone git@github.com:graydenshand/flask_batteries.git
pip install ./flask_batteries # path to source code
```
## Usage
Currently there are just two commands:
```bash
flask_batteries new <name>
flask_batteries destroy <name>
```
The `new` command creates a Flask app in a new directory with the specified name.
The `destroy` command will recursively erase a directory with the specified name. Be careful with this, as it will erase any directory you specify without checking to make sure it's actually a Flask-Batteries project.
## Tests
Tests are run with [tox](https://tox.readthedocs.io/en/latest/) against python 3.9.
From the root directory of the project, simply call:
```bash
tox
```
## Roadmap
* Finish building the basic template. Add SQLAlchemy (Flask-SQLAlchemy) + Alembic (Flask-Migrate).
* Extend Flask's CLI with a set of commands for quickly generating and destroying assets. E.g. `flask g route login` might generate a view function, map it to a url, generate a template, and generate a test.
* Add an `install` command for installing common flask extensions.
* Add an `--api` option to the `new` command to install `Flask-Restful` and `Marshmallow` and generate a blueprint for API resources.
* Add an `--spa` option to the `new` command to set up a Node JS project and generate a "catch all" client blueprint for rendering a JS Single Page Application (SPA). Possibly integrate with `create-react-app` and/or Vue's hello world example.
* Add a `--websocket` option to the `new` command to install `Flask-SocketIO` and use its event loop instead of standard flask server.
* Add a `--skip-db` option to the `new` command to not install SQLAlchemy.
* Implement a flexible uploads system that can be configured to work with multiple back ends
* ...and more
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | click |
| - | pathspec |
| - | jinja2 |
| - | Flask |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl flask-batteries-0.0.0:
pip install flask-batteries-0.0.0.whl
نصب پکیج tar.gz flask-batteries-0.0.0:
pip install flask-batteries-0.0.0.tar.gz