# sparckles/robyn

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/sparckles-robyn).**

7,259 stars · 332 forks · Python · BSD-2-Clause

## Links

- GitHub: https://github.com/sparckles/Robyn
- Homepage: https://robyn.tech/
- awesome-repositories: https://awesome-repositories.com/repository/sparckles-robyn.md

## Topics

`async` `backend` `hacktoberfest` `http-server` `python` `python3` `rust` `web`

## Description

Robyn is a high-performance asynchronous web framework and server for Python that utilizes a Rust-powered runtime to execute code. It functions as an asynchronous Python web server designed to handle many concurrent requests efficiently through a multithreaded execution model.

The project includes specialized capabilities for AI agent request routing, managing communication between agents and external tools. It also serves as a WebSocket communication server, maintaining persistent bidirectional channels for real-time data exchange.

The framework covers a broad range of web infrastructure, including dynamic URL mapping, middleware execution pipelines, and the ability to stream response data. It provides tools for the development lifecycle such as automatic code reloading and the generation of machine-readable API specifications. Additional utility is provided through static file serving and the application of cross-origin resource sharing policies.

## Tags

### Programming Languages & Runtimes

- [Rust Network Frameworks](https://awesome-repositories.com/f/programming-languages-runtimes/rust-network-frameworks.md) — Utilizes a high-performance Rust-based runtime to execute the underlying server engine for Python.

### Web Development

- [Web Servers](https://awesome-repositories.com/f/web-development/web-servers.md) — Functions as a high-performance multithreaded server for handling concurrent asynchronous web requests.
- [Middleware Pipelines](https://awesome-repositories.com/f/web-development/backend-development/middleware-pipelines.md) — Implements a sequential chain of modular interceptors to process and modify incoming HTTP requests.
- [Python Web Frameworks](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/language-specific-ecosystems/python-web-frameworks.md) — Provides a high-performance asynchronous web framework for Python powered by a Rust runtime.
- [High-Performance Web Services](https://awesome-repositories.com/f/web-development/high-performance-web-services.md) — Optimized for high-throughput, low-latency web services using a multithreaded Rust runtime. ([source](https://github.com/sparckles/robyn#readme))
- [Real-Time Communication](https://awesome-repositories.com/f/web-development/real-time-communication.md) — Implements persistent, bidirectional WebSocket connections and response streaming for real-time client updates.
- [Request Interception Middleware](https://awesome-repositories.com/f/web-development/request-interception-middleware.md) — Provides pipeline handlers for intercepting, validating, and modifying network traffic before it reaches the handler. ([source](https://github.com/sparckles/robyn#readme))
- [RESTful APIs](https://awesome-repositories.com/f/web-development/restful-apis.md) — Provides a structured foundation for RESTful APIs including dynamic URL mapping and middleware hooks.
- [Pattern-Based Route Mapping](https://awesome-repositories.com/f/web-development/web-infrastructure-deployment/web-infrastructure-servers/http-frameworks/http-route-handlers/pattern-based-route-mapping.md) — Maps URL patterns to Python callables using flexible, hierarchical routing rules.
- [API Specification Generation](https://awesome-repositories.com/f/web-development/api-specification-generation.md) — Automatically generates machine-readable API specifications based on the defined server routes.
- [Response Streaming](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-response-handling/response-streaming.md) — Implements incremental delivery of HTTP response bodies to reduce perceived loading latency. ([source](https://github.com/sparckles/robyn#readme))
- [OpenAPI Specification Generators](https://awesome-repositories.com/f/web-development/restful-apis/documentation-schemas/openapi-specification-generators.md) — Automatically derives OpenAPI specifications from defined routes to generate machine-readable API documentation. ([source](https://github.com/sparckles/robyn#readme))

### Networking & Communication

- [WebSocket Clients and Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-clients-and-servers.md) — Provides a server implementation for persistent, bidirectional WebSocket communication.
- [WebSocket Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-servers.md) — Maintains persistent bidirectional communication channels between the client and server for real-time data exchange. ([source](https://github.com/sparckles/robyn#readme))
- [WebSocket Servers](https://awesome-repositories.com/f/networking-communication/websocket-servers.md) — Maintains persistent bidirectional communication channels for real-time data exchange via WebSockets.

### Software Engineering & Architecture

- [Multi-Threaded Request Handling](https://awesome-repositories.com/f/software-engineering-architecture/high-throughput-task-processing/network-request-processing/multi-threaded-request-handling.md) — Distributes network traffic across multiple operating system threads to process concurrent requests in parallel.
- [Asyncio Coroutine Execution](https://awesome-repositories.com/f/software-engineering-architecture/task-execution-engines/asyncio-coroutine-execution.md) — Bridges the Rust runtime with Python's asyncio event loops for non-blocking request handling.

### Artificial Intelligence & ML

- [Agent Routing Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-orchestration-multi-agent/coordination-and-routing/agent-routing-frameworks.md) — Routes incoming requests to specific AI agents to coordinate communication with external tools. ([source](https://github.com/sparckles/robyn#readme))
- [AI Agent Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-servers.md) — Acts as a server that routes and executes requests for AI agents and external tool communication.
- [Agent Tool Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-request-routing/agent-tool-orchestrators.md) — Routes incoming requests to AI agents and manages their communication with external tools.

### Development Tools & Productivity

- [Hot Code Reloading](https://awesome-repositories.com/f/development-tools-productivity/hot-code-reloading.md) — Updates application logic in the running environment instantly when source code changes. ([source](https://github.com/sparckles/robyn#readme))
- [Rapid Development Tools](https://awesome-repositories.com/f/development-tools-productivity/rapid-development-tools.md) — Provides automatic code reloading and API specification generation to accelerate the development iteration cycle.

### System Administration & Monitoring

- [Filesystem Change Monitors](https://awesome-repositories.com/f/system-administration-monitoring/filesystem-change-monitors.md) — Monitors filesystem changes to automatically restart the server during development.

### Part of an Awesome List

- [Web Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/web-frameworks.md) — A high-performance async Python web framework with a Rust runtime.
