{"id":15973701,"url":"https://github.com/c-bata/django-httpbench","last_synced_at":"2025-07-06T00:36:57.819Z","repository":{"id":57420397,"uuid":"184370506","full_name":"c-bata/django-httpbench","owner":"c-bata","description":"HTTP load testing tools for Django. Like an apache bench but requests are sent from authenticated users.","archived":false,"fork":false,"pushed_at":"2019-05-06T12:02:52.000Z","size":24,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T14:17:19.582Z","etag":null,"topics":["django","load-testing"],"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/c-bata.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":"2019-05-01T04:53:54.000Z","updated_at":"2021-06-29T07:21:57.000Z","dependencies_parsed_at":"2022-09-16T09:02:14.177Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/django-httpbench","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/c-bata/django-httpbench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-httpbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-httpbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-httpbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-httpbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/django-httpbench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-httpbench/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690825,"owners_count":23047098,"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":["django","load-testing"],"created_at":"2024-10-07T21:06:31.294Z","updated_at":"2025-07-06T00:36:57.775Z","avatar_url":"https://github.com/c-bata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-httpbench\n================\n\nHTTP load testing tools for Django.\nLike an apache bench but requests are sent from authenticated users without having to know their password.\n\nInstallation\n------------\n\ndjango-httpbench requires python 3.6 or later and Django 2.0 or later.\n\n.. code-block:: console\n\n   $ python3 -m pip install djangohttpbench\n\n\nhttps://pypi.org/project/djangohttpbench/\n\nUsage\n-----\n\nHeaderAuthBackend\n~~~~~~~~~~~~~~~~~\n\nDjango authentication backend that allows one to login without having to know their password.\nThis backend is useful for testing scenarios.\n\n.. code-block:: python\n\n    HTTP_BENCH_USERNAME_KEY = \"X-USERNAME\"  # default: X-USERNAME\n\n    INSTALLED_APPS += [\n        'httpbench.apps.HttpbenchConfig',\n    ]\n\n    MIDDLEWARE += [\n        'httpbench.middlewares.HeaderAuthMiddleware',\n    ]\n\n    AUTHENTICATION_BACKENDS += [\n        'httpbench.backends.UsernameBackend',\n    ]\n\n\n.. code-block:: console\n\n   $ curl -H 'X-USERNAME: c-bata' https://localhost:8000/path/to/page/require/auth\n\n\n``httpbench`` management command\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n`httpbench` management command acts like an apache bench but requests are sent from authenticated users.\n\n.. code-block:: console\n\n   $ python3 manage.py httpbench -n 1000 -c 50 \\\n   \u003e --username c-bata \\\n   \u003e https://localhost:8000/\n   Response time:\n     mean: 3.862 secs\n     min: 1.173 secs\n     max: 11.097 secs\n   Status:\n     2xx: 1000\n     3xx: 0\n     4xx: 0\n     5xx: 0\n     fail: 0\n\nDevelopment\n-----------\n\n* lint: ``tox -e flake8`` or ``flake8``\n* test: ``tox -e py37`` or ``python setup.py test --settings=test_settings``\n\nLicense\n-------\n\nThis software is licensed under the MIT License (See `LICENSE \u003c./LICENSE\u003e`_ ).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-httpbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Fdjango-httpbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-httpbench/lists"}