fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

11K
active users

#fastapi

5 posts5 participants0 posts today
Riverfount :python_logo:<p>Primeiro Keynote confirmado para a <a href="https://bolha.us/tags/PythonBrasil2025" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PythonBrasil2025</span></a> <span class="h-card" translate="no"><a href="https://fosstodon.org/@tiangolo" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>tiangolo</span></a></span> criador do <a href="https://bolha.us/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> <a href="https://bolha.us/tags/Typer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Typer</span></a> e <a href="https://bolha.us/tags/SQLModel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLModel</span></a> dentre outras ferramentas. Essa Python Brasil, como todas as outras, está imperdível.</p>
Habr<p>Микросервисы на пальцах: API‑Gateway, API‑Composition, KrakenD, FastAPI</p><p>Количество современных приложений, построенных на микросервисной архитектуре, очень велико. А сами микросервисы стали уже больше обыденностью, чем какой-то редкостью. В этом материале рассмотрим API-Gateway, BFF и композицию API — три базовых шаблона, которые можно встретить почти в каждой системе с микросервисами. Наша задача — понять, для чего они нужны, какие проблемы решают и создают. Пройдемся по теории и развернем реальный пример</p><p><a href="https://habr.com/ru/companies/selectel/articles/881022/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/selectel</span><span class="invisible">/articles/881022/</span></a></p><p><a href="https://zhub.link/tags/selectel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>selectel</span></a> <a href="https://zhub.link/tags/API" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>API</span></a> <a href="https://zhub.link/tags/%D0%BC%D0%B8%D0%BA%D1%80%D0%BE%D1%81%D0%B5%D1%80%D0%B2%D0%B8%D1%81%D1%8B" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>микросервисы</span></a> <a href="https://zhub.link/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> <a href="https://zhub.link/tags/API_gateway" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>API_gateway</span></a> <a href="https://zhub.link/tags/KrakenD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>KrakenD</span></a> <a href="https://zhub.link/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://zhub.link/tags/Docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Docker</span></a></p>
Riverfount :python_logo:<p>hahahah o cara defende o Node para desenvolvimento WEB dizendo que Python não é bom para isso ... e eu, um desenvolvedor WEB que usa Python seja com Django, Flask, FastAPI hahaha sorte dele que é aual gravada, pq se fosse presencial eu já tinha dois motivos para muito discussão ahahahahahah</p><p><a href="https://bolha.us/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://bolha.us/tags/Web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Web</span></a> <a href="https://bolha.us/tags/Flask" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Flask</span></a> <a href="https://bolha.us/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> <a href="https://bolha.us/tags/fastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastAPI</span></a></p>
Talk to Me About Tech<p>This is a fantastic open source book bundle featuring a variety of books from <span class="h-card" translate="no"><a href="https://techhub.social/@OReillyMedia" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>OReillyMedia</span></a></span> that cover <a href="https://hachyderm.io/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>, <a href="https://hachyderm.io/tags/GitHub" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GitHub</span></a>, <a href="https://hachyderm.io/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a>, <a href="https://hachyderm.io/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a>, <a href="https://hachyderm.io/tags/Kubernetes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Kubernetes</span></a>, <a href="https://hachyderm.io/tags/Docker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Docker</span></a>, <a href="https://hachyderm.io/tags/DevSecOps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevSecOps</span></a>, <a href="https://hachyderm.io/tags/Networks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Networks</span></a>, <a href="https://hachyderm.io/tags/Terraform" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Terraform</span></a>, <a href="https://hachyderm.io/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a>, and <a href="https://hachyderm.io/tags/Terraform" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Terraform</span></a>. </p><p>&gt; Get the resources you need to go from a novice coder and to a seasoned pro with a budding career—and help support Code For America! <a href="https://www.humblebundle.com/books/linux-from-beginner-to-professional-oreilly-books" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">humblebundle.com/books/linux-f</span><span class="invisible">rom-beginner-to-professional-oreilly-books</span></a> </p><p><a href="https://hachyderm.io/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a> <a href="https://hachyderm.io/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://hachyderm.io/tags/oss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oss</span></a> <a href="https://hachyderm.io/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a> <a href="https://hachyderm.io/tags/technology" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>technology</span></a> <a href="https://hachyderm.io/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://hachyderm.io/tags/learntocode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>learntocode</span></a> <a href="https://hachyderm.io/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://hachyderm.io/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p>
Aaron Longchamps<p>Turns out, updating the front end of Rack Root was way faster than the backend, this time around.</p><p>Tonight, I fixed the API calls for the network details page and also added summary counts for IPAM utilization. I decided I was most interested in how many IPs were available and how many were allocated to DHCP.</p><p>I'm not sure if Vuetify has a visualization I can use for this, but the closest thing to what I'm looking for is a horizontal bar with different segments for each type, sized to the percentages of each kind of IP status. If I have 50 DHCP IPs on a /24 network, then roughly 20% of the bar should be colorized to reflect that.</p><p>After that, I'm not sure if I'll tackle the DHCP side yet or start capturing details on associated NICs from a device. Either way, that's a whole bunch more relationships to plan out in the database. And now that I have a working example of foreign key relationships, it should be easier.</p><p><a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://infosec.exchange/tags/frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>frontend</span></a> <a href="https://infosec.exchange/tags/backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backend</span></a> <a href="https://infosec.exchange/tags/vuetify" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vuetify</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a></p>
dade<p>Is there an anymail-like package that isn't django specific? Just a whole bunch of ESPs wrapped up into a uniform interface that I can drop into a flask or fastapi app? <a href="https://crime.st/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://crime.st/tags/flask" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flask</span></a> <a href="https://crime.st/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://crime.st/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://crime.st/tags/email" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>email</span></a></p>
Aaron Longchamps<p>Tonight's dev log update for Rack Root</p><p>I finally finished my refactor from sqlalchemy with sqlite over to SQLModel with PostgreSQL and refactored much of my code. I had a mixture of snake_cake and camelCase which has since been fixed to be all camelCase.</p><p>I adjusted many of my imports, classes, database tables, database foreign key relationships, and testing to fit the new design. I also had to adjust some of my tests because my IDs were off by one.</p><p>This database focused refactor also gave me all the structure and space I needed to build out the basic IPAM features. When a new network is added, all the associated IP records are created, and marked as 'Available'. If a gateway is set, that gets changed to 'Gateway' and when I implement DHCP ranges, that will be set to 'DHCP'.</p><p>I still have some things to do such as make sure the IP records cascade delete when a network is deleted, and fun stuff like that.</p><p>Now that the backend is (re)designed, I can get back to the front end side of things.</p><p>If you're curious to check out my code for this refactor, it's all up on my GitHub here: </p><p><a href="https://github.com/alongchamps/rack-root/commit/0fc99dfcf10bf3ab6a5dfdc348894fe7e6221acd" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/alongchamps/rack-ro</span><span class="invisible">ot/commit/0fc99dfcf10bf3ab6a5dfdc348894fe7e6221acd</span></a></p><p><a href="https://infosec.exchange/tags/devlog" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>devlog</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a> <a href="https://infosec.exchange/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/sqlmodel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlmodel</span></a> <a href="https://infosec.exchange/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a> <a href="https://infosec.exchange/tags/refactor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>refactor</span></a> <a href="https://infosec.exchange/tags/postgresql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>postgresql</span></a> <a href="https://infosec.exchange/tags/backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backend</span></a></p>
Linh Pham<p>Ooh, FastAPI now officially supports Python 3.13 with version 0.115.8!</p><p><a href="https://fastapi.tiangolo.com/release-notes/#internal" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fastapi.tiangolo.com/release-n</span><span class="invisible">otes/#internal</span></a></p><p><a href="https://linh.social/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> <a href="https://linh.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a></p>
Open Source JobHub<p>Featured Job from <span class="h-card" translate="no"><a href="https://fosstodon.org/@fosdem" class="u-url mention">@<span>fosdem</span></a></span>: <span class="h-card" translate="no"><a href="https://floss.social/@collabora" class="u-url mention">@<span>collabora</span></a></span> is currently looking for a very technically capable, enthusiastic, and passionate Continuous Integration (CI) &amp; Testing Developer to join its ever-growing engineering team. Learn more and apply now on <a href="https://fosstodon.org/tags/OSJH" class="mention hashtag" rel="tag">#<span>OSJH</span></a><br /><a href="https://opensourcejobhub.com/job/22015/ci-testing-infrastructure-developer-remote-anywhere/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">opensourcejobhub.com/job/22015</span><span class="invisible">/ci-testing-infrastructure-developer-remote-anywhere/</span></a><br /><a href="https://fosstodon.org/tags/Collabora" class="mention hashtag" rel="tag">#<span>Collabora</span></a> <a href="https://fosstodon.org/tags/developer" class="mention hashtag" rel="tag">#<span>developer</span></a> <a href="https://fosstodon.org/tags/testing" class="mention hashtag" rel="tag">#<span>testing</span></a> <a href="https://fosstodon.org/tags/automation" class="mention hashtag" rel="tag">#<span>automation</span></a> <a href="https://fosstodon.org/tags/GitLab" class="mention hashtag" rel="tag">#<span>GitLab</span></a> <a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="tag">#<span>Python</span></a> <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="tag">#<span>Django</span></a> <a href="https://fosstodon.org/tags/Flask" class="mention hashtag" rel="tag">#<span>Flask</span></a> <a href="https://fosstodon.org/tags/FastAPI" class="mention hashtag" rel="tag">#<span>FastAPI</span></a></p>
Tom Leverstone<p>We had a Python service using FastAPI and OpenAI that was fast in development but slowed down a lot under load 🤔</p><p>We used load testing to find the bottleneck, then profilers and call graph visualization to understand the issue. My new blog post describes the debugging process, the tools and techniques we used, and how we ended up making the service twice as fast 🎉</p><p>Check it out if you're into Python performance and debugging.</p><p><a href="https://leverstone.me/blog/performance-profiling-in-python-tools-techniques-and-an-unexpected-culprit" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">leverstone.me/blog/performance</span><span class="invisible">-profiling-in-python-tools-techniques-and-an-unexpected-culprit</span></a></p><p><a href="https://mastodon.online/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.online/tags/debugging" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>debugging</span></a> <a href="https://mastodon.online/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://mastodon.online/tags/openai" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openai</span></a></p>
Linh Pham<p>I guess there isn't an easy way of implementing RFC 2324 with FastAPI?</p><p>Adding a limited implementation to a Flask web application was pretty darn easy 😅 </p><p><a href="https://github.com/questionlp/stats.wwdt.me/blob/main/app/main/routes.py" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/questionlp/stats.ww</span><span class="invisible">dt.me/blob/main/app/main/routes.py</span></a></p><p><a href="https://linh.social/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> <a href="https://linh.social/tags/Flask" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Flask</span></a> <a href="https://linh.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://linh.social/tags/RFC2324" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RFC2324</span></a></p>
Aaron Longchamps<p>As I'm working on the IPAM table, I now know that I need to remove the gateway field off the subnet class. I don't need to track it there (and I shouldn't) if I already have that data in the IPAM table.</p><p>There's a concept in programming called DRY - don't repeat yourself - and I'm applying that here.</p><p><a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a></p>
Aaron Longchamps<p>I learned something about using Python today, and this might influence how I write other parts of my code. I'm also open to ideas on the best way to go about this.</p><p>I'm now most of the way through a refactor where I'm switching to Postgres for my database and also using SQLModel over SQLAlchemy. I have all my classes written/rewritten and was running into an issue on the IPAM side of things when creating a new network. See if you can spot the bug as I write it out here.</p><p>Each API call in FastAPI will map to one function, with each class having their functions in their own file, for the sake of modularity/organization. I have a subnet.py file and ipRecords.py for those respective classes.</p><p>When a new subnet is created, I make the subnet in the database and then populate all of the IP addresses in the IpAddress table before returning to the FastAPI call. This means that one function call is chained to another one. Specifically subnet.createSubnet calls Iprecords.createIpRecord.</p><p>Both functions have a Session object coming in like this. Note that Depends comes from SQLModel and getDb() returns a database session, via yield.</p><p>myFunction( input1: int, input2, str, db: Session = Depends(getDb))</p><p>This means that when a new subnet is added, and then we call iprecords.createIpRecord, that doesn't get the proper result for getDb and we can't talk to the database.</p><p>My fix was to pass the db from one function to another so I can keep using it, and not pull it in via getDb on the inner function call.</p><p>Now that I'm through that mess, I can carry on with the rest of my refactor and get back to the main branch.</p><p><a href="https://infosec.exchange/tags/pebkac" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pebkac</span></a> <a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://infosec.exchange/tags/ipam" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ipam</span></a> <a href="https://infosec.exchange/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a> <a href="https://infosec.exchange/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://infosec.exchange/tags/sqlmodel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlmodel</span></a></p>
Habr<p>Как правильно делать тестовые задания на Python (flask, fastapi)</p><p>В этой статье я делюсь опытом, накопленным за годы помощи начинающим программистам. Вы узнаете, как грамотно организовать структуру проекта, избежать типичных ошибок (например, Query N+1), подготовить своё решение так, чтобы оно выглядело профессионально. Дам советы, как не только выполнить задание, но и превзойти ожидания работодателя. Эта статья будет полезна не только начинающим разработчикам, но и всем, кто хочет выделиться на фоне конкурентов и повысить свои шансы на успех. Применяйте советы, готовьтесь заранее, и пусть ваше тестовое задание станет тем самым пропуском к работе мечты!</p><p><a href="https://habr.com/ru/articles/877180/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/877180/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%BE%D0%B5_%D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>тестовое_задание</span></a> <a href="https://zhub.link/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://zhub.link/tags/junior" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>junior</span></a> <a href="https://zhub.link/tags/%D1%81%D0%BE%D0%B1%D0%B5%D1%81%D0%B5%D0%B4%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>собеседование</span></a> <a href="https://zhub.link/tags/flask" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flask</span></a> <a href="https://zhub.link/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://zhub.link/tags/%D0%B2%D0%BE%D0%B9%D1%82%D0%B8_%D0%B2_it" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>войти_в_it</span></a> <a href="https://zhub.link/tags/%D0%B2%D0%BE%D0%B9%D1%82%D0%B8_%D0%B2_%D0%B0%D0%B9%D1%82%D0%B8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>войти_в_айти</span></a></p>
Aaron Longchamps<p>After setting up separate Postgres containers, my testing and development is in a really nice spot. I have all the fields working the way I want for DeviceType and Item, all the way to the front end interoperability. </p><p>Now I need to add the subnet and IP record definitions back to the project.</p><p>I also had to keep the FastAPI validator classes, instead of using the SQLModel definitions directly. I was hoping to simplify that (define classes in less places) but this is working, so I guess I’ll take it. I might research some more how to handle that in a better way, if possible.</p><p><a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a> <a href="https://infosec.exchange/tags/backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backend</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/postgresql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>postgresql</span></a> <a href="https://infosec.exchange/tags/sqlmodel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlmodel</span></a></p>
Camillo Visini<p><a href="https://mastodon.social/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> application and service structure for a more maintainable <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> codebase</p><p><a href="https://camillovisini.com/coding/abstracting-fastapi-services" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">camillovisini.com/coding/abstr</span><span class="invisible">acting-fastapi-services</span></a></p>
Tawanda :fedora:<p>Trying to set up cookie based auth with <a href="https://hachyderm.io/tags/react" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>react</span></a> and <a href="https://hachyderm.io/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> made me feel stupid.</p><p>I know everyone says don't roll your own auth, and I get it - it's so difficult to get everything right without exposing my users to the web's worst predators, but I can't help feeling crappy about not knowing how it works under the hood in a framework like <a href="https://hachyderm.io/tags/laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>laravel</span></a></p>
LavX News<p>Navigating the Python API Framework Landscape: A Developer's Guide</p><p>Choosing the right Python REST API framework can be a daunting task for developers, especially with the myriad of options available today. This article breaks down the key factors to consider and eval...</p><p><a href="https://news.lavx.hu/article/navigating-the-python-api-framework-landscape-a-developer-s-guide" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.lavx.hu/article/navigatin</span><span class="invisible">g-the-python-api-framework-landscape-a-developer-s-guide</span></a></p><p><a href="https://mastodon.cloud/tags/news" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>news</span></a> <a href="https://mastodon.cloud/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a> <a href="https://mastodon.cloud/tags/FastAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> <a href="https://mastodon.cloud/tags/DjangoREST" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DjangoREST</span></a> <a href="https://mastodon.cloud/tags/FlaskRESTX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FlaskRESTX</span></a></p>
Habr<p>[Перевод] Оцениваем скорость операций с путями в FastAPI</p><p>Если вы сейчас разрабатываете новое приложение на Python, высока вероятность, что при этом вы используете FastAPI. В FastAPI заложено множество отличных возможностей, благодаря которым с ним легко начинать работу. Но в FastAPI есть и немало нюансов, на понимание которых требуется время. Мне пришлось особенно попотеть с одним аспектом, а именно — как FastAPI управляет вызовами к маршрутам API через декорированные параметры пути . Давайте подробно об этом поговорим. Что происходит на веб-сервере Одним из важнейших компонентов любого веб-приложения (которое мы создаём) является веб-сервер , программа, слушающая входящие запросы, поступающие из сети. Затем она транслирует эти запросы в методы, которые, в свою очередь, вызываются на бэкенде. Чтобы лучше понимать, что здесь происходит под капотом, давайте сначала реализуем простой веб-сервер. Для этого воспользуемся модулем http.server , который входит в стандартную библиотеку Python . Нам требуется написать программу, которая слушает порт и принимает HTTP-запросы. А именно: принимает запрос, разбирает маршрут пути, а также разбирает любые данные, прикреплённые к HTTP-вызову. См. также “ All I want is to cURL and parse a JSON object ”.</p><p><a href="https://habr.com/ru/companies/piter/articles/876378/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/piter/ar</span><span class="invisible">ticles/876378/</span></a></p><p><a href="https://zhub.link/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a></p>
andros<p>Benchmark entre <a href="https://activity.andros.dev/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FastAPI</span></a> y <a href="https://activity.andros.dev/tags/flask" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Flask</span></a>:<br><br>1. Rendimiento General (Requests por segundo):<br>- FastAPI: Manejó 734.57 req/sec.<br>- Flask: Manejó 1523.92 req/sec.<br>- Ganador: Flask (más del doble de solicitudes por segundo).<br><br>2. Tiempo por Request (Tiempo promedio por solicitud):<br>- FastAPI: 68.067 ms por request (mean).<br>- Flask: 32.810 ms por request (mean).<br>- Ganador: Flask (más rápido por solicitud).<br><br>3. Transferencia de Datos:<br>- FastAPI: Transferencia de 161.41 KB/s.<br>- Flask: Transferencia de 510.45 KB/s.<br>- Ganador: Flask.<br><br>4. Latencia (Por request servido):<br>- En general, Flask tuvo mejores tiempos en los percentiles:<br>- FastAPI: 95% de las solicitudes dentro de 91 ms.<br>- Flask: 95% de las solicitudes dentro de 97 ms, aunque las más lentas estuvieron por debajo (133 ms en total).<br>- Ganador: Depende del contexto, pero Flask tuvo una mayor consistencia en tiempos.<br><br>Conclusión:<br><br>- Flask superó a FastAPI en este benchmark simple con latencias más rápidas y mayor capacidad de requests por segundo.<br>- FastAPI, aunque más lento en este test, sigue siendo una opción excelente para APIs más complejas, ya que proporciona validación automática de datos y soporte nativo para async, lo que puede mejorar en escenarios más concurrentes.<br><br><a href="https://activity.andros.dev/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>