Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Maintained by Function Buildpacks for Knative Team (Cloud Native Runtimes)

License

Notifications You must be signed in to change notification settings

sample-accelerators/python-functions-accelerator

Repository files navigation

Python Function

NOTE This repo has been archived and the sample has moved to:
https://github.com/vmware-tanzu/application-accelerator-samples/tree/main/python-function

This repo contains a simple Python Function that can be deployed as a TAP workload.

This function utilizes the buildpacks provided by VMware's open-source Function Buildpacks for Knative project.

Getting Started

To begin editing your function, refer to the tree diagram below of the file to modify:

python-function
    └── func.py // EDIT THIS FILE

Inside this file, you will find a function that is invoked by default. For example:

def main(data: Any, attributes: dict):
    # Your function implementation goes here
    return attributes, "Hello world!"

You may replace the code inside this default function with your logic.

To see samples of code deployable as a Function (FaaS) experience, visit the samples folder.

Deploying

Please see DEPLOYING.md on how to build, deploy, and test your newly built function.

About

Maintained by Function Buildpacks for Knative Team (Cloud Native Runtimes)

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages