Skip to content

Commit

Permalink
Fix: Import error in docs (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses authored Nov 2, 2023
1 parent b0e6c58 commit c149ae9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs_src/src/pages/documentation/plugins.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

## Plugins

Robyn is a versatile and extensible web framework that allows anyone to make plugins over the top of Robyn.
Plugins in Robyn allow you to enhance and customize the framework's functionality to suit your specific needs. Here are some noteworthy plugins that can supercharge your Robyn-based projects:

### Rate Limit Plugin

- Description: This plugin enables you to implement rate limiting for your Robyn application's routes. It helps prevent abuse, and brute-force attacks and ensures fair usage of your resources.
- GitHub repository: [robyn-rate-limits](https://github.com/IdoKendo/robyn_rate_limits)
- Installation:
`python -m pip install robyn-rate-limits`
`python -m pip install robyn-rate-limits`
- Usage:

```py
from robyn import Robyn
from robyn import Robyn, Request
from robyn_rate_limits import InMemoryStore
from robyn_rate_limits import RateLimiter

Expand All @@ -28,13 +29,13 @@ def h():

app.start(port=8080)
```

In this example, robyn-rate-limits is used to enforce a rate limit of 3 requests per 100-seconds window for specific routes. If a client exceeds this limit, they will receive a "Too many requests" message.

The plugin integrates seamlessly with the Robyn web framework, enhancing the security and stability of your application by preventing excessive requests from a single client.

## What's next?

After exploring the plugins, Batman wanted to explore the community.So, Robyn pointed him to
After exploring the plugins, Batman wanted to explore the community.So, Robyn pointed him to

- [Future Roadmap](/documentation/future-roadmap)

0 comments on commit c149ae9

Please sign in to comment.