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
viapipx
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for func_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7371971894535ab223e670770395549a55850513cd877f9879712913602455 |
|
MD5 | 9027fe3cbfa763d2733ee8d170b6c80d |
|
BLAKE2b-256 | c4d42e9609a6808f74161f4dec44841166e94f255b679329121755f0077815fa |