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. init: Intialize Flask-Setup in project folder; this makes sure you dont need to pass project name each time you call flask_setup $ flask_setup init --project_name

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

  3. -standard: Builds a full web flask app $ flask_setup -standard

  4. b or -blueprint: this depends on the first two above. Adds blueprint to the project: e.g. $ flask_setup -basic -blueprint $ flask_setup -standard -blueprint

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

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

  7. -g or -generate: pass this alongside b or -blueprint flag to generate blueprint on existing project. e.g.: $ flask_setup --myproject g -blueprint myblueprintname or if you've called the init arg you can simply do: $ flask_setup g -blueprint myblueprintname

  8. -d or -destroy: pass this alongside b or -blueprint flag to remove a blueprint from existing project. e.g.: $ flask_setup --myproject d -blueprint myblueprintname or if you've called the init arg you can simply do: $ flask_setup d -blueprint myblueprintname

  9. -g or -generate: pass this alongside m or -marshmallow flag to generate marshmallow on existing project. e.g.: $ flask_setup --myproject g -marshmallow or if you've called the init arg you can simply do: $ flask_setup g -marshmallow

  10. -d or -destroy: pass this alongside m or -marshmallow flag to remove a marshmallow setup from existing project. e.g.: $ flask_setup --myproject d -marshmallow or if you've called the init arg you can simply do: $ flask_setup d -marshmallow

  11. -g or -generate: pass this alongside -model flag to generate model on existing project. e.g.: $ flask_setup --myproject g -model or if you've called the init arg you can simply do: $ flask_setup g -model

  12. -d or -destroy: pass this alongside -model flag to remove a model setup from existing project. e.g.: $ flask_setup --myproject d -model or if you've called the init arg you can simply do: $ flask_setup d -model

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.5-py3-none-any.whl (7.4 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