{ "info": { "author": "Masashi Shibata", "author_email": "contact@c-bata.link", "bugtrack_url": null, "classifiers": [], "description": "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 > --username c-bata \\\n > 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 ``DJANGO_SETTINGS_MODULE=test_settings python -m django test``\n\nLicense\n-------\n\nThis software is licensed under the MIT License (See `LICENSE <./LICENSE>`_ ).\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/c-bata/django-httpbench", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "djangohttpbench", "package_url": "https://pypi.org/project/djangohttpbench/", "platform": "", "project_url": "https://pypi.org/project/djangohttpbench/", "project_urls": { "Homepage": "https://github.com/c-bata/django-httpbench" }, "release_url": "https://pypi.org/project/djangohttpbench/0.1.0/", "requires_dist": [ "Django", "requests" ], "requires_python": "", "summary": "HTTP load testing tools for Django. Like an apache bench but requests are sent from authenticated users.", "version": "0.1.0" }, "last_serial": 5225902, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "010b698510c5f673f9affb67fe5de722", "sha256": "05fa01fd226a33147afe6df40407afda5e6bb06590aed214e9aa8444522932b1" }, "downloads": -1, "filename": "djangohttpbench-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "010b698510c5f673f9affb67fe5de722", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7142, "upload_time": "2019-05-04T09:44:30", "url": "https://files.pythonhosted.org/packages/19/88/be30809edbe7289415777123d91d651c8846c30b326ba7e41f625646c4fc/djangohttpbench-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6a3253f8abc338c5c3c727135747de3d", "sha256": "ef90ab7e9fc577298d0f41074b5b8fe97ab0dd6bbf68c55c441ebaefada3676d" }, "downloads": -1, "filename": "djangohttpbench-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6a3253f8abc338c5c3c727135747de3d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7343, "upload_time": "2019-05-04T11:07:43", "url": "https://files.pythonhosted.org/packages/78/db/5c898d70f507b51369f04c3553c4e567b639eb01509c66e9f4e9e21a111d/djangohttpbench-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f50b716b037f791f9a8688054061004", "sha256": "75cd82ac1f572ab7e4b0f7a31c490d966d0a0a9c9773288b2604debe19e4798f" }, "downloads": -1, "filename": "djangohttpbench-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1f50b716b037f791f9a8688054061004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5322, "upload_time": "2019-05-04T11:07:44", "url": "https://files.pythonhosted.org/packages/e7/92/c809d93108dbddd698004f64819c6139bc13357e7d6938fb12ae0cd7cf61/djangohttpbench-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "af957ceeb9505d032d5ef69db4829416", "sha256": "c6c42e08527eaa1347757e8423f550854b02ebed085915be9d5f705256702ea0" }, "downloads": -1, "filename": "djangohttpbench-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "af957ceeb9505d032d5ef69db4829416", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7345, "upload_time": "2019-05-04T15:36:16", "url": "https://files.pythonhosted.org/packages/c1/36/455f6d8722ee49d45f810474d9b6179333e2220242f7e9470292caaa0e37/djangohttpbench-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be9e9649a2feaf5e16914c47fcceedf3", "sha256": "18984b513508d9a757ebf49b1d3333f4498192cebd024d1e0884509e4572597e" }, "downloads": -1, "filename": "djangohttpbench-0.1.0.tar.gz", "has_sig": false, "md5_digest": "be9e9649a2feaf5e16914c47fcceedf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5292, "upload_time": "2019-05-04T15:36:17", "url": "https://files.pythonhosted.org/packages/72/cb/3f2bf12075b1c7903e8ab3908f7acc8e859af7e9e555e45f4c8adfdc8a9f/djangohttpbench-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af957ceeb9505d032d5ef69db4829416", "sha256": "c6c42e08527eaa1347757e8423f550854b02ebed085915be9d5f705256702ea0" }, "downloads": -1, "filename": "djangohttpbench-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "af957ceeb9505d032d5ef69db4829416", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7345, "upload_time": "2019-05-04T15:36:16", "url": "https://files.pythonhosted.org/packages/c1/36/455f6d8722ee49d45f810474d9b6179333e2220242f7e9470292caaa0e37/djangohttpbench-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be9e9649a2feaf5e16914c47fcceedf3", "sha256": "18984b513508d9a757ebf49b1d3333f4498192cebd024d1e0884509e4572597e" }, "downloads": -1, "filename": "djangohttpbench-0.1.0.tar.gz", "has_sig": false, "md5_digest": "be9e9649a2feaf5e16914c47fcceedf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5292, "upload_time": "2019-05-04T15:36:17", "url": "https://files.pythonhosted.org/packages/72/cb/3f2bf12075b1c7903e8ab3908f7acc8e859af7e9e555e45f4c8adfdc8a9f/djangohttpbench-0.1.0.tar.gz" } ] }