{"id":17283300,"url":"https://github.com/sjjian/flask-limit","last_synced_at":"2026-04-13T08:31:41.556Z","repository":{"id":112628589,"uuid":"104493211","full_name":"sjjian/flask-limit","owner":"sjjian","description":"flask limit redis","archived":false,"fork":false,"pushed_at":"2017-09-22T16:26:17.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T07:47:58.782Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjjian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-22T16:01:20.000Z","updated_at":"2017-11-06T08:08:07.000Z","dependencies_parsed_at":"2023-06-10T02:30:38.880Z","dependency_job_id":null,"html_url":"https://github.com/sjjian/flask-limit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sjjian/flask-limit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Fflask-limit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Fflask-limit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Fflask-limit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Fflask-limit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjjian","download_url":"https://codeload.github.com/sjjian/flask-limit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Fflask-limit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flask"],"created_at":"2024-10-15T09:50:58.684Z","updated_at":"2026-04-13T08:31:41.540Z","avatar_url":"https://github.com/sjjian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## example\r\n```python\r\nfrom flask import session, jsonify\r\nfrom limit import LimiterRedis\r\nfrom redis import Redis\r\n\r\nredis = Redis.from_url(url=\"redis://localhost:6379/0\")\r\nlimiter = LimiterRedis(redis, \"test\")\r\n\r\ndef get_cookie():\r\n  return session.get(\"your_cookie_type\")\r\n\r\ndef callback():\r\n  return jsonify(\"message\"=\"request drop\")\r\n\r\n\r\n@app.route('/', methods=['GET', 'POST'])\r\n@limiter.limit(get_cookie, \"3/10\", callback)\r\ndef hello_world(anything=None):\r\n  return jsonify(\"message\"=\"request success\")\r\n  \r\n  \r\n  \r\n```\r\n## use\r\n- \"3/10\" =\u003e\"3 count per 60 second\"\r\n- you can rewrite function create_count, get_count, incr_count by Inheritance LimiterMiXin, limit.py provide a redis classic.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjjian%2Fflask-limit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjjian%2Fflask-limit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjjian%2Fflask-limit/lists"}