Servidores Privados y Aplicaciones

Menu
  • Brawl Stars
  • Clash Royale
  • Clash of Clans
  • Clash Quest
  • Español
  • Français
  • Deutsch
  • Polskie
  • Dutch
  • English
  • Italiano
  • Română
  • Čeština
  • Fortnite
  • Android APKS
  • Português
  • Türk
  • Svenska

Portada | Iccode | Command line tool for the Python Flask web framework

Command line tool for the Python Flask web framework

Command line tool. Note this post has been updated at 06 Jan 2014 to notice about a follow up article. You can read about a follow up article containing an example Flask application made with Flask command line tool

Command line tool for the Python Flask web framework

CONTENIDO

  • 1 Command line tool for the Python Flask web framework
    • 1.1 For URL links see bellow
    • 1.2 What it does
    • 1.3 Requirements, you must have the following Python packages installed
    • 1.4 Useful links
    • 1.5 Interest Posts

Note this post has been updated at 03 Jan 2014 to reflect some changes made in the command line tool and more specifically to the resulting layout, see the screenshots session No 4.

Although this is not a post about Flask framework itself and I am not the best to introduce it to you because probably you already know much more things from me; i feel that at least must give two lines of information for potential Flask newcomers.

Command line tool for the Python Flask web framework

Command line tool for the Python Flask web framework

For URL links see bellow

Flask is a modular micro web framework written in Python, easy to start but also powerful enough to let you create serious web applications. Contrary to Django which is very good and the norm among Python web developers, Flask is minimalistic leaving out the object relation mapper and other goodies. You can get them in the form of extensions (called blueprints in Flask world). For example you can integrate an object relation mapper for SQLAlchemy (Flask-SQLAlchemy), WTForms (Flask-WTF) for user input through HTML forms and many more. For further information check the links bellow.

So this post is about a command line tool (i call it Flaskapp and lives in my home folder ~/bin as flask so i can invoke it from the console easily) that uses Flask and many of the offered extensions and can be used to save the developer from boilerplate code and typing. I created the tool while reading about Flask here.

The short version describes what the tool can do and what it needs in order to do its thing. For more details check the links bellow:

What it does

Creates directory structures for new Flask based projects
Follows a modular approach in Flask based applications, that is all views, models, forms live inside Blueprints created by the tool
Creates blueprints, views, models, templates, forms and a tests file.py ready for use.
Upon project creation it can download and register in the base template jQuery and Bootstrap (both are optional))
Creates configuration files for Nginx and uWSGI ready to be copied to /etc/ configuration directories enabling you instant deployment to servers
Logging ready
Reminds:

A bit of the Ruby on Rails command line tool and its generators but don’t expect refined approach.

Requirements, you must have the following Python packages installed

Requests [http://docs.python-requests.org/en/latest/] pip install requests
Flask [flask.pocoo.org] pip install flask
Jinja2 [jinja.pocoo.org] installed with Flask
Werkzeug [werkzeug.pocoo.org] installed with Flask
SQLAlchemy [www.sqlalchemy.org] pip install sqlalchemy
flask-SQLAlchemy [pythonhosted.org/Flask-SQLAlchemy/] pip install flask-sqlalchemy
WTForms [wtforms.simplecodes.com] pip install wtforms
flask-WTF [pythonhosted.org/Flask-WTF/] pip install Flask-WTF

 

Useful links

Project’s page: http://projects.iccode.net/stef/flaskapp
Flask framework: http://flask.pocoo.org/
Jinja2 the template engine used in Flask: http://jinja.pocoo.org/
Werkzeug the WSGI library used in Flask: http://werkzeug.pocoo.org/
Requests is an HTTP library easy to use: http://docs.python-requests.org/en/latest/
SQLAlchemy is an Object Relational Mapper (ORM) for the Python language: http://www.sqlalchemy.org/
Flask-SQLAlchemy is a Flask extension providing integration with SQLAlchemy: http://pythonhosted.org/Flask-SQLAlchemy/
WTForms is a form creation – validation library for Python: http://wtforms.readthedocs.org/en/latest/
Flask-WTF is a Flask extension providing integration with WTForms: https://flask-wtf.readthedocs.org/en/latest/

Interest Posts

  • An example of a Flask application
  • Command line tool for the Python Flask web framework

Please help us spread this information to as many people as possible. All you have to do is click on one of the buttons above. We thank you in advance for your great help.

  • Facebook
  • Twitter

Thanks for sharing

Leave a Reply Cancel Reply

Servidores Privados y Aplicaciones

Descarga las mejores APK y servidores privados rapidamente

Easd-Design Deutsch

Easd-Design Español

Easd-Design Français

Easd-Design Polskie

Easd-Design Dutch

Easd-Design English

Easd-Design Italiano

Easd-Design Română

Easd-Design Čeština

Easd-Design Português

Easd-Design Türk

Easd-Design Svenska

Spotify
Garageband
Minecraft
My Talking Angela
Play Store
Whatsapp
Snaptube
IMO
Mobdro
Geometry Dash
Apps para PC
Tutoriales
Emuladores
Grabar Llamadas
VPN
Hosting
Internet
Promoción

Descarga nuestra extensión de Chrome y entérate de las ultimas novedades
  • Nfsrevolution Need for Speed (NFS)
  • Iccode
  • Editor de Fotos
  • Delta3dengine
  • Clashadvisor, The Strategy Games site
  • BluefangGames
  • Siuniverse

FACEBOOK
TWITTER
RSS
INSTAGRAM
CONTACTO
Linkedin

Jose Saramago Lte 6 Mza 3

Fracc. Carlos Pellicer Camara, Centro

Villahermosa, Tabasco México

Tel: 9931148393

Quienes Somos

Politica de Cookies

Política de Privacidad

Mapa de Sitio

Copyright © 2022 Servidores Privados y Aplicaciones
Theme by MyThemeShop.com
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Siempre activado
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDuraciónDescripción
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
GUARDAR Y ACEPTAR