GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - astagi/python-limit-requests: 🛑 Requests rate limiting using Python and Redis

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
ratelimit
ratelimit
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
main_gcra.py
main_gcra.py
 
 
main_tb.py
main_tb.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Rate limiting using Python and Redis

This repository contains a Python implementation of time-bucketed and GCRA algorithms to limit requests. For more info go to the article Rate limiting using Python and Redis

Setup

Configure Redis and make it running on the default port 6379. Then install Python dependencies

pip install redis

Run Time-bucketed

python main_tb.py

Run GCRA

python main_gcra.py

About

🛑 Requests rate limiting using Python and Redis

Resources

Readme
MIT license
Activity

Stars

27 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.