Skip to main content

Generate a new Flask app project.

Project description

kickstart-flask-app

This is a simple package to kickstart a new Flask app project. It creates a new Flask project with a simple structure and some endpoints.

Install

pip install kickstart-flask-app

Usage

You could use this package in two ways:

1. Command line (recommended)

Type the following in your terminal

kickstart-flask-app

The above will propmt you to enter some data, press enter to use defaults. This will create a new Flask project in the path you run the python interpreter

2. The Python interpreter

from kickstart_flask_app import console

console()

Same as the command line, this will prompt you to enter some data, press enter to use defaults.

Start the server

First, setup the virtual environment and set environment variables. (APP_ENV or FLASK_ENV to 'dev' or 'prod')

cd <your_project_name>
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export FLASK_ENV=dev

Then start the server

python wsgi.py

The server should be running on http://localhost:5000

Endpoints provided

/ renders html template

/api returns json data

Project details


Download files

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

Source Distribution

kickstart_flask_app-1.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

kickstart_flask_app-1.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file kickstart_flask_app-1.2.0.tar.gz.

File metadata

  • Download URL: kickstart_flask_app-1.2.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for kickstart_flask_app-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5f83254f0176dd186b30820a54ecc5628c26ee4a935e7e3b12246426da36caf4
MD5 245634c439fcf12910820dfef672fc13
BLAKE2b-256 8b6a054efdd31c5ddfc386afc0c2320760816267c6e3eef105871865e239f73d

See more details on using hashes here.

File details

Details for the file kickstart_flask_app-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kickstart_flask_app-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e682727e9ea4247f8a0b2e2d04a41cb062ab341cd0f6670a251960bd6c73f2
MD5 40851d03092624fcab4caf55cc5ef505
BLAKE2b-256 e28bd2ef45c9143885f34337980d209c0ca82cbfdf2e553bda759fc03a2e0c2d

See more details on using hashes here.

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