Skip to main content

Code Wake V1 WSGI Werkzeug middleware

Project description

Python Code Wake V1 WSGI Werkzeug middleware (pycodewake-v1wsgi-service)

test codecov

This store adapter provides a WSGI Werkzeug middleware which provides an implementation of the V1 REST API service.

For example:

import flask
from code_wake_v1wsgi_service import V1WsgiMiddleware
from code_wake_sql14_store import Sql14Store

flask_app = flask.Flask(__name__)
flask_app.wsgi_app = V1WsgiMiddleware(flask_app.wsgi_app, "/some/v1/code_wake/path", Sql14Store("sqlite:///:memory:"))

Here, a flask server is created, and the middleware added to it. The parameters for the middleware are the URL base path (on top of which /processes, /events and any other restful resources will be added) and the back end store.

A remote process may then use the code-wake-v1rest-store Code Wake store adapter, and via this middleware, communicate to the back end store provided.

No authentication is provided by the middleware.

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

code-wake-v1wsgi-service-0.2.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

code_wake_v1wsgi_service-0.2.1-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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