Skip to main content

WSGI middleware for translating application by WOVN.io. A port of wovnjava.

Project description

# wsgi_wovn

WSGI middleware for translating application by WOVN.io.
A port of wovnjava (https://github.com/wovnio/wovnjava).

## Install

$ pip install wsgi_wovn

## Usage

from werkzeug import run_simple
from wsgi_wovn import Middleware


def application(env, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
return [b"<html><body><a href='/test'>Hello WSGI world!</a></body></html>"]


wovn_app = Middleware(application, {
'user_token': 'IRb6-',
'secret_key': 'secret',
})

run_simple('0.0.0.0', 8000, wovn_app)

## License

MIT License

Copyright (c) 2016 Minimal Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsgi_wovn-0.0.3.tar.gz (12.4 kB view details)

Uploaded Source

File details

Details for the file wsgi_wovn-0.0.3.tar.gz.

File metadata

  • Download URL: wsgi_wovn-0.0.3.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsgi_wovn-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cf8ae0958d1d27b2c5537a0fd7fd6c760feacf69cc12f95e24dc69bf7abead28
MD5 196c982084a7a11908ecbd18e6f4db4a
BLAKE2b-256 5fd5ed06097850e948dbc654a39ed2a8927e7008b593e7a3043ee9a905f6bef9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page