Skip to main content

Knative Functions Python Middleware

Project description

Python Func Runtime

This middleware is used by Knative Functions to expose a Function written in Python as a network service.

Contents

.
├── cmd
│   └── fhttp     - Example a function using the http middleware
├── src/func_python
│   ├── http.py   - HTTP Middleware
└── README.md     - This Readme

Development

  • install poetry via pipx
  • activate the virtual environment managed by poetry via poetry shell Note that on some environments this command may cause collissions with configured keyboard shortcuts. If there are problems, you can source the environment variables from the autogenerated venv with: source $(poetry env info --path)/bin/activate
  • install dependencies into the activated environment with poetry install
  • run the example via python cmd/fhttp/main.py
  • deactivate the virtual environment with exit

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

func_python-0.1.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

func_python-0.1.0-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