David Lord :python: · @davidism
1070 followers · 693 posts · Server mas.to

Flask-SQLAlchemy 3.1.0 released, with support for SQLAlchemy 2's new annotation-based model definition. Thanks to @pamelafox for becoming a maintainer and enabling that support!
github.com/pallets-eco/flask-s
pypi.org/project/Flask-SQLAlch

#sqlalchemy #flask #Python

Last updated 1 year ago

PyCon CZ :python: 🇨🇿 · @pyconcz
41 followers · 36 posts · Server floss.social

🌐 Chcete se naučit vytvořit jednoduché webové API? Přidejte se na workshopu "Moje první API ve Flasku", který povedou Miroslav Brabenec, Petra Číhalová a Lenka Erbenová! 👩‍💻 cz.pycon.org/2023/program/work

#webapi #flask #pythonworkshop

Last updated 1 year ago

Brian :python: :flask: :apple: · @brianb
283 followers · 2091 posts · Server fosstodon.org

Here's a architecture question:

I'm building out some routes to get and edit some database objects. These objects are children associated to a parent in a collection.

For the URL, is it better to have a hierarchical address like `/parent/<parent_id>/child/<child_id>` than to just do `/child/<child_id>`?

My thinking is yes because I can filter DB objects based on the parent ID and the associations which already exist, but then looking up a child directly is also fast. Thoughts?

#flask #python

Last updated 1 year ago

Facundo Olano · @facundoolano
53 followers · 147 posts · Server hachyderm.io

The last couple of months I've been working on a little reader that doubles as a (read-only) client.
The UI is closer to a Mastodon/Twitter feed than an email inbox.

I'm still experimenting with it, and it's missing a bunch of basic stuff, but I did add some cool features already, like an embedded reader mode and a send to button.

It uses for the backend and for the UI.

github.com/facundoolano/feedi

#rss #mastodon #kindle #python #flask #htmx #hyperscript #bulma

Last updated 1 year ago

It's a me, Mauro · @mauro
1227 followers · 3741 posts · Server mograph.social

I officially finished to write the of my web application for my final project.

What a ride, in hindsight just a few months ago a couldn't believe I was gonna be able to design and build an app from scratch like this.

Now, on to the .

#backened #cs50 #frontend #python #flask #sql

Last updated 1 year ago

David Lord :python: · @davidism
1066 followers · 689 posts · Server mas.to

I'm interested in doing some livestream maintainer open source hours for Flask and the Pallets ecosystem. Is there a hashtag on Mastodon about that, where I can follow others doing it and get more reach when I start?

#flask #Python

Last updated 1 year ago

Iago Andrade · @iago_andrade
11 followers · 4 posts · Server kolektiva.social

Well, I think it could be nice to talk a bit about myself, so here it goes (it is a long one, be warned)

My (still ongoing) journey from engineering to programming: Prologue
As can be seen in my profile bio, my name is Iago Andrade, and I am a Brazilian. What can't be seen there, though, is that I'm a mechanical engineer, and I have worked as a mechanical designer since 2018. This year (2023) I decided to pursue an old desire, which was to be able to work with .

First contact
From the very first year at university, I fell in love with programming, when we were introduced to . Most of my friends were not really interested in that, and thought it was too difficult, but I was fascinated by the possibilities of what could be done with it.
At first, we used it mostly to solve dificult mathematical problems through iterative process, but my curiosity led me to learn more than just what was taught in classes. We were also later introduced to MATLAB and EES, and I even learned a bit of in order to help a friend of mine.
But as the course became more and more time consuming, I started to drift away from that passion, and focus more on the other disciplines, and only sparingly did I delve into anything related to programming.

First job
As I graduated, I soon got a in mechanical design, modeling industrial equipment and parts and its drafts for production. As I had little time for studying, programming was put aside for a while, and all the focus was put into this job.
I learned a lot at this job, and managed to build a lot of resources for accelerating, and even automating tasks, and that kept me reminded of how much I liked to solve problems like these. I even got to the point of learning some script in order to automate the creation of folders in the company's server (which did not end up very well, due to the lack of some quotes hehe). Though the script caused some problems, it was solved in the end (and I learned the important lesson of debugging everything very thoroughly).

Reigniting an old passion
At some point between then and now, I learned of the existence of a "new" game engine called . I had never made any , and had never used a game engine before either, but I had had some contact with (free and open source softwares), like and , and that one caught my attention, since I had always wanted to create games. Since it was free, super lightweight, I decided to give it a go. It felt so good to learn that tool, and programming in it reminded me of how much I liked to code.
Back then, a friend of mine was also interested in making a game, and he wanted to be more focused on the story part of it, which was perfect since I wanted to focus on the programming and possibly the art and music for it. We started to work on the idea, got a ton of references, and started building the overall scope and story, until one day we lost momentum and just couldn't get back to it. Our jobs were sucking too much energy, and we decided to put it aside until we had more time to do it properly.

and the leap of faith
After some more years of working with 3D modeling, the company where I was working decided to implement an ERP system. The problem was they didn't have anyone from the inside who was qualified for some of the tasks that would appear, and they tasked me with dealing with those problems.
I had never worked with an ERP system, but had some idea of how worked, and that helped a lot in making some decisions early on (like not entrying all data manually). I had to learn how to bulk clean old data from another system they had used before, which had been fed by many different people, with a lot of mistakes and inconsistencies.
After that, I had to import all that data into the system, and I decided it was time to learn SQL so I could query the database properly when I needed information. And that once again triggered my interest in programming, leading to my decision to make new templates for the engineering team.
These templates used programming for automating some of the tasks, in a language specific for the modeling software,reducing many of the steps in the project pipeline, and making it easier to input new equipment in the system.
As I became more and more of some problems at work, and got more interested in programming again, I made the decision of focusing in relearning the languages I had contact with, and while searching for resources, I was informed that offered this course online, called
For a few months I tried, and was unable to in my spare time. So ultimately, I decided to my job, finish CS50, and start a career in programming.

Paying the
With only the final project from the course left, money was running short, and bills were still appearing, so I had to start looking for jobs, and I ended up getting another job in mechanical design. The difference now is that it is much closer to home, so I will be able to finish my final project on my spare time, and keep looking for roles in programming.

Epilogue: The Final Project
Since this toot is ridiculously long already, I may as well talk about the final project for whoever got to this part haha
The idea for the project is to mix a bit of with , making a site with three main areas containing mini-games in three different styles, from to one with actual graphics. If all goes well, I also wanted to enable players to get a score, and keep that in a database, if the player so desires. is being done in python with , is using templates from flasks , but mostly plain and

#programming #c #python #job #bash #godot #games #FOSS #blender #inkscape #sql #databases #tired #harvard #cs50 #study #quit #bills #junior #gamedev #webdev #ascii #backend #flask #frontend #jinja #html #css #javascript

Last updated 1 year ago

Wervice :windows: · @wervice
5 followers · 67 posts · Server fosstodon.org

Lumos got a new update. It cleans up a lot of things.

github.com/Wervice/Lumos

#cloud #Lumos #python #flask

Last updated 1 year ago

Sergi · @sergi
34 followers · 520 posts · Server floss.social

Jinja2 Fragments 1.0.0 is out!
pypi.org/project/jinja2-fragme

Check it out if you use something like that benefits from template fragments.

#htmx #jinja #flask #sanic #fastapi #quart

Last updated 1 year ago

Brian :python: :flask: :apple: · @brianb
280 followers · 2059 posts · Server fosstodon.org

Quick before I start teaching for the day:

Anyone have experience with passwordless logins, particularly with or ? I'm thinking about going that route for student logins so they don't have to worry about creating _another_ password and so I don't have to go through Google Identity OAuth verification hoops.

#python #flask #webdev #askfedi

Last updated 1 year ago

mexorcist · @mexorcist
26 followers · 77 posts · Server dmv.community

Interested in setting up a single-serving with or or some kind of app server on a small & cheap instance or something. I haven't done this in a long time, and am curious/interested in learning about what the current "production standard" is these days. Got any tips?

#website #nginx #flask #python #ec2 #linux

Last updated 1 year ago

Henry · @hl
190 followers · 815 posts · Server social.lol

Any recommendations for any easy to use libraries I can use to create charts in a app? I need to be able to plot multiple time series, with different sample times. Things like Charts.js and Frappe only seem to support having shared X axis points (labels). I'm now wondering if D3.js is my only option, but it looks like a monster.

#javascript #python #flask

Last updated 1 year ago

John Lister - GeoScrub · @GeoScrubJohnL
9 followers · 10 posts · Server fosstodon.org

Happy to launch my personal website www.geoscrub.org powered by and hosted on

#flask #pythonanywhere #gis #python #smallbusiness

Last updated 1 year ago

David Lord :python: · @davidism
1058 followers · 673 posts · Server mas.to

Just merged a huge PR from @pgjones into Flask that separates out IO so that async Quart can share much more of Flask's implementation. One step closer to merging Quart into Flask! github.com/pallets/flask/pull/

#quart #flask #Python

Last updated 1 year ago

lil5 :golang: 🌱 · @lil5
113 followers · 1336 posts · Server fosstodon.org

@slashtechno you’d need to;
1. cache and occasionally get the feed the the mastodon api(or rss)
2. Run a small api to get the cached contents (Maybe with or )
3. Use something like to fetch the content in the static frontend add it in the style you want.

#slimframework #flask #AlpineJS

Last updated 1 year ago

Stark · @Stark9837
129 followers · 2641 posts · Server techhub.social

@mekuso

Isn't the quite new? I only recently heard of it while searching for asyncio caching and using async Requests and . Now, I see it everywhere.

Personally, I am am busy investigating some backend and API, and I have just been considering using instead of and

@Python

#Redis #beautifulsoup #go #python #flask

Last updated 1 year ago

Benoît HERVIER · @brvier
32 followers · 64 posts · Server piaille.fr

Besoin d'aide pour de l'optimisation de code en , réalisation de back-end en ou , réalisation de d applications android en ?

Je suis disponible le soir et week-end en

Portfolio : rvier.fr/pages/portfolio

#python #flask #go #freelance

Last updated 1 year ago

Flamekebab · @Flamekebab
199 followers · 2234 posts · Server toot.wales

Aha! Cracked it! The database connection was being made in if __name__ == "__main__": and so importing the Flask app in Gunicorn was never going to work properly! Damn you, original author of this code!

Still, that's me unstuck so I'm glad it was something easy, even if it took me multiple days to spot.

#python #flask

Last updated 1 year ago

Pamela Fox · @pamelafox
2672 followers · 925 posts · Server fosstodon.org

New blog post: fetching NDJSON over streaming HTTP requests (using /#Quart on backend, and fetch with ReadableStream on frontend).

blog.pamelafox.org/2023/08/fet

#flask

Last updated 1 year ago

David Lord :python: · @davidism
1037 followers · 655 posts · Server mas.to

Love to see +187 -3027 as the change summary. This probably represents another speedup for Werkzeug on top of the 35% observed when everything was adjusted internally for 2.3, since all the deprecation checks are no longer done for each request github.com/pallets/werkzeug/pu

#flask #Werkzeug #Python

Last updated 1 year ago