description BlackSheep Overview
BlackSheep is a free and open-source web framework for Python that implements the ASGI standard. It provides facilities for routing HTTP requests, dependency injection, middleware, authentication, cookies, sessions, and generation of OpenAPI documentation for web APIs. Its asynchronous programming model is intended for developers building Python services and applications that need to handle concurrent network operations efficiently.
help BlackSheep FAQ
What does BlackSheep use ASGI for?
BlackSheep is an asynchronous Python web framework built for the ASGI standard. It supports HTTP applications, WebSockets, server-sent events, routing, middleware, and dependency injection. [BlackSheep project](https://github.com/Neoteroi/BlackSheep)
How do I run a BlackSheep app with Uvicorn?
Install the framework with pip install blacksheep and an ASGI server such as Uvicorn. If the application object is named app in server.py, the launch command is uvicorn server:app. [BlackSheep project](https://github.com/Neoteroi/BlackSheep)
Does BlackSheep generate OpenAPI documentation and support authentication?
Yes. BlackSheep documents OpenAPI support and built-in Basic, API key, and JWT Bearer authentication from version 2.4.2, along with OpenID Connect integration. [BlackSheep project](https://github.com/Neoteroi/BlackSheep)
How does BlackSheep differ from FastAPI?
Both are ASGI frameworks, but BlackSheep emphasizes its own dependency injection model, HTTP client, authentication policies, WebSockets, and server-sent events. FastAPI is built on Starlette and is centered on Python type annotations and OpenAPI-based API development. [ASGI implementations](https://asgi.readthedocs.io/en/stable/implementations.html)
explore Explore More
Similar to BlackSheep
ui.x_see_all arrow_forwardReviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.