starlette

The little ASGI framework that shines. 🌟 (by encode)

Starlette Alternatives

Similar projects and alternatives to starlette

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better starlette alternative or higher similarity.

Suggest an alternative to starlette

Reviews and mentions

Posts with mentions or reviews of starlette. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-12.
  • When performance becomes a thing, is switching from python to GO the ultimate solution for backend API dev ?
    3 projects | reddit.com/r/Python | 12 Nov 2021
    Some folks have mentioned fastapi, which is a good call. If you want to be more extreme about performance, under the covers, fastapi is a combination of starlette and pydantic plus various other goodies. You can build a pure starlette-based API if complete speed is of the essence and you want to stick with python.
  • I created VidGear that makes Video-Processing with Python as easy as can be
    4 projects | reddit.com/r/PythonProjects2 | 27 Oct 2021
    VidGear provides an easy-to-use, highly extensible, Multi-Threaded + Asyncio Framework on top of many state-of-the-art specialized libraries like OpenCV, FFmpeg, ZeroMQ, picamera, starlette, streamlink, pafy, pyscreenshot, aiortc and python-mss at its backend, and enable us to flexibly exploit their internal parameters and methods, while silently delivering robust error-handling and real-time performance.
  • Building a realtime ticket booking solution with Kafka, FastAPI, and Ably
    7 projects | dev.to | 12 Oct 2021
    FastAPI is built on top of two key libraries: Starlette and Pydantic. Starlette was developed by one of the creators of the Django REST framework in an attempt to simplify and speed up the process of building REST APIs in Python. Starlette is fast and asynchronous by design, giving FastAPI runtime speed, and a simple, extensible foundation.
  • Building a Converter Tool on Web
    8 projects | reddit.com/r/gis | 5 Sep 2021
    Or separate the front and back ends, with the back end providing an API that your front end consumes. I write and maintain data-heavy services and tend to write the front end in Angular and the back end in Starlette/FastAPI.
  • FastAPI + Ormar + Alembic setup
    7 projects | dev.to | 14 Aug 2021
    We used the FastAPI's(Starlette's) startup and shutdown events to create/close database connection. Actually, we are creating a connection pool. Whenever a database connection is created, it is added to the pool so that the connection can later use it for another request. Essentially removing the time taken to create a new connection.
  • Quick and dirty mock service with Starlette
    7 projects | dev.to | 7 Jun 2021
    Could I solve the problem with async programming? Async programming is much easier in recent versions of Python. The language now has built-in keywords like async and await that makes programming in that style friendlier. I've assessed a few async web frameworks, and I recalled a feature that I saw in the Starlette documentation: Background Tasks
  • Program gets stuck with tornado
    1 project | reddit.com/r/learnpython | 27 May 2021
    Look into Starlette - it's easier to use, faster and lighter than Tornado.
  • Flask 2.0.0 has been released
    4 projects | news.ycombinator.com | 12 May 2021
    Note that Flask is more analogous to Starlette, which FastAPI extends.

    https://www.starlette.io/

  • New major versions of Flask, Jinja, Click, and Werkzeug released!
    9 projects | reddit.com/r/Python | 11 May 2021
    Worth noting that I noticed a lot of online examples showing FastAPI serving Machine Learning models - (inherently cpu intensive, blocking), don't run any actual user code that's async inside the routes, so technically don't benefit from it compared to Flask. They are also often handled in sync routes def foo(): and not async routes async def foo(): which means they aren't even handled async from the get-go. In fact, internally, Starlette (and therefore by extension FastAPI) runs background tasks and non-async routes in ThreadPoolExecutor, see code here and here. It's important for those coming from DS/ML to recognize that for these use cases there's great benefit serving concurrent responses, maybe for result lookups of and db queries, but not so much with cpu-bound tasks. Being ASGI won't automatically make your app faster. And with computationally heavy tasks, just being concurrent won't make your app faster. For parallelism, (in python) multiple workers is a better strategy. Also, there's queues. More on serving computationally bound requests here
  • Vidgear: A High-Performance Video-Processing Framework for building complex real-time media applications in python
    8 projects | reddit.com/r/Python | 25 Apr 2021
    VidGear provides an easy-to-use, highly extensible, Multi-Threaded + Asyncio Framework on top of many state-of-the-art specialized libraries like OpenCV, FFmpeg, ZeroMQ, picamera, starlette, streamlink, pafy, pyscreenshot, aiortc and python-mss at its backend, and enable us to flexibly exploit their internal parameters and methods, while silently delivering robust error-handling and real-time performance.
  • Flask 2.0 is coming, please help us test
    13 projects | reddit.com/r/Python | 16 Apr 2021
    Check out Starlette. FastAPI is basically Starlette with the typechecking of Pydantic and such, so if you don't want typechecking then Starlette is great.
  • PEP 563, PEP 649 and the future of pydantic and FastAPI
    11 projects | news.ycombinator.com | 15 Apr 2021
    FastAPI is just a rip off of Starlette, it's obvious when you look at the code (https://github.com/tiangolo/fastapi/tree/master/fastapi). Hopefully this change will kill FastAPI and force people to use the original project that is Starlette (https://www.starlette.io/)

    As to why people used FastAPI instead of Starlette in the first place, it comes down to hype and great marketing.

  • starlette-jsonapi now with OpenAPI 3.x support
    3 projects | reddit.com/r/Python | 23 Mar 2021
    FastAPI (https://fastapi.tiangolo.com/) is a great framework that's also written on top of Starlette (https://www.starlette.io/) and offers an OpenAPI integration. However, FastAPI does not implement the jsonapi.org specification, so starlette-jsonapi tries to cover that niche.
  • Streaming video with FastAPI
    1 project | reddit.com/r/FastAPI | 17 Mar 2021
    The StreamingResponse doesn't seem to help in this particular case since it doesn't set any of the headers automatically https://github.com/encode/starlette/blob/master/starlette/responses.py#L184.
  • What library or framework is used to write microservices for production ?
    7 projects | reddit.com/r/golang | 14 Feb 2021
    I know this is Golang subreddit and I'm a huge Golang fan, but as someone that tries to be versed in all things technology have you looked at other Python based frameworks like https://fastapi.tiangolo.com/ or https://www.starlette.io/ before? These seem much more complete solutions than just Flask alone.

Stats

Basic starlette repo stats
17
6,268
8.1
2 days ago

encode/starlette is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote Python jobs at our new job board 99remotejobs.com. There are 9 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.