func/templates/python/cloudevents
Matej Vašek f8c54a5698
chore: update CA bundle (#2415)
* chore: update CA bundle

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* style: add EoLs

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* style: removed trailing whitespace

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-07-09 07:45:09 +00:00
..
Procfile feat: enable Paketo builders for Python functions (#979) 2022-04-20 00:09:28 +00:00
README.md feat: enable Paketo builders for Python functions (#979) 2022-04-20 00:09:28 +00:00
app.sh feat: enabled s2i for python (#1562) 2023-02-20 16:45:26 +00:00
func.py feat: make templates consistent across runtimes (#948) 2022-04-08 11:28:46 +00:00
manifest.yaml feat: Change Invocation.format to Invoke (#1415) 2022-11-11 11:20:19 +00:00
requirements.txt feat!: rename event templates to 'cloudevents' (#584) 2021-10-13 14:19:42 -07:00
test_func.py chore: update CA bundle (#2415) 2024-07-09 07:45:09 +00:00

README.md

Python CloudEvents Function

Welcome to your new Python function project! The boilerplate function code can be found in func.py. This function is meant to respond to Cloud Events.

Endpoints

Running this function will expose three endpoints.

  • / The endpoint for your function.
  • /health/readiness The endpoint for a readiness health check
  • /health/liveness The endpoint for a liveness health check

The health checks can be accessed in your browser at http://localhost:8080/health/readiness and http://localhost:8080/health/liveness.

You can use func invoke to send an event to the function endpoint.

Testing

This function project includes a unit test. Update this as you add business logic to your function in order to test its behavior.

python test_func.py