The Python SDK for composition functions
Go to file
Nic Cope 383783c0f9 Remove stale TODO WRT insecure port
It appears that it does override secure port

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-11-19 14:06:29 -08:00
.github Remove copy-pasta in CI workflow 2023-11-19 13:46:58 -08:00
crossplane/function Remove stale TODO WRT insecure port 2023-11-19 14:06:29 -08:00
tests Break the SDK out into its own repo 2023-11-19 13:37:50 -08:00
.gitignore Initial commit 2023-11-20 15:00:23 -08:00
LICENSE Initial commit 2023-11-20 15:00:23 -08:00
README.md Link to the protobuf generated code guide 2023-11-19 13:44:37 -08:00
pyproject.toml Update dependency grpcio-tools to v1.59.3 2023-11-21 02:30:53 +00:00
renovate.json Add renovate.json 2023-11-21 02:22:01 +00:00

README.md

function-sdk-python

CI GitHub release (latest SemVer)

The Python SDK for writing composition functions.

This SDK is currently a beta. We try to avoid breaking changes, but it will not have a stable API until it reaches v1.0.0. It follows the same contributing guidelines as Crossplane.

To learn how to use this SDK:

The RunFunctionRequest and RunFunctionResponse types provided by this SDK are generated from a proto3 protocol buffer schema. Their fields behave similarly to built-in Python types like lists and dictionaries, but there are some differences. Read the generated code documentation to familiarize yourself with the the differences.

Contributing

This project follows the Crossplane contributing guidelines, where applicable to Python. It is linted, tested, and built using Hatch.

Some useful commands:

# Generate gRPC stubs.
hatch run generate:protoc

# Lint the code, using ruff.
hatch run lint:check
hatch run lint:check-format

# Run unit tests.
hatch run test:unit

# Build an sdist and wheel
hatch build