1. 8

Python, Flask, uWSGI, and Docker is my main tech stack for most of the fiddling I do.

What projects are you working on that utilize the Flask framework?

  1.  

  2. 4

    I always develop my simple dynamic websites using flask, e.g. a website to check historic border wait times. The public data only includes highways, but in the background I also have the smaller border stations. At the moment it’s only between Germany, Austria, Slovenia, Croatia, Serbia, Hungary and Bosnia and Herzegovina, but I might extend it to other European countries.

    I started to develop this when one time there were traffic jams of approx. 3 hours at the border on my route (plus additional wait times at toll stations). There are websites where you can check the current wait time at border crossings, but I did not find any service that would display the historic data. And my idea was that with historic data I can find out at what time I should try to arrive at the border (e.g. is Friday at 10pm better than Saturday at 8am?).

    Apart from this I used to have a cronjob/service monitoring application that I had developed with flask. It was similar to Pingdom or healthchecks.io (actually both use cases combined in one), but I switched to Prometheus and thus took the website down.

    Update: Just saw the word “recently” in the title. Recently in my case means somewhen in 2019.

    1. 3

      For the past ~6 years I’ve been working on Redash, which uses Flask. I actually started with Tornado but eventually migrated to Flask.

      1. 3

        I moved from Flask to Sanic so that I wouldn’t need to think about a wsgi server and because I like the explicitly passed request style.

        And now I use Julia instead, so last time I had cause I used Mux :)

        I don’t do anything fancy; just restful APIs for things.

        1. 2

          I’ve been working on building a improved version of social bookmarking sites like pinboard/delicious. Most of the code is done with Flask.

          I love pinboard (and loved delicious) but I wanted to fix a few problems like:

          1. I didn’t like how you couldn’t add bookmarks on mobile (mostly because browser extensions generally don’t work on mobile browsers)
          2. I didn’t like how all the browser extensions available need to make a API request for each page to check if you’d already bookmarked it or not. That felt a bit invasive - I wanted them to keep local state
          3. Search on pinboard isn’t great, even if you pay extra to have him index the html of your bookmarks
          4. I wanted to be able to see the discussions on reddit/lobsters/hn for each of my bookmarks

          So far I’ve only solved 1, 2 and part of 3 but it’s already useful to and I’ve migrated away from pinboard. Writing the browser extension part really tested my Javascript knowledge though. I’m currently trying to go back and figure out how to write proper unit tests for it - which is not completely straightforward

          1. 2

            An even booking system and a mini LIMS app for managing/tracking samples and sequencing data.

            1. 2

              It’s still my default tool if I need a quick REST mockup for something that is done, but my current day job doesn’t have me building (new) web apps anymore and for private projects I tend to not use Flask, or python at all.

              Bit of a shame, it has served me well in the past years.

              1. 2

                I’ve been working on an email forwarder service https://github.com/simple-login/app. It uses a rather standard Flask stack: sqlalchemy for ORM, alembic for database migration, flask-login for authentication, etc.

                1. 2

                  Have/are any of you used/using async-await with Flask, or Quart?

                  (I’m the Quart author)

                  1. 1

                    Not yet, but it certainly is on my list.

                    As someone without a formal computer science background, async programming has taken me a little bit of time to wrap my head around. I’ve definitely looked at Quart though and gotten a hello world running, just haven’t spend any meaningful time with it yet.

                    2020 has a long list of goals and having a meaningful grasp of asyncio is on that list :)

                  2. 2

                    I’m building Developer to Manager using Flask.

                    The development process works just like any other Flask app. For deployment though, I’ve chosen to use Frozen-Flask to compile the application to a static site, so what you see on the site is actually just a bunch of HTML files.

                    I wrote about this setup here at length in case anyone is interested in reading more!

                    1. 1

                      Exactly the kind of post I was hoping to find in the comments here. Thank you, will give the setup a read!

                    2. 1

                      Last year, I worked on an online medical reservation platform built from scratch with Flask, for a client. Unfortunately, the project did not succeed commercially. The technical side was moderately complex and I think I could save some time if I was using Django, but Flask did very well and it was fun.