Metadata-Version: 2.4 Name: flava-function Version: 1.0.2 Summary: Flava Function base wrapper codes Author: Flava Function Project-URL: Homepage, https://git.linecorp.com/flava-function/flava-function-python Requires-Python: <4,>=3.7 Description-Content-Type: text/markdown Requires-Dist: cryptography Requires-Dist: fastapi Requires-Dist: python-multipart Requires-Dist: requests Requires-Dist: uvicorn Requires-Dist: yj-athenz-client # Flava Function for Python An Flava Function framework for writing portable Python functions The Flava Function framework lets you write lightweight functions that run in many different environments ## Installation ``` pip install flava-function ``` ## Local Test ```sh $ cd example $ pip install -e . $ flava_function ``` ## Build test function ```bash $ export FUNCTION_NAME=hello $ export FUNC_RUNTIME_VERSION= $ docker build -t harbor.linecorp.com/cloud-native/$FUNCTION_NAME -f Dockerfile example --build-arg FUNC_RUNTIME_VERSION=$FUNC_RUNTIME_VERSION ``` ## Run test function ```bash $ export FUNCTION_NAME=hello $ docker run -p 8080:8080 harbor.linecorp.com/cloud-native/$FUNCTION_NAME ```