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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipc_flask_app-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ba58d8bfa798178366102d5a14962cbae609e67f046f7e359cfd349d1f1f2b06
MD5 a05cc3da7b05836a0e152c1d06aa01d8
BLAKE2b-256 b026b808104863756b868fd21d6263a85338b8e15650b6bb4029a7248bf55db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pipc_flask_app-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22c70b7cec22816afe954115db633d25062fbb81fee258fddfa55a5eb05cf58d
MD5 03a6bc23d29f6cf0e45276ae0175f6b8
BLAKE2b-256 063c7988cc3f712cb885205cb896ac9586e7635861fd8f870b133b68311c131f

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