{"id":18790081,"url":"https://github.com/enricobacis/limit","last_synced_at":"2025-04-13T14:07:11.511Z","repository":{"id":62576117,"uuid":"81741230","full_name":"enricobacis/limit","owner":"enricobacis","description":"python decorator that limits the calling rate of a function","archived":false,"fork":false,"pushed_at":"2017-02-14T16:15:41.000Z","size":245,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T05:04:28.394Z","etag":null,"topics":["decorator","python","rate-limit"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enricobacis.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T16:52:28.000Z","updated_at":"2025-01-06T08:43:48.000Z","dependencies_parsed_at":"2022-11-03T19:55:08.259Z","dependency_job_id":null,"html_url":"https://github.com/enricobacis/limit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricobacis%2Flimit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricobacis%2Flimit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricobacis%2Flimit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enricobacis%2Flimit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enricobacis","download_url":"https://codeload.github.com/enricobacis/limit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557846,"owners_count":21124168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decorator","python","rate-limit"],"created_at":"2024-11-07T21:09:50.634Z","updated_at":"2025-04-13T14:07:11.486Z","avatar_url":"https://github.com/enricobacis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"limit\n=====\n\n*python decorator that limits the calling rate of a function*\n\nDescription\n-----------\n\n.. image:: https://raw.githubusercontent.com/enricobacis/limit/master/.screenshot/limit.gif\n    :target: https://asciinema.org/a/4f621lbwvpgf91neshex89nrm\n    :align: center\n\nThis decorator limits the calling rate of the decorated function. This is\nuseful in conjuction with web API calls, where you often get banned if you\nperform more calls than the ones specified in the terms of services.\n\nThe rate is ``limit`` over ``every``, where limit is the number of invocation\nallowed every ``every`` seconds. ``limit(4, 60)`` creates a decorator that\nlimits the function calls to *4 per minute*. If not specified, ``every``\ndefaults to ``1`` second.\n\n.. code:: python\n\n    @limit(4, 60)\n    def function(...):\n        \"\"\"never invoke this function more than 4 times per minute.\"\"\"\n        ...\n\nInstallation\n------------\n\nThe package has been uploaded to `PyPI`_, so you can install it with pip:\n\n    pip install limit\n\n\n.. _PyPI: https://pypi.python.org/pypi/limit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricobacis%2Flimit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenricobacis%2Flimit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenricobacis%2Flimit/lists"}