Skip to main content

A plugin to create flask app for pipCreator.

Project description

PIP CREATOR | FLASK

Overview

This PIP CREATOR Plugin automates the creation of all necessary files and folders to set up a Flask application. You can choose between three types of Flask apps: Basic, Advanced, and With Framework. The plugin also supports additional features like virtual environment creation, git initialization, and CDN framework integration for front-end development.

Features

  1. App Types:

    • Basic: Simple Flask structure with static files, templates, and virtual environment.
    • Advanced: More structured Flask project with Blueprints, models, forms, and configuration files.
    • With Framework: Flask integrated with front-end frameworks like React, Next.js, or Vite. Custom frameworks are also supported.
  2. Virtual Environment: Automatically creates a Python virtual environment (venv) for safe package management.

  3. Git Initialization: Optionally initialize a git repository with .gitignore and create a proper project structure.

  4. Test Folder: Creates a test folder if required by the user.

  5. CDN Frameworks: Easy integration with popular CSS frameworks via CDN:

    • Bootstrap (v5.3.2)
    • Foundation (v6.6.3)
    • Materialize (v1.0.0)
    • Bulma (v0.9.4)
    • Semantic UI (v2.4.2)
    • UIkit (v3.16.23)
    • Tailwind (v3.3.3)
    • Pure CSS (v2.1.0)
    • Spectre.css (v0.5.9)
    • Skeleton (v2.0.4)

    CDN Frameworks


App Structures

1. Basic Flask App

{project_name}/
│
├── static/
│   ├── css/
│   │   └── style.css
│   ├── js/
│   └── images/
├── templates/
│   ├── layout.html
│   └── home.html
├── test/ (optional)
│   ├── test_basic.py
│   └── conftest.py
├── venv/
├── README.md
├── run.py
├── requirements.txt
├── pyproject.toml
├── LICENSE
└── .gitignore

2. Advanced Flask App

{project_name}/
│
├── app/
│   ├── __init__.py
│   ├── routes.py
│   ├── models.py
│   ├── forms.py
│   ├── static/
│   │   ├── css/
│   │   │   └── style.css
│   │   ├── js/
│   │   └── images/
│   └── templates/
│       ├── layout.html
│       └── home.html
│
├── tests/ (optional)
│   ├── test_basic.py
│   └── conftest.py
├── config.py
├── README.md
├── run.py
├── requirements.txt
├── pyproject.toml
├── LICENSE
├── venv/
├── instance/
│   └── config.py
├── migrations/
└── .env or .flaskenv

3. Flask App With Front-End Framework

{project_name}/
│
├── client/
│   └── <framework>/
│ 
├── server/
│   ├── __init__.py
│   ├── routes.py
│   ├── models.py
│   ├── forms.py
│   ├── static/
│   │   ├── css/
│   │   │   └── style.css
│   │   ├── js/
│   │   └── images/
│   └── templates/
│       ├── layout.html
│       └── home.html
│
├── tests/ (optional)
│   ├── test_basic.py
│   └── conftest.py
├── venv/
├── config.py
├── README.md
├── run.py
├── requirements.txt
├── pyproject.toml
├── LICENSE
└── .gitignore

Framework options: React, Next.js, Vite. Custom frameworks can be installed with commands like npx create-next-app.


Installation

  1. Install the plugin: pip install pipc-flask else pipc install pipc.flask-app --plugin if you have pipCreator installed.
  2. Run the script to create the Flask app:
    pipc-flask create <project_name>
    

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

pipc_flask_app-0.1.1b1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

pipc_flask_app-0.1.1b1-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file pipc_flask_app-0.1.1b1.tar.gz.

File metadata

  • Download URL: pipc_flask_app-0.1.1b1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for pipc_flask_app-0.1.1b1.tar.gz
Algorithm Hash digest
SHA256 251913e36dc04955dc82e5655aa4636ea04e1646ddb08b27cc89385ece34c6a6
MD5 12500314d0be5f49293ae0d922c5612b
BLAKE2b-256 bea7b28adb4422ef284706d743312a701428a4f3ab3f4f5c822042554fbd6d9d

See more details on using hashes here.

File details

Details for the file pipc_flask_app-0.1.1b1-py3-none-any.whl.

File metadata

File hashes

Hashes for pipc_flask_app-0.1.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 37567f739544326fef1b75f13bc117138ac17866ba8540d01d31b5bb1130548d
MD5 f5b7f3300b7c30f16eb8477bfd224b95
BLAKE2b-256 da6154477e0e73e754d97f9bd20be7cae328c115b1dcc7942fc9d6c7097154f2

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