【文件属性】:
文件名称:django-batch-requests:将多个http请求合并为一个批处理请求
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-14 13:02:24
Python
Django批处理请求
Django批处理请求允许开发人员将多个http请求合并为一个批处理请求。 这对于避免发出多个http请求非常有用。
它建立在Django之上,并依赖于Django的URL分配,因此它也可以与建立在Django之上的任何Web框架一起使用,例如 。
要求
巨蟒(2.7)
Django(1.7)
安装
使用pip安装...
pip install django-batch-requests
从源安装...
python setup.py install
用法
将'batch_requests'添加到您的INSTALLED_APPS设置中。
INSTALLED_APPS = (
...
'batch_requests',
)
在您的urls.py添加具有以下端点之一的batch_requests.views.handle_batch_re
【文件预览】:
django-batch-requests-master
----setup.py(3KB)
----.gitignore(687B)
----batch_requests()
--------__init__.py(173B)
--------views.py(4KB)
--------concurrent()
--------utils.py(4KB)
--------migrations()
--------settings.py(2KB)
--------exceptions.py(366B)
----requirements.txt(162B)
----.travis.yml(136B)
----MANIFEST.in(87B)
----LICENSE(1KB)
----README.md(8KB)
----.coveralls.yml(46B)
----tests()
--------test_thread_concurrency.py(1KB)
--------conftest.py(2KB)
--------test_concurrency_base.py(3KB)
--------urls.py(573B)
--------test_compatibility.py(6KB)
--------__init__.py(0B)
--------test_process_concurrency.py(1KB)
--------test_views.py(3KB)
--------test_base.py(2KB)
--------test_bad_batch_request.py(3KB)
--------test_settings.py(5KB)
----runtests.py(2KB)
----tox.ini(216B)