Skip to main content

A simple tool to help you setup a flask project for web development, API development and just any basic app

Project description

flask-setup

Flask Setup Tool

INSTALLATION

$ pip install flask-setup

USAGE

  1. create a virtual environment and activate it: $ python -m venv venv $ source venv/bin/activate $ flask_setup help

FLAGS

  1. -basic: Builds a basic flask app $ flask_setup -basic

  2. -web: Builds a full web flask app $ flask_setup -web

  3. -blueprint: this depends on the first two above. Adds blueprint to the project: e.g. $ flask_setup -basic -blueprint $ flask_setup -web -blueprint

  4. -api: this adds flask-marshmallow and marshmallow-sqlalchemy to the project to help serialize your models e.g.: $ flask_setup -web -blueprint -api

  5. --project_name: you pass a double flag non-spaced name to name your project default is 'project'. e.g.: $ flask_setup --myproject -basic -blueprint

  6. -g or -generate: pass this alongside -blueprint flag to generate blueprint on existing project. e.g.: $ flask_setup --myproject g -blueprint myblueprintname

  7. -d or -destroy: pass this alongside -blueprint flag to remove a blueprint on existing project. e.g.: $ flask_setup --myproject d -blueprint myblueprintname

  8. -g or -generate: pass this alongside -marshmallow flag to generate marshmallow on existing project. e.g.: $ flask_setup --myproject g -marshmallow

  9. -d or -destroy: pass this alongside -blueprint flag to remove a blueprint on existing project. e.g.: $ flask_setup --myproject d -marshmallow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

flask_setup-0.1.3-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page