BlackSheep is an asynchronous web framework for building APIs and server-side web applications. It combines a decorator-based programming interface with type-aware request processing and application services inspired by established web development frameworks.
The framework provides an ASGI application model that can be used for JSON APIs, template-driven websites and services requiring asynchronous communication. Developers can organise endpoints into functions or controllers, while dependency injection manages shared application services.
BlackSheep includes HTTP client functionality as well as server-side capabilities. This allows applications to expose their own endpoints and communicate with external services using the same broader framework ecosystem.
This is free and open source software.
Key Features
- ASGI-compatible asynchronous HTTP request handling.
- Routing through decorators and class-based controllers.
- Automatic binding of route parameters, query values, JSON bodies and typed application models.
- Dependency injection for managing reusable services and request-specific dependencies.
- Automatic OpenAPI specification generation and interactive API documentation.
- Authentication and authorisation using JWT, OpenID Connect, API keys and HTTP authentication schemes.
- Middleware components with configurable processing order.
- WebSocket and Server-Sent Events support.
- HTTP client supporting HTTP/2 with fallback to HTTP/1.1.
- Jinja2 template integration for server-rendered HTML pages.
- Static file serving and streaming response support.
- Multipart form processing with memory-efficient file upload handling.
- Sessions, CORS controls and anti-forgery protection.
- Configurable exception handling and application lifecycle events.
- Testing utilities for application routes and HTTP client behaviour.
- Cross-platform support – runs on Linux, macOS, and Windows.
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 |
| MicroPie | Ultra-micro ASGI Python web framework |
| Litestar | Powerful, lightweight, and flexible ASGI framework |
| BlackSheep | Asynchronous Python web framework |
| Robyn | Python web framework designed for high performance |
| Microdot | Small web framework for Python and MicroPython |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.