FastAPI-MCP: Simplifying the Integration of FastAPI with AI Agents https://buff.ly/csGE6FK
"By aligning with MCP standards, the library helps make FastAPI applications accessible to AI tools that rely on structured, protocol-based interaction."
FastAPI-MCP: Simplifying the Integration of FastAPI with AI Agents https://buff.ly/csGE6FK
"By aligning with MCP standards, the library helps make FastAPI applications accessible to AI tools that rely on structured, protocol-based interaction."
Как я создал клон Pinterest с использованием Vue 3 и FastAPI
GitHub : Ссылка на репозиторий Live Preview : Посмотреть проект Привет, друзья! В этой статье я расскажу, как создал клон Pinterest с использованием современных технологий — Vue 3 для фронтенда и FastAPI для бэкенда. Это многофункциональное полнофункциональное приложение, практически полностью повторяющее Pinterest. Особенностью проекта является кеширование вкладок с помощью Vue Router и KeepAlive , что значительно улучшает пользовательский опыт. Этот проект стал отличной возможностью прокачать навыки в разработке production-уровня fullstack-приложений с поддержкой функционала в реальном времени .
Open vAIR: как мы делали платформу виртуализации и пришли к стандарту разработки
Вы наверняка это видели: заходишь в проект, открываешь код — и сразу понятно, что тут поработали разные команды, каждая со своими привычками. Где-то копипастное болото, где-то хаос, документация — если повезёт, в устной форме от сеньора. А теперь представьте другую картину: модули — по местам, код — читается, как хорошая книга, документация — в порядке, новичок — в процессе, а не в шоке. Это не фантазия, а Open vAIR. Начинали как просто продукт, но по ходу обкатали архитектурные подходы, которые теперь используем как стандарт. И да — выложили всё в open source. Зачем? Сейчас расскажем. А заодно — что с этим делать вам.
Ever get frustrated trying to quickly look up a word on #Wiktionary on your phone, wading through etymology first? I did too.
So I built Kwiktionary: a fast, mobile-friendly interface for Wiktionary that prioritizes definitions.
Try it out: https://kwiktionary.vercel.app/
It's #OpenSource (built with #NextJs & #FastApi)! Feedback welcome. Boosts appreciated!
Always a good day when you get to shut down an old backend service. It was finally time to move my old Flask based server to the heavenly hunting grounds. It's been fully superseded since quite a while by a FastAPI based one. No clients really used the old one anymore so shutting it down was a pretty easy decision to make.
Un altre descobriment en aquest camí ha estat #Pydantic. Com podia viure programàticament parlant sense Pydantic?
Pydantic és una biblioteca de Python que serveix per validar i gestionar dades amb tipus. Et permet definir models (com classes) on s’especifica el tipus de cada camp, i automàticament valida i converteix les dades rebudes. Integrat a la perfecció amb fastAPI.
Totes les aplicacions client per Android funcionen amb #appy i el mateix passa amb les de iOS. Aquesta és la clau, volia aprofitar totes les apps existents per tant l'API havia de ser una copia de la de Mastodon però feta amb fastAPI, que ha resultat una tria excel·lent. fastAPI és brutal, fa tot i més i molt bé. I, a més, et genera automàticament la documentació sense ni preocupar-te per ella. Insisteixo, brutal.
L'estructura tècnica d'#appy funciona gràcies a Python, fastAPI, #Postgresql (base de dades) i #Redis (memòria cau).
Tot de manera asincrona per evitar punts de bloqueig, passen moltes coses en parall·lel, simultàniament, bàsic per a tenir fluïdesa tant en les interaccions amb altres servidors com amb les aplicacions client.
appy funciona bé fins i tot en una #Raspberry 4B, per tant també és una opció vàlida per a tenir el perfil fediversal auto gestionat i a casa.
Quan vaig posar en marxa mastodont.cat no en sabia res de Python i ActivityPub no existia (Mastodon funcionava a les hores amb el protocol Ostatus de GNU Social).
Qui podria pensar que acabaria programant el meu propi servidor? sí, estic content d'haver-ho aconseguit i de compartir el resultat amb la comunitat de programari lliure a https://codeberg.org/spla/appy
Queda feina encara però sí, ja ho considero un èxit
Queden algorismes per polir, afegir funcionalitats com ara bloquejar o silenciar usuaris i servidors i depurar incidències però ja considero que #appy és un èxit.
Des de juny de l'any passat he estat (i estic) molt centrat en desenvolupar el meu propi servidor ActivityPub des de zero, sense copiar res de ningú, per pur plaer personal de superar reptes. He après molt pel camí, no és gens fàcil però he gaudit molt de cada fita.
Va ser tot un encert triar #Python i #fastAPI, van sobrats.
Revolutionizing Search with Local LLMs: A Hands-On Guide
Explore how local Large Language Models (LLMs) can transform traditional search queries into structured data, allowing developers to implement powerful search functionalities in days instead of months...
https://news.lavx.hu/article/revolutionizing-search-with-local-llms-a-hands-on-guide
I discovered #FastAPI Users which handles everything auth related which would be awesome.
I am seriously thinking on giving it a serious look to change how #Endurain handles auth, however this seems like a daunting task to do and would probably slow down “cool” new features https://fastapi-users.github.io/fastapi-users/latest/
Part2: #dailyreport #fastapi #webdevelopment #web #html #cookies
else:
return sync_wrapper
In async_wrapper:
if asyncio.iscoroutine(result):
result = await result
return result
Authentification handled by cookies I use simple sessions
based on two salts generated at server side with
expiration date and generate session tokens as hesh with
username and salt I use hashing sha256 to generate
session tokens. passwords stored in JSON as bcrypt
hashes with help of passlib.
With AI, I added simple brutefore protection by IP.
蠡
Part1: #dailyreport #fastapi #webdevelopment #web #html #cookies
#webauthentification #authentification
I made small web site with authentification and simple
forms to allow boss and clients to control our server
with help of FastAPI and Jinja2 templates.
Page is just table <table> with rows that have <form>
with hidden field of id and buttons to save or delete,
add button with <form> at bottom.
pydantic used for forms verification.
All GET and POST functions wrapped with decorator that
catch exception and send notification to Telegram
messanger. It have async_wrapper and sync_wrapper.
if asyncio.iscoroutinefunction(func):
return async_wrapper
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
So, as it turns out, I have a new project in the works.
And it's not a new DBMS.
It's a data/publishing platform for journalists. Not quite a CMS, not quite an archival service. We're gathering requirements now, so I'll have a better description soon.
I am looking at #FastAPI for the backend w/#Astro for the frontend/client. I've never built anything like this before, so expect silliness forthwith.
Take me back to ASP.NET please.