David Lord :python: · @davidism
851 followers · 387 posts · Server mas.to

A preview of the new Pallets Projects logos by @georgically in sticker form! Find me at the PyCon open spaces and sprints to get one before they run out.

#pythonflask #flask #Python #pycon

Last updated 2 years ago

David Lord :python: · @davidism
826 followers · 366 posts · Server mas.to

A preview of the new Pallets Projects logos in sticker form! Find me at the PyCon open spaces and sprints to get one before they run out.

#pythonflask #flask #Python #pycon

Last updated 2 years ago

David Lord :python: · @davidism
825 followers · 364 posts · Server mas.to

Back at inbox zero for Flask 🎉 version 2.3 coming soon ™️

#pythonflask #flask #Python

Last updated 2 years ago

David Lord :python: · @davidism
825 followers · 364 posts · Server mas.to

Just finished a massive PR to deprecate bytes and charsets other than UTF-8 in Werkzeug 2.3. (You can still work with raw bytes in requests/responses, so it's still possible to use other charsets.) Surprisingly, very few tests failed due to it, which was a relief. Looking forward to making the PR removing all the deprecations 😈 github.com/pallets/werkzeug/pu

#pythonwerkzeug #pythonflask #Werkzeug #flask #Python

Last updated 2 years ago

David Lord :python: · @davidism
793 followers · 277 posts · Server mas.to

Last year at PyCon US 2022, @tonybaloney ran a basic benchmark of Flask. I finally got around to it, and achieved a ✨ 35% ✨ speedup to routing and environ processing.

Due to Python 2/3, Werkzeug had its own modified copy of `urlparse`/`urllib.parse`, with a lot of unnecessary encoding/decoding due to str/bytes support. I finally replaced that with the standard library, and got a huge speed boost.

github.com/pallets/werkzeug/pu

#pythonwerkzeug #pythonflask #flask #Python

Last updated 2 years ago

David Lord :python: · @davidism
770 followers · 244 posts · Server mas.to

It's kind of nice to have a fix for a high severity CVE in Werkzeug 2.2.3, because it's finally forcing people to stop pinning to old versions and instead update their dependency tree.

Wish there was a way to encourage that without the CVE. But people just _love_ Stack Overflow answers that say "I pinned to this old version and it worked" full stop, even if there's already an updated version available.

#Werkzeug #pythonflask #flask #Python

Last updated 2 years ago

David Lord :python: · @davidism
755 followers · 233 posts · Server mas.to

Just documented the Flask application setup, serving, and request lifecycle. A pretty dense but important topic, one I was surprised wasn't documented already. I gave a talk on this at PyCon Canada 2018 then forgot to write it down 😅 flask.palletsprojects.com/en/2

#pythonflask #Python

Last updated 2 years ago

Pamela Fox · @pamelafox
1857 followers · 222 posts · Server fosstodon.org

My latest sample uses with Flask Blueprints, Flask-SQLAlchemy with PostgreSQL, pytest, ruff, black, pre-commit, Github actions, plus Docker for local dev and deployment to Azure Container Apps.

Code @
github.com/pamelafox/flask-sur

#pythonflask

Last updated 2 years ago

David Lord :python: · @davidism
736 followers · 215 posts · Server mas.to

Flask-SQLAlchemy 3.0.3 released pypi.org/project/Flask-SQLAlch with SLSA provenance for the build.

It adds error messages around some common incorrect uses of the extension, which started failing more obviously (but mysteriously) with the 3.0 release.

Now that I've got the publish workflow created, it's really easy to copy it to each project, and the automation is really nice.

#flasksqlalchemy #sqlalchemy #pythonflask #Python

Last updated 2 years ago

Pamela Fox · @pamelafox
1826 followers · 199 posts · Server fosstodon.org

For me, one of the hardest parts about writing a app is deciding on my directory structure / overall project organization.

For those of you who use Flask Blueprints, do you use this folder structure, /blueprints/<blueprintname> ?

#pythonflask

Last updated 2 years ago

JT2 · @JT2
0 followers · 1 posts · Server discuss.systems

Hello! First post here - my background includes a bachelor degree in computer information systems and a diploma in rail traffic control.

My career has been in the rail industry. After train dispatching I moved into developing positive train control and lately developing new dispatch systems.

For fun I enjoy spending time in the , lots of and tinkering with , , and

I’m actively involved in my church also as a tech leader. Using cameras and desktop screen sharing to run a video production using

#mountains #iphone #photography #arduino #raspberrypi #pythonflask #ndi #vmix

Last updated 2 years ago

Pamela Fox · @pamelafox
1795 followers · 191 posts · Server fosstodon.org

I gave a workshop today about containerizing web apps, both for local development and deployment.

My first time teaching containers! As usual, teaching is helping me to understand better.

pamelafox.github.io/my-py-talk

#pythonflask #docker

Last updated 2 years ago

David Lord :python: · @davidism
736 followers · 215 posts · Server mas.to

Anyone familiar with Rust and PyO3 want to jump on Discord and help me improve MarkupSafe in Rust? My initial implementation is about 6 times slower than the native implementation on a basic benchmark. discord.gg/pallets

#pythonflask #pyo3 #Rust #Python

Last updated 2 years ago

Pamela Fox · @pamelafox
1778 followers · 176 posts · Server fosstodon.org

developers: When you're developing locally, do you...

#pythonflask

Last updated 2 years ago

Pamela Fox · @pamelafox
1779 followers · 174 posts · Server fosstodon.org

Making a very lightweight surveys app as a demo and I don't want to require any user login.

Should I check if someone has already answered based on cookie, localStorage, or sessionStorage?

#pythonflask

Last updated 2 years ago

David Lord :python: · @davidism
736 followers · 215 posts · Server mas.to

Flask and the other Pallets projects are all using `pyproject.toml` instead of `setup.py` and `setup.cfg`. Only MarkupSafe still has a `setup.py`, in order to configure the C speedups.

#pyproject #pythonflask #Python

Last updated 2 years ago

David Lord :python: · @davidism
697 followers · 171 posts · Server mas.to

Just released MarkupSafe 2.1.2. Aside from fixing a bug, it also provides Python 3.11 wheels, as well as SLSA provenance.

This was the first automated release through GitHub workflows. Push a tag, and it automatically builds sdist and 49 platform wheels, generates SLSA provenance, creates a GitHub release with all the files, waits for review, then publishes them to PyPI.

github.com/pallets/markupsafe/

#SLSA #pythonmarkupsafe #pythonflask #Python

Last updated 2 years ago

David Lord :python: · @davidism
697 followers · 171 posts · Server mas.to

Flask and all Pallets projects now test against Python 3.12-dev, all tests passing. Didn't have to fix any code, only updated the CI config.

#pythonflask #Python

Last updated 2 years ago