r/flask Jul 20 '24

Show and Tell The UK's Best Skip Hire Finder - (written in Flask)

7 Upvotes

I love Flask as it allows me to build quality web apps quickly and easily. This week I built https://www.skip-hires.com/ and here's how I did it:

  1. Load dataset into SQLite database

I had a pre-curated dataset so this element of the project was sorted. I then loaded this into a SQLite database as a table of providers with different columns for their different attributes (web address, reviews etc)

  1. Create Flask Routes

Next I created Flask routes based on the different pages required. This is relatively straightforward as a handy directory website like Skip Hires only needs a few different pages.

  1. Create database queries

I then created database queries to query the backend and pass the data into the frontend. For example, to find all the skip hire providers in a given area I need to:

  1. Find the centre latitude and longitude
  2. Draw a boundary box around this
  3. Find all providers with coordinates in this boundary box from the database
  4. Order by their reviews
  5. Pass data to the frontend

GPT-4 was helpful for creating a good query for this.

  1. Pass data into HTML templates using Jinja

After the queries have been written, they can then be called in the Flask routes and passed into the html templates. There I can do things like loop over the list of providers incrementally.

  1. Deploy

Once again, I deployed on PythonAnywhere - the greatest hosting provider going (imho!)

r/flask Oct 24 '24

Show and Tell Personal portfolio

9 Upvotes

Finally fixed my mobile menu! Really excited about how this is coming along... In the resources section I have a ecomm template but let me know if anyone want this portfolio template in that section so I can add it. More feedback welcome!
thanks in advanced Reddit people!
https://silverboi.me

r/flask Aug 15 '24

Show and Tell I was bored and made this. now looking to upgrade this.

20 Upvotes

code: https://github.com/Nannigalaxy/prober

created a simple server status monitor app that shows status of specified endpoint , more urls can be added via custom yaml configuration. even columns are configurable.

need suggestion to what new features can be added or how i can make this better.

r/flask Oct 07 '24

Show and Tell Flask Ecomm project

16 Upvotes

Hi all, I made this ecomm project using Flask! I could use some help listing some features I could add and some more general feedback. Also if someone wants to look/use the repo please DM me and I'll share the link once I upload it to GitHub just make sure to leave a star lol ;)

https://reddit.com/link/1fy34of/video/6l1piixvsatd1/player

r/flask Sep 25 '24

Show and Tell A ML-powered scanner to identify the pattern for spam text and malicious sites.

7 Upvotes

Hello everyone,

I wanna share my machine learning platform that I build with the help of flask and react. The purpose of the platform is to make a prediction on url and text to classify as a malicious/spam or legitimate.

Cons: The model can classify into a unexpected False positive & False negative.

You can try: https://threat-recognator.vercel.app/
Source code: https://github.com/nordszamora/Threat-Recognator.git

I need your feedback & suggestion:)

r/flask Sep 22 '24

Show and Tell Back again with a new flask API (Random Fun Facts!)

11 Upvotes

Last week I posted about my first API that I created with flask. I borrowed and idea to serve random Chuck Norris jokes. It was very simple, had a single endpoint /random and I decided to use what I learned and the structure and build something that could be more useful (maybe)

I present to you Random Fun Facts API! This time, there are a couple of endpoints.

  1. /facts/random - any random fun fact
  2. /categories - to see all the categories of facts
  3. /facts/random/<category> - you can choose a random fact from the category of your choice!

This is still a very simple API, but it's one that I want to control the facts really tightly to be a good curated list of actual fun random facts. Even if nobody ever uses it, I still think it'll be fun. Anyone interested in forking it and making updates, please feel free!

Feel free to check it out and add to it!

API: https://cnichols1734.pythonanywhere.com/
Git: https://github.com/cnichols1734/fun_random_facts

r/flask Oct 30 '24

Show and Tell Limited Media Server (Flask + Angular 17)

5 Upvotes

After the release of Raspberry PI 5 with NVMe support I thought up a project that could utilize the extra storage and speed and enable me to view my content on the GO from my iPhone, iPad or Desktop.

I give you Limited Media Server. I did a preliminary search and nothing showed up under that title, so I'm sticking with it. And I really do use it, behind a WireGuard VPN to view my media (from home) at the office while walking loops in the morning, gotta get those steps in.

Security was a big aspect of this project. I wanted to enable fine grained management encase I want to give my children access to view manga, but limit what they could see. So you can give content a RATING, G, PG, PG13,R.Unrated. And each user has a rating limit, so you could give their account PG-13 access, then put all content not for them under R. The server checks on every rest method to ensure you have the right access rights for the content and the feature used.

Project Parts

Server

  • Pure flask service
  • Plugin support
    • I use it as a test bed, add extra plugins and they show up on restart
    • Plugins actually create processes
    • Plugins can define custom server properties
  • Basic Processing
    • The app has 5 threaded worker.
    • Check the status of processes and see the logs, cancel them
  • Configure it via the website
    • Paths
    • Ports
    • Binding Address
  • View/Manage Manga
    • Bookmark your favorite pages (internal)
  • View/Manage Media files
    • Drop files into folders from your desktop
    • Download from the web
    • Generate previews
    • Bookmark files (internal)
  • Security
    • Content is given a rating, Users have a rating limit that is enforced
    • Users can have a Security Group. Media folders can have a owning Security Group
    • Feature Management (Each user can have the following features)
      • Manage App (Super Admin)
      • Manage Volumes (Manga)
      • Manage Processes
      • Manage Media
      • Use General Plugins
      • Use Utility Plugins
      • Use Volume Plugins
      • Use Media Plugins
      • View Processes
      • View Volumes
      • View Media
      • Bookmarks

Site

  • Angular 17 Standalone project
  • Angular Materials
  • Locally saves your progress for reading manga and can sync to the server
    • Start reading on your iPad and finish on your iPhone
  • Media Browser
    • Media Player, needs more work
    • Stream, Download, Archive, Delete files
  • Management
    • Users
    • Groups
    • Properties
  • Plugin Execution

Thoughts

I did a lot of iterations. Originally I did not have a DB and instead used JSON files for everything. It worked, but was a nightmare of management. I switched over to SlqLite and everything was a lot more simpler. But SqlLite is just so annoying, "I can't use ALTER", very messy to change columns.

I have a older "Series" API that is like media, but worse. It was directly accessing folders on the device and showing files. This could have been a security nightmare, so I switch over to Media API instead.

The media API is basically converts media into GUID.dat files that are stored in the PRIMARY or ARCHIVED media folder. The idea here was to place content you want to watch on the FAST primary drive, and move content you already watched over to a slower and larger storage drive. I had a system to track where you were watching, but I haven't added it back yet.

I explicitly built in a button to restart and stop the server. Because it used a special version of curl, that can emulate chrome browsers I could not really test locally, so I always tested from my Raspberry PI 5. This is why my private source version of this has 460+ commits, making tiny changes, pushing them to github. The restart button was tied into a script that will exit the program and when it detects the value 69, it loop the batch file, download source from GitHub, and rebuild when necessary.

Source Code:

https://github.com/mgatelabs/LimitedMediaServer
https://github.com/mgatelabs/LimitedMediaServerSite

I got this to work on my RP5, the Server project has some of my setup stuff, but it's missing how to make an official service and generate the self signed certs.

You could run it on windows, but the book downloading stuff won't work, that's linux only because of CURL. Also the features to scrape specific websites have been removed. The code to do it is still there with a sample Processor.

r/flask Oct 28 '24

Show and Tell Lazy Web App for RPi

Post image
6 Upvotes

Like everything in IT, spend hours of time to automate the most simplest of tasks. Created an update/reboot web app for my raspberry pi without needing to get on my PC to SSH into it.

r/flask Oct 25 '24

Show and Tell Build a 'Chat with Wikipedia' App Using Flask and Gemini API (Demo + Code)

11 Upvotes

Hey Community,

I’m excited to share how quick and easy it is to bring your apps and ideas to life using Flask—the learning curve is really user-friendly! I recently built a "Chat with Wikipedia" app using Flask, powered by the Gemini API.

You can check out a demo on my YouTube channel (link provided in the video description), where you’ll also find the code.

Here’s a quick overview: this app lets you enter a Wikipedia page title and chat with the page to ask questions about it.

Next on my list is to develop a Chrome extension to extend this concept, making it possible to chat with any website directly.

Let me know what you think!

https://www.youtube.com/watch?v=1mxTvmpDV-I

r/flask Sep 11 '24

Show and Tell Mad Libs - My first flask project

4 Upvotes

This is a Mad Libs project I created in Flask. I plan on revising this to allow the User to choose from a theme first. Right now, I have over twenty stories that Python just randomly chooses. I would love some feedback!! https://mad-lib-magic-bnelson.replit.app/

r/flask Jul 09 '24

Show and Tell My first, albeit not the best ever, landing page

0 Upvotes

Hi All!

Let me start off by saying front-end web development is not my favorite, I do not have "the eye" for it and I am grateful Bootstrap makes it so easy to throw things together that look somewhat decent. It probably took me a ridiculous 20+ hours over the last few weeks to throw the front end together where the backend flask part took 2ish hours from start to finish. That said, I was not going to let perfect be the enemy of good.

Here is how I put this together:

  1. Purchased domain from Amazon Route 53
  2. Pointed the domain to a free-tier Amazon EC2 instance
    • I found out security groups are insanely important to set up to get things going, ports 443, 22, and 80 are used
  3. Built the application using Flask, obviously :P
  4. Plugged my application into a Docker container that makes handles setting up and renewing SSL certificates a breeze
    • Now I can easily set this up for any new project and plugging PHPMyAdmin in should be a breeze for more complicated projects which I really want to dive into
  5. Used Bootstrap

My question for you all is as follows: what do you think of the landing page or the website as a whole? What can I improve to make it easier to look at and draw a potential customer's eye?

Or please let me know of any questions, comments, or concerns!

Here is my website. https://nextgenfilters.com/

r/flask Sep 19 '24

Show and Tell SQLAlchemy Helper (for VS Code)

2 Upvotes

Hey guys, wanted to share this VS Code chat extension that makes it easier to use SQLAlchemy. It's basically a RAG system trained on SQLAlchemy's docs that developers can query through VS Code.

https://marketplace.visualstudio.com/items?itemName=buildwithlayer.sqlalchemy-integration-expert-jYSzG

r/flask Oct 15 '24

Show and Tell Geo Guesser Game & Dynamic Notes

3 Upvotes

This is a project I've been working on, its a geo guesser game and a rich note taking tool along with a place for me to demonstrate other packages and software I develop.

Everything was built in Plotly / Dash and is hosted with Flask. Thought this would be an interesting project to show and tell because of how dynamic i've built it out to be.

Still actively in development so I would be interested to see what feedback anyone has about the UI or functionality of the few pages I've created.

Try the drawing tool:
https://dash.geomapindex.com/freeform

Play the geo guesser:
https://dash.geomapindex.com/geo_game_select

Documentation on Some individual components I've released:
https://pip-install-python.com/

Follow me on Github if you wan't to see how my programming journey unfolds or stay up to date on new component releases:
https://github.com/pip-install-python

Cheers,
Pip

r/flask Oct 17 '24

Show and Tell Movie Recommendations System

Thumbnail
linkedin.com
2 Upvotes

Check out my new project made using : Flask , python, gsap , locomotive js ,MySQL db, html , css

Flask : For connecting frontend and backend Python : For movie Recommendations Gsap : For animation Locomotive js : For smooth scrolling through website My SQL Db : For storing the movie data Html & css : creating interface

r/flask Sep 03 '24

Show and Tell Please help us test new Flask deployment tooling

8 Upvotes

Hi,

I work for Canonical, the creators of Ubuntu. We have been working on some new tooling to make it easier to deploy Flask applications in production using Kubernetes. This includes tooling to create Docker images as well as tooling to make it easy to connect to a database, configure ingress and integrate with observability. We would love your help and feedback for further development. We have a couple of tutorials:

Please share any feedback you have. We are also running user experience research which takes about an hour to complete. Please let us know if you are interested (DM me or comment below). Thank you!

r/flask Sep 14 '24

Show and Tell My first Flask project! todayi.io - a platform to share your startup journey with the world

6 Upvotes

as someone who's always excited by new projects and building things, I created todayi.io, a platform where you can document and broadcast your daily journey to a like-minded community.

this platform works by posting your progress on a project daily and sharing your journey with the community, acting as a public record of your project's growth and transformation. I hope you guys can check it out and share your thoughts on it.

r/flask Oct 08 '24

Show and Tell Generating Python CRUD APIs using GenAI

2 Upvotes

We created a container of our software to generate APIs by describing it in a prompt: https://hub.docker.com/r/apilogicserver/web_genai .

This youtube video explains the process and usage. The frontend uses react, but the generated projects run flask with ApiLogicServer .

You need an OpenAI API key to create applications in the container. We deployed a demo on our site in case you don't have an OpenAI key and you just want to try it.

In addition to using GenAI to generate apps, you can also start from an existing database to create apps. This requires no key.

r/flask May 08 '24

Show and Tell I have created a social network with Flask and everyone can try it

20 Upvotes

I have created a social network with Flask and everyone can try it, The social network is made with Flask and MySQL, and is deployed in EC2, and if you want to try it here is a screenshot and link: https://www.socialspace.cloud/

r/flask Jul 09 '24

Show and Tell A website of free web tools.

8 Upvotes

Hi friends, me and my friend made a website in flask with free web tools like an image converter, an image resizer as well as other tools like a currency converter etc..

I wanted to present it to you because we've worked hard on it and I'm looking for ideas for new tools to develop for the site!

Here our website !

I've been using flask for a few years now and it's so good.

I do self hosting with a machine at home and use cloudflare to hide my DNS and ip address. My website work with Waitress as production server, i want to try gunicorn soon but i need to learn linux and it's not easy for me who use Windows server for more then 10 years xd

r/flask Sep 15 '24

Show and Tell Starting My Startup Journey

0 Upvotes

I recently started my startup journey with my project, https://trytodue.com/. I had this idea during my freshman year of college because I hated manually entering my assignments into my Google Calendar. So, I am working on a project that automatically does it for you! Check it out and join the waitlist if you're interested!

r/flask Apr 27 '22

Show and Tell Flask Allowed Me to Implement My Startup for only $12.

105 Upvotes

After years of developing numerous applications in multiple languages, I finally built an automated crypto trading application that I commercialized using Python and Flask.

First, I spent $12 buying the .com domain name on the internet from Google. The rest of my journey was free.

The application itself was built in Python ($0), using an open-source development environment ($0) and I used Python's pyinstaller package to compile the application into an executable that can run on Windows, MacOS, or Linux. - $0

I created a professional looking website by using the templates on GoogleSites ($0) to design and build my site and then when I was finished, I copied and pasted the html that was generated over to my flask application.

I created my own Web Server using Python Flask ($0), saving me from having to pay for a web-hosting provider. The site also utilizes Flask-Login to enable password-protected logins, Flask-Limiter to prevent malicious attacks/calls to the site, and Flask-Mail to send email confirmations.

The website has connectivity to a back-end MySQL database ($0). It's deployed using Apache/WSGI ($0). It's also deployed on https:// by using letsencrypt ($0) to generate the SSL certificates.

Next, I created an API server using Python Flask ($0) so it can communicate and receive/send data to the client applications.

I was able to integrate the Stripe API ($0) to my Python Flask application in order to receive and accept credit card payments without having to store any credit card information or worry about the compliance headache that comes with holding that data. I also implemented a payment option to accept payments via cryptocurrency via XLM (Stellar Lumens) by integrating with their blockchain API ($0).

At this point, all of this has been running on my Ubuntu desktop. Once I was ready to move to the next step, I signed up with with Amazon Web Services and selected their free-tier option ($0) which was a t2.micro instance. I was able to replicate my Python-Flask/Ubuntu/MySQL environment there for free.

A month later, Amazon reached out to me regarding an entrepreneur program they had and said I could apply for it. A week later I qualified for an additional $300 in AWS credit!

If you're interested in checking out the quality of the website design or features enabled, you can google KryptoScalper.

Hopefully, my story serves as an inspiration to other aspiring entrepreneurs and to let them know that if you're a skilled enough Python/Flask programmer, you don't have to throw down a lot of money to implement your idea into a business. Feel free to comment or ask any questions regarding my journey

r/flask Sep 21 '24

Show and Tell firebase firestore populator

1 Upvotes

Alright, so I had this issue: when I wanted to use algorithms in a Python backend script that would later need Firestore, I didn't know what to do. I would always use the same script that would automatically generate filler data for me in the database. Then, I realized that I could create a package that does this.

So, I created a package that fixes that issue. It has saved me a lot of time recently, and you can do so much more with it. Here's the link: https://pypi.org/project/firebase-populator/

r/flask Jun 16 '24

Show and Tell Published my first Flask Project!

17 Upvotes

I’m excited to share my first live Flask project with you all: a very simple web tool to create favicons for websites. After learning Flask and working on several practice projects, this is the first one I've published live, and I would love to get your feedback.

https://www.voibl.com/favicon-generator

What does the web application do?

This web application allows users to easily create favicons for their websites based on Google's requirements. Here’s a quick rundown of its features:

  1. Image Cropping: Users can upload an image and use a built-in cropping tool to select the desired portion of the image. The cropping tool maintains a square aspect ratio to ensure the favicon looks great.
  2. Automatic Resizing: The application automatically resizes the cropped image to standard favicon sizes (48x48, 96x96, and 144x144 pixels), ensuring compatibility with various devices and browsers.
  3. ICO File Generation: The cropped and resized images are saved as an ICO file, which is the standard format for favicons.
  4. Unique URL Generation: Each generated favicon is stored in a unique folder, and the application provides a link tag that users can easily copy and paste into their website's HTML.

For those that want to see the source code: https://github.com/Note-To-Draft/voibl-favicon-generator

r/flask Jul 10 '24

Show and Tell I made (or attempted to make) a better web interface for creating and sharing flashcards than Ankiweb.

Thumbnail
gallery
15 Upvotes

It is a prototype of a web interface for Anki that is supposed to be better than ankiweb.net. It may currently be used to create and study basic flashcards, but it is incompatible with Anki files (*.apkg) and lacks many of the features that Anki offers.

I created it as a learning project and to experiment with my really basic idea of sharing and cloning decks using a web interface. I’ll continue to work on it to improve it further, but it isn't meant to be a full-fledged web application.

You can check out and live demo and repo: Live Demo: https://ziho.pythonanywhere.com Repo: https://github.com/shanukun/Ziho

I’m using Flask for handling all the client requests, validating forms, and handling the database side of things.

However, the one part of the website, which fetches the card from the server for the user to study and then cycles through those cards based on user response, is built in Javascript (here)[https://github.com/shanukun/Ziho/blob/main/ziho/static/js/displayer.js], which has been bothering me for some time. Because I believe it would be more interesting to handle it on the backend side. So it will be the next thing I work on.

If you have any suggestions or comments on the project or code, please share.

r/flask Sep 10 '24

Show and Tell I made an app to visualize H1B visa data

3 Upvotes

Inspired by a post in another subreddit so I made this webapp in Flask. You can query and visualize data from H1B visa applications. So far I've only included roughly 9 months data there. It shows that "Web Devs" average salary is only $68k, even behind English teachers lol.

https://urchin-app-qdr2l.ondigitalocean.app/by-soc-occupational-title

Still very early prototype as you can tell and don't even have a domain yet.

Really love Flask for it's simplicity and extensibility, I can see myself sticking to Flask most of time.

Happy to hear your thoughts & questions!