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.0b1.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipc_flask_app-0.1.0b1.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.0b1.tar.gz
Algorithm Hash digest
SHA256 1099857816b090305af469765955b3061ebf0d727304d4f36a91cb118a4606ed
MD5 f66205c66032da375e40dadc30c4c24f
BLAKE2b-256 50b09ef431b67e33e510090c88deedf8459f4d83d10bb0ce241fdc999858a4f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pipc_flask_app-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cc8edca11c78198ddd809d6502f4ddce7c624671208ab38206c9a1005a83b69
MD5 d906ad0a989fd53cadb7d9373f450a5c
BLAKE2b-256 357b2a79fd3c12a95f2fd48bf23b70d7fc6b5401c2b88935340a4bb416e6ae11

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