The Python SDK for Crossplane composition functions
Project description
function-sdk-python
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:
- Follow the guide to writing a composition function in Python
- Learn about how composition functions work
- Read the package documentation
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.
If you just want to jump in and get started, consider using the function-template-python template repository.
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
# Format and lint the code.
hatch fmt
# Run unit tests.
hatch test
# Build an sdist and wheel.
hatch build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crossplane_function_sdk_python-0.9.0.tar.gz.
File metadata
- Download URL: crossplane_function_sdk_python-0.9.0.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a54d41abe9352b4f98828d8e433f1844feeb0adcdd409adfa04005069fef2762
|
|
| MD5 |
dd642cdf24ccd8dd81469f47ee22b1dc
|
|
| BLAKE2b-256 |
8f7208dc9b89c80f9d1f788adff4180f6cf61017ed1a00ccc34dee87b2ef9d2a
|
File details
Details for the file crossplane_function_sdk_python-0.9.0-py3-none-any.whl.
File metadata
- Download URL: crossplane_function_sdk_python-0.9.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c7ff2d45de0ebab730643bd5b9ce5eeaedb457d377bb48b86a2502bfd27d3e2
|
|
| MD5 |
56d7f94eb5e7cf83b23f7750f85a3e47
|
|
| BLAKE2b-256 |
585a4aaf04acf23d18e0e9cc6da6063aae4b7c434b0e863163f513b4b840206b
|