BlackSheep is an asynchronous Python web framework for building ASGI web applications and APIs.
It combines a clean decorator-based programming model with strong type hint support, and it takes inspiration from frameworks such as Flask and ASP.NET Core. The project also provides an official CLI for bootstrapping new applications, works with ASGI servers such as Uvicorn, Hypercorn, and Granian, and targets modern Python runtimes including CPython and PyPy.
This is free and open source software.
Key Features
- Supports routing with both function-based handlers and controller-style class methods.
- Provides automatic binding of route parameters, query string values, JSON bodies, dataclasses, and Pydantic models.
- Includes built-in dependency injection to help structure applications and manage services cleanly.
- Generates OpenAPI documentation automatically for common REST API scenarios.
- Offers authentication and authorization features including OpenID Connect, JWT bearer, API key, and basic authentication.
- Supports WebSocket, Server-Sent Events, middleware, static file serving, Jinja2 templating, CORS, and sessions.
- Includes an HTTP client with native HTTP/2 support.
- Provides a TestClient and anti-forgery protection to help with testing and security.
Website: github.com/Neoteroi/BlackSheep
Support:
Developer: Roberto Prevato
License: MIT License
BlackSheep is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Best Python Micro Frameworks | |
|---|---|
| Flask | Hugely popular microframework based on Werkzeug and Jinja2 |
| FastAPI | Web framework for building APIs |
| Starlette | Lightweight ASGI framework/toolkit |
| aiohttp | Asynchronous HTTP client/server for asyncio and Python |
| Sanic | Web server and web framework |
| Falcon | Build cloud APIs, smart proxies, and app backends |
| Quart | Web microframework based on Asyncio |
| Pyramid | Start small, finish big, stay finished framework |
| Bottle | Fast, simple and lightweight WSGI micro web framework |
| Chalice | Python Serverless Microframework for AWS |
| CherryPy | Mature, minimalist, Python object-oriented web framework |
| TurboGears | Hybrid framework acting as a Full Stack framework or Microframework |
| Quixote | Aimed at sites where complex programming is required |
| Klein | Micro-framework for developing production-ready web services with Python |
| circuits | Lightweight event driven application framework |
| Clastic | Functional web framework |
| Hug | Make developing Python driven APIs as simple as possible |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

