django-cgi-wrap-0.2.0
توضیحات
Wrapper to integrate CGI scripts into django views.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-cgi-wrap-0.2.0 |
| نام | django-cgi-wrap |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nico Mandery |
| ایمیل نویسنده | nico@nmandery.net |
| آدرس صفحه اصلی | https://github.com/nmandery/django_cgi_wrap |
| آدرس اینترنتی | https://pypi.org/project/django-cgi-wrap/ |
| مجوز | MIT |
Wrapper to integrate CGI scripts into django views.
.. image:: https://travis-ci.org/nmandery/django_cgi_wrap.svg?branch=master
:target: https://travis-ci.org/nmandery/django_cgi_wrap
Simple function to wrap old-style CGI scripts/binaries to integrate them
into the views of a django app.
This method preserves the shortcommings of the CGI deployment, but may be adequate
when the performance hit caused by CGI spawning a new process for each request is
negligible, a legacy CGI executable needs to be embedded in a new application or
the ease of deployment is a priority.
Data returned by the CGI will be streamed to the client.
Example:
.. code::
from django_cgi_wrap import cgi_wrap
def example_view(request):
return cgi_wrap(request, "/usr/bin/mapserv")
Also see the "tests" directory for a working example as well as the doc-strings of the
module itself.
نحوه نصب
نصب پکیج whl django-cgi-wrap-0.2.0:
pip install django-cgi-wrap-0.2.0.whl
نصب پکیج tar.gz django-cgi-wrap-0.2.0:
pip install django-cgi-wrap-0.2.0.tar.gz