Metadata-Version: 2.1
Name: func-python
Version: 0.1.0
Summary: Knative Functions Python Middleware
Home-page: https://github.com/knative-extensions/func-python
License: Apache-2.0
Author: Luke Kingland
Author-email: luke@lukekingland.com
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: hypercorn (>=0.17.3,<0.18.0)
Project-URL: Repository, https://github.com/knative-extensions/func-python
Description-Content-Type: text/markdown

# 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`

