Python の async/await を徹底解説!コルーチンの仕組み
https://qiita.com/Leapcell/items/95dde75832c5ee4df0e7?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
Python の async/await を徹底解説!コルーチンの仕組み
https://qiita.com/Leapcell/items/95dde75832c5ee4df0e7?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
3 de Abril, às 20h25 Desvendando o Python: Da Simplicidade ao Poder ConFLOSS na Veia - #2509 | SouDevCon 25! UMA CONFERÊNCIA FLOSS
Link direto - https://www.youtube.com/watch?v=OGnTDNjRCKc
He alliberat la primera versió, la v0.1, de #appy, el servidor #ActivityPub escrit en #Python sobre #fastAPI
https://codeberg.org/spla/appy/releases
La majoria d'aplicacions per a Mastodon funcionen amb appy.
Free Python & Full Stack Python Training!
Starts: 3rd April |
4:00 PM IST
Register Here: https://tr.ee/2YzYUA
Master Python, Django, Flask, FastAPI & Build Your Career!
Join Our Community:
Telegram: https://t.me/NIT_Training
I am probably holding them wrong!
This time I tried writing a web app not in #php but #fastapi + #sqlmodel (python) and #vue3 ( javascript). It kind of works well but refactoring is a nightmare.
In the beginning, it felt like I was having the best of both worlds -- Python and Vue3. Dev speed was good. Now maintaining and refactoring make me feel like I am having the worst of both worlds.
As a single dev, I should have stayed with #php!
Bon c’est vraiment pas mal #litestar comme framework #python https://litestar.dev/
Ça a le goût de #fastapi sauf que c’est développé par une vraie communauté, que la doc est hyper bien faite et que l’écosystème a l’air riche #staytuned
Anyone knows of a #Python library that can make a #fastapi route method act as an #mcp resource or tool, while also keeping its default functionality (JSON API, maybe SSR) with full dependency resolution and Pydantic support (obviously two separate routes/paths are necessary in this case)?
The official mcp Python SDK doesn't seem to match these requirements unfortunately, even though it's based on Starlette..
Thinking about implementing one, but it would be really nice if it already existed.
Just created a simple #FastAPI project to showcase how #Python server-side rendered apps with an #htmx frontend could look like, using a React-like, async, type-checked rendering engine.
The app *does not* use Jinja/Chameleon, or any similar templating engine, ugly custom syntax in #HTML -like files, etc.
Interestingly, even #ai coding assistants can pick up the patterns and offer decent completions.
You can check out the project here: https://github.com/volfpeter/lipsum-chat
https://kitfucoda.medium.com/writing-a-telegram-bot-in-python-866972ab63f5
I've just finished writing up a deep dive into building a Telegram bot with a FastAPI web application, and it was quite the journey into asynchronous Python!
The project started with a desire to run chatbots across multiple platforms, but quickly evolved into a focused exploration of asyncio. I found myself wrestling with event loops, queues, and the nuances of asyncio.create_task vs. asyncio.to_thread. It became very clear that understanding the difference between concurrency and parallelism is absolutely crucial in this space. Clever scheduling can mitigate blocking, but over-scheduling will inevitably lead to performance issues.
Architectural considerations became a major focus. I learned firsthand that cramming everything into a single process, while tempting, isn't always the best approach. Separating processes for scalability and future enhancements is something I'll definitely keep in mind for future projects.
This project was a great learning experience, and I'm looking forward to applying these lessons to future projects. If you're interested in asyncio, webhooks, or building chatbots, I'd love to hear your thoughts!
#python #asyncio #telegrambot #fastapi #webdevelopment #programming #opentowork #fedihire
Take me back to ASP.NET please.
Fun #Python #FastAPI problem today.
I was writing my own error catching middleware to force errors into a specific format.
It seems that returning a 204 - no content status from my API raises a HTTPException. This got caught in the error catcher and caused problems when suddenly some JSON content was generated.
Locating this problem was quite challenging.
After adding special "no content" handling, that problem went away.
If you write your own error handler, consider this case!
Finally had time to add examples to the htmy docs on how to use plain #html snippets and dynamically replace their slots with components. It's easier than understanding the previous sentence
Works with #htmx by design. You can check out the example here: https://volfpeter.github.io/htmy/examples/snippet-slots-fastapi/
Ara sí que tinc dominat, a #appy, els possibles errors al seguir un usuari remot.
Mireu el missatge d'error en vermell que li envio a l'aplicació client Ivory quan això passa.
Brutal.
Afegint control d'errors en la creació de la base de dades de #appy. Quan instal·les el servidor appy, si hi ha un error en la creació d'una taula, un index, una seqüència o una funció, el codi et mostra on és l'error i surt al sistema.
New blog post is up!
How I handled tracking DHCP ranges in Rack Root, some things I ran into along the way, and how I improved my pytest output.
https://medium.com/@a.j.longchamps/rack-root-devlog-tracking-dhcp-ranges-c8272001fe3a
Pro #Python mám slabost co se týče web scrapingu a zpracování dat či jednorázových skriptů, nicméně co se týče webového vývoje, tak mám raději PHP, resp. Laravel. Až na jednu výjimku. Pro (REST) API mám nejraději Python framework #FastAPI viz https://fastapi.tiangolo.com
Which Is the Best Python Web Framework: Django, Flask, or FastAPI?
#Pycharm #Webdevelopment #Django #Fastapi #Flask #Python
https://blog.jetbrains.com/pycharm/2025/02/django-flask-fastapi/