WSGIT (WSGI on TCP)
About
WSGIT is a server which runs WSGI applications on TCP not HTTP so that helps you make server of non-http-clients(such as mobile application) with wsgi applications(like django or flask). It makes mock WSGI Request from TCP to run WSGI application. It receives json response from WSGI application and sends it as bson after adds some HTTP header information in dict.
Examples
Django Example:
def index(request):
return HttpResponse(json.dumps(dict(page='index')), mimetype='application/json')
urlpatterns = patterns('',
url(r'^$', index),
)
Run Example:
$ wsgit 0:9338 djangoproject.wsgi.application
Request Example:
>>> from socket import *
>>> import bson
>>> bson.patch_socket()
>>> s = socket(AF_INET, SOCK_STREAM)
>>> s.connect(('127.0.0.1', 9338))
>>> s.sendobj({'url':'/', 'method': 'GET'})
>>> print s.recvobj()
>>> {u'status': {u'reason': 'OK', u'code': '200'}, u'page': u'index', u'url': u'/', u'method': u'GET'}
>>> s.close()
Metadata
Release files for WSGIT 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| WSGIT-0.3.1.tar.gz | 5.7 kB | Without provenance | Details |
Release files / WSGIT-0.3.1.tar.gz
| Download URL | WSGIT-0.3.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c226c5cb57d49a7931304c9d645390a7df771397a8c0ff4f6f8983daa4f03482
|
|
BLAKE2b-256 checksum How to use checksums |
7a9e17240a9c3a675b929642cf02fcb469073e3801afe1ec02dd72cda06e85ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for WSGIT 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.