🔍 / #software / #tutorial / #python
Uploading Files Using FastAPI: A Complete Guide to Secure File Handling
#FastAPI has changed how developers build web APIs. It's fast, easy to use, and handles complex tasks like file uploads without the usual headaches. File uploading is crucial for modern web apps, but developers often mess it up. They create security holes or build systems that frustrate users.
🐱🔗 https://laravista.altervista.org/CatLink/links/451
"PGAS for Distributed Numerical Python, Targeting Multi-Core Clusters", Kristensen (2012)
It was inevitable that, eventually, #Python was going to squeeze and swallow the #PGAS SPMD parallel #programming model. Nothing is sacred anymore....
https://ieeexplore.ieee.org/document/6267869
Show HN: Marimo VS Code extension – Python notebooks built on LSP and uv
https://github.com/marimo-team/marimo-lsp
A decades-old threat command is making a comeback - so don't let the "finger" of doom affect you
A legacy network command resurfaces in malicious campaigns, exploiting users to execute hidden Python programs and steal data.
The joy of coding
I wrote a solution to a python exercise today. With the University of Helsinki MooC, a fun thing that they do is they have an option to show model solution. I guess some LLM provides a solution for the exercise as well.
📖 Read more: https://sajalchoudhary.net/blog/the-joy-of-coding/
Sprache kann auch eingestellt werden: result = model.transcribe(audiofile, language="de")
What online #Python communities would you most recommend?
For someone new to Python?
For someone using Python but not yet tapped into a community? (outside of their work place / friends)
After sitting on this a few days, I think the answer is creating a pipe, handing that to the process, and then shuffling the data in my test infra.
Thankfully, I wrote https://github.com/xonsh/slug/blob/79be59ea67f66033d4fe7c3995ee94b4284d03bd/slug/base.py#L356-L397 a pile of years ago.
Suppose you run your #Python web app with gunicorn. And for metrics, you run the Python Prometheus client in multiprocess mode, since you have multiple worker processes. And you set PROMETHEUS_MULTIPROC_DIR the way the docs tell you to.
Now, what's your favorite way to implement the other thing the docs tell you to do?
> This directory must be wiped between process/Gunicorn runs (before startup is recommended).
So. Do you wipe it only when gunicorn itself boots? Do you wipe it on every worker process start? Periodically via cron-type job? Something else?
Genuine question. Asking for a friend, and the friend happens to be me.
Blender 5.0 launches with ACES color, enhanced rendering, and tighter VFX integration
The free open-sourceBlenderproject has finally releasedversion 5.0with a wide set of updates across color, rendering, simulation, and geometry.
@hynek you did a great job for the #Python community and your YT contributions are always welcome and always of value - even for grumpy old Python guys like me...keep up the good work but never forget your work-life-balance
This is very much inspired by @xavdid 's own AoC blog, by the way. Check it out if you want to see some well-explained #Python solutions to #AdventOfCode ! https://advent-of-code.xavd.id/
I've been adapting my solutions to use (a modified form of) his solution template as well.