-
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.
* update to setup defined by Poetry * improved documentation
- Loading branch information
Showing
11 changed files
with
147 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,27 @@ | ||
# 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` | ||
- 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` |
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.