Formatting of dates and times in Flask templates using moment.js

This extension enhances Jinja2 templates with formatting of dates and times using moment.js. Quick Start Step 1: Initialize the extension: from flask_moment import Moment moment = Moment(app) Step 2: In your section of your base template add the following code: {{ moment.include_jquery() }} {{ moment.include_moment() }} This extension also supports the Flask application factory pattern by allowing you to create a Moment object and then separately initialize it for an app: moment = Moment() def create_app(config): app = Flask(__name__) app.config.from_object(config) […]

Read more

A project for Perotti’s MGIS350 for incorporating Flask

This is our project for Perotti’s MGIS350 for incorporating Flask… RIT Dev Biz Apps Web ProjectA web-based Inventory system for company of your choice! due Nov 5th! You and your team will identify a corporation to work for, then build a web-based inventory system. Minimum specifications: You will have to set up the technology (flask, python, packages) ahead of time for it to work! Create a web application using the Flask web framework to:a. Display a list of all inventory […]

Read more

A Higher-Lower web game made in Python using Flask framework

Guess the random number from 0 to 9 in this web game made with Python and Flask Framework Modules that were used In case you don’t have Flask module installed just type the code below in a terminal: How to setup the game After downloading and installing Flask, you must setup the FLASK_APP environment variable: To run the application, use the flask command or python -m flask. Before you can do that you need to tell your terminal the application […]

Read more

The Flask API to expose model and get predictions

This repo contains the Flask API to expose model and get predictions. Expose Model As An API Model Trainig will happen in server(i.e. where ever training of model is done is refered as server here) Model can be saved with .h5, .pkl, .sav Hosting the model in server side using Flask Framework Now Flask API can be consumend by mobile app. Flask Api Deployment in Azure App service Flask code Run and check in local Create Azure App service Run […]

Read more

A simple example using Flask inside a container

Docker Flask This is a simple example of how create a container for a Python Flask Web Application using Docker. Installation git clone https://github.com/FaztWeb/docker-flask cd docker-flask docker build -t docker-flask . docker run –publish 3000:3000 –name docker-flask docker-flask or run container in interactive mode: docker exec -it docker-flask bash or in detach mode: docker run –name docker-flask -p 3000:3000 -d docker-flask GitHub    

Read more

A github template to start a Flask Project

A full feature Flask project template. See also Python-Project-Template for a lean, low dependency Python app. HOW TO USE THIS TEMPLATE DO NOT FORK this is meant to be used from Use this template feature. Click on Use this template Give a name to your project(e.g. my_awesome_project recommendation is to use all lowercase and underscores separation for repo names.) Wait until the first run of CI finishes(Github Actions will process the template and commit to your new repo) If you […]

Read more

An easy way to build your flask skeleton

Flider Flider is a lightweight framework that saves you time by creating a MVC compliant file structure and includes basic commonly used files. What Does it Actually Do TO With just one statement. How Do I Install Flider All you need to do to install Flider is: *WINDOWS: pip install flider *MAC/LINUX: pip3 install flider How Do I Run It Flider is just as easy to use as it is to install: *WINDOWS: py -m flider *MAC/LINUX: python3 -m flider […]

Read more

CRUD app to create and save code snippets, Flask/Python restful Api/backend and React

MS3 Cheat-Hub A cheatsheet hub. An app that organizes your code snippets into collections of cheat sheets and allows you to view, like and save others’. The project is developed as part of MS3 Data Centric module at Code Institute. It is written with a Flask/Python restful backend API, and a React/Typescript CRA frontend. Please visit the project at cheathub.vercel.app. Additionally, the restful backend API can be viwed at cheathub-backend.herokuapp.com. For a sample response, please visit the /api/snippets endpoint. UX […]

Read more
1 2 3