djangorestframework-ratelimit


Namedjangorestframework-ratelimit JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryCache-based rate-limiting for Django and Django REST Framework
upload_time2024-06-02 23:12:47
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseCopyright (c) 2022, James Socol Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords django rest framework ratelimit rate limit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Django REST Framework Ratelimit

Django REST Framework Ratelimit is a fork of [Django Ratelimit](https://github.com/jsocol/django-ratelimit) that adds support for rate limiting on Django REST Framework's `Request.data`

## Usage

Refer to the [Django Ratelimit v4.1.0 documentation](https://django-ratelimit.readthedocs.io/en/v4.1.0/).

This fork simply adds support for the extra [ratelimit key](https://django-ratelimit.readthedocs.io/en/v4.1.0/keys.html) `data`. Example:

```py
from django_ratelimit.decorators import ratelimit

ratelimit(key="data:username", rate="5/m", method="POST")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "djangorestframework-ratelimit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Ronan Boiteau <ronan@boiteau.eu>",
    "keywords": "django, rest, framework, ratelimit, rate, limit",
    "author": null,
    "author_email": "James Socol <me@jamessocol.com>, Ronan Boiteau <ronan@boiteau.eu>",
    "download_url": "https://files.pythonhosted.org/packages/b6/8d/e6ab3a12554df38fa731333a55d4086bf4c4817a7378013b2f2da518964b/djangorestframework_ratelimit-1.0.0.tar.gz",
    "platform": null,
    "description": "# Django REST Framework Ratelimit\n\nDjango REST Framework Ratelimit is a fork of [Django Ratelimit](https://github.com/jsocol/django-ratelimit) that adds support for rate limiting on Django REST Framework's `Request.data`\n\n## Usage\n\nRefer to the [Django Ratelimit v4.1.0 documentation](https://django-ratelimit.readthedocs.io/en/v4.1.0/).\n\nThis fork simply adds support for the extra [ratelimit key](https://django-ratelimit.readthedocs.io/en/v4.1.0/keys.html) `data`. Example:\n\n```py\nfrom django_ratelimit.decorators import ratelimit\n\nratelimit(key=\"data:username\", rate=\"5/m\", method=\"POST\")\n```\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2022, James Socol  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ",
    "summary": "Cache-based rate-limiting for Django and Django REST Framework",
    "version": "1.0.0",
    "project_urls": {
        "Changelog": "https://github.com/ronanboiteau/djangorestframework-ratelimit/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/ronanboiteau/djangorestframework-ratelimit/blob/main/README.md",
        "Issues": "https://github.com/ronanboiteau/djangorestframework-ratelimit/issues",
        "Repository": "https://github.com/ronanboiteau/djangorestframework-ratelimit.git"
    },
    "split_keywords": [
        "django",
        " rest",
        " framework",
        " ratelimit",
        " rate",
        " limit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe91b1c4ceb4dc3c1541d437cd069f0df2ac6946f2017964943ff87ca8cb7b2f",
                "md5": "1dad24befef9fc8592824e5ae736644f",
                "sha256": "81cbd9a87e8c2eeedb433ac45999336cb918c0804f8c9a714c1a666c1bc35f59"
            },
            "downloads": -1,
            "filename": "djangorestframework_ratelimit-1.0.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1dad24befef9fc8592824e5ae736644f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 12126,
            "upload_time": "2024-06-02T23:12:46",
            "upload_time_iso_8601": "2024-06-02T23:12:46.602940Z",
            "url": "https://files.pythonhosted.org/packages/fe/91/b1c4ceb4dc3c1541d437cd069f0df2ac6946f2017964943ff87ca8cb7b2f/djangorestframework_ratelimit-1.0.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b68de6ab3a12554df38fa731333a55d4086bf4c4817a7378013b2f2da518964b",
                "md5": "46d0e108ad588fe410f730b16e0b1ee9",
                "sha256": "ce0a77409d67ca7f07c8cb724fbc476121c766b172c17469f0bd40058438ca30"
            },
            "downloads": -1,
            "filename": "djangorestframework_ratelimit-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "46d0e108ad588fe410f730b16e0b1ee9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10917,
            "upload_time": "2024-06-02T23:12:47",
            "upload_time_iso_8601": "2024-06-02T23:12:47.895550Z",
            "url": "https://files.pythonhosted.org/packages/b6/8d/e6ab3a12554df38fa731333a55d4086bf4c4817a7378013b2f2da518964b/djangorestframework_ratelimit-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-02 23:12:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ronanboiteau",
    "github_project": "djangorestframework-ratelimit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "djangorestframework-ratelimit"
}
        
Elapsed time: 0.24545s