-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
143 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
# Python Func Runtime | ||
|
||
This repository contains the function invocation and runtime framework for | ||
Knative Python functions. | ||
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` | ||
- install dependencies with `poetry install` | ||
- activate the virtual environment managed by poetry via `poetry shell` | ||
- run the example via `python cmd/fhttp/main.py` | ||
- deactivate the virtual environment with `exit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "func-python" | ||
version = "0.1.0" | ||
description = "Knative Functions Python Middleware" | ||
authors = ["Luke Kingland <[email protected]>"] | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/knative-extensions/func-python" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.12" | ||
hypercorn = "^0.17.3" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
File renamed without changes.
File renamed without changes.
File renamed without changes.