fastapi
Pyramid
Our great sponsors
fastapi | Pyramid | |
---|---|---|
465 | 17 | |
70,779 | 3,899 | |
- | 0.4% | |
9.8 | 8.7 | |
6 days ago | 14 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fastapi
-
FastAPI Got Me an OpenAPI Spec Really... Fast
That’s when I found FastAPI.
-
How to Deploy a Fast API Application to a Kubernetes Cluster using Podman and Minikube
FastAPI & Uvicorn
-
Analysing FastAPI Middleware Performance
Discussion at FastAPI GitHub: https://github.com/tiangolo/fastapi/issues/2696
-
LangChain, Python, and Heroku
An API application framework (such as FastAPI)
-
Litestar – powerful, flexible, and highly performant Python ASGI framework
It’s been my experience that async Python frameworks tend to turn IO bound problems into CPU bound problems with a high enough request rate, because due to their nature they act as unbounded queues.
This ends up made worse if you’re using sync routes.
If you’re constrained on a resource such as a database connection pool, your framework will continue to pull http requests off the wire that a sane client will cancel and retry due to timeouts because it takes too long to get a connection out of the pool. Since there isn’t a straightforward way to cancel the execution of a route handler in every Python http framework I’ve seen exhibit this problem, the problem quickly snowballs.
This is an issue with fastapi, too- https://github.com/tiangolo/fastapi/issues/5759
-
AI-Powered Image Search with CLIP, pgvector, and Fast API
Fast API.
- Ask HN: What is your go-to stack for the web?
-
Fun with Avatars: Crafting the core engine | Part. 1
We will create our API using FastAPI, a modern high-performance web framework for building fast APIs with Python. It is designed to be easy to use, efficient, and highly scalable. Some key features of FastAPI include:
-
Building Fast APIs with FastAPI: A Comprehensive Guide
FastAPI is a modern, fast, web framework for building APIs with Python 3.7+ based on standard Python type hints. It is designed to be easy to use, fast to run, and secure. In this blog post, we’ll explore the key features of FastAPI and walk through the process of creating a simple API using this powerful framework.
-
Effortless API Documentation: Accelerating Development with FastAPI, Swagger, and ReDoc
FastAPI is a modern, fast web framework for building APIs with Python 3.7+ that automatically generates OpenAPI and JSON Schema documentation. While FastAPI simplifies API development, manually creating and updating API documentation can still be a time-consuming task. In this blog post, we’ll explore how to leverage FastAPI’s automatic documentation generation capabilities, specifically focusing on Swagger and ReDoc, and how to streamline the process of documenting your APIs.
Pyramid
-
Ask HN: Do you need a web framework for a startup landing page?
You don't need a framework for a single page. That being said, using a framework is probably a good idea if you intend to be on a growth curve.
Pyramid is a framework written to scale from a small, single-file site to a site that has grown horizontally scaled across multiple servers. If I understand your needs correctly, Pyramid is probably worth a look, here's a link: https://trypyramid.com/
Pyramid is under active development, and it has a large, helpful, welcoming user community.
-
What's the most htmx-ish language for the server side?
Pyramid (https://trypyramid.com/) is nice in that it has URL dispatch predicates, like @view_config(header="HX-Target-Name=foo") which lets you have HTMX-specific view functions, which return only what is needed
- The Pyramid Web Framework
-
Which has a better Job opportunities? Flask or Django?
Another option my professional web friends like is Pyramid: https://trypyramid.com/ -- it's for professional-level websites/apps that can't use Django for some reason.
-
Installing Python3 in Linux
Building, constructing, and maintaining websites is a broad definition of web development. A front-end, which communicates with the client, and a back-end, which contains business logic and interacts with a database, are typical components of web development. Python also supports quite a percentage of the total websites, web apps and software running in the world wide web. The libraries that are applied in web development include: Django, Flask, Pyramid and Turbogears and Web2Py
-
The Best Python Web Frameworks🤩
Pyramid
-
Is the Pyramid framework dead?
I've been looking for an alternative to Flask and found Pyramid (https://github.com/Pylons/pyramid). API looks great, lots of good design, almost everything I'm looking for, but it looks like this project is near dead. Not much movement since release 2.0, last commit 15th March 2021 (https://github.com/Pylons/pyramid/graphs/contributors).
-
Ask HN: What are your favorite web libraries and frameworks?
i been messing with Laravel lately, and it's ass. and/or the entire modern stack is ass. i actually had this app built for me, and i asked the dev to try to strip out as much shit as possible, including, obviously, tailwind. dev did a good job, but it's still a disaster.
flask looks like a dream comparatively.
but. is there a middle ground?
i was a product manager-type on a (python) pylons pyramid project -- https://trypyramid.com/ -- "the start small, finish big, stay finished framework" -- the message sounds good.
seemed fine, but i wasn't a dev on it, and we still had plenty of moving parts for what was a relatively simple e-commerce cms (that, admittedly, had a lot of functionality).
what i really want is a straightjacket -- some framework that says, 'oh, you want to plug in a different templating engine? how about fuck you? will fuck you work for you?'
but i guess that doesn't earn many github stars.
if i had to pick one or recommend one with no other qualifiers, i'd pick sinatra. that way i could do it my way.
-
Programming language recommendations for a lightweight web service on a Raspberry Pi running Linux?
For Python, I would recommend Pyramid as a lightweight framework.
-
Can I use google cloud for free for non commercial purpose?
If your app is really small/short, you're only fetching crime data and rendering a static image, you can probably do it all with a Cloud Function. This way you don't even need to have nor learn about nor use full web frameworks like Flask, Django, Pyramid, etc. Just raw code plus an HTML template and perhaps a tiny bit of Flask/Jinja2 to render the template.
What are some alternatives?
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python
Flask - The Python micro framework for building web applications.
HS-Sanic - Async Python 3.6+ web server/framework | Build fast. Run fast. [Moved to: https://github.com/sanic-org/sanic]
CherryPy - CherryPy is a pythonic, object-oriented HTTP framework. https://cherrypy.dev
Tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
web2py - Free and open source full-stack enterprise framework for agile development of secure database-driven web-based applications, written and programmable in Python.
django-ninja - 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
Graphene - GraphQL framework for Python
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
justpy - An object oriented high-level Python Web Framework that requires no frontend programming