Giter Site home page Giter Site logo

flask-project-creator's Introduction

Flask-Project-Creator

Creates a scalable folder structure for your Flask project in seconds

just run the flask_project_creator.py inside it's folder after you've downloaded or cloned this project

example:

Creating a project called Music with the pages of indexpage,aboutpage,homepage

output:

_\Music
    _\apps
    -__init__.py
	    -\Music
	    -__init__.py
		    -\indexpage
			    -__init__.py
			    -routes.py
		    -\aboutpage
			    -__init__.py
			    -routes.py
		    -\homepage
			    -__init__.py
			    -routes.py
	-\config
		-config.py				    
    -\static
	    -\css
		    -\Music
			    -indexpage.css
			    -aboutpage.css
			    -homepage.css
	    -\font
	    -\img
    
    -\templates
	    -\Music
		    -indexpage.html
		    -aboutpage.html
		    -homepage.html
    -run.py
    -__init__.py

The options when you run flask_project_creator.py are:

  • add an app/apps
  • delete an app/apps
  • add a page/pages
  • delete a page/pages

ALL ARGUMENT NEED NOT BE ENCLOSED IN QOUTES

add an app/apps takes key-value pairs of app name and it's pages the pages have to be inclosed in a brace [] and if you want to add multiple apps separate the key-value pairs by a comma like below: Single app:

New_App = [new_page,new_page2]

Multiple apps:

New_App = [new_page,new_page2],New_App2 = [new_page]

delete an app/apps is the opposite of add an app/apps it takes any number of apps you have in your project as it's arguments and deletes it

Single app:

App_to_be_deleted

Multiple apps:

App_to_be_deleted,App_to_be_deleted2

**add a page/pages ** adds a new page to the app you specifiy it takes a key-value pair of an app and the pages you want to add inside a brace []

Single app add page:

 App = [new_added_page,new_added_page2]

Multiple apps add page:

App = [new_added_page,new_added_page2],App2 = [new_page]

delete a page/pages does the opposite of add a page/pages but still takes a key-value pair of an app name and the pages to be deleted enclosed in a brace

Single app delete page:

 App = [page_to_delete,page_to_delete2]

Multiple app delete page:

App = [page_to_delete,page_to_delete2], App2 = [page]

flask-project-creator's People

Contributors

halcyonjuly7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.