Skip to main content

The Python SDK for Crossplane composition functions

Project description

function-sdk-python

CI GitHub release (latest SemVer) PyPI - Version

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crossplane_function_sdk_python-0.6.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file crossplane_function_sdk_python-0.6.0.tar.gz.

File metadata

File hashes

Hashes for crossplane_function_sdk_python-0.6.0.tar.gz
Algorithm Hash digest
SHA256 32dc5593287ee8924fb77e0a74c3bc38196be082e8f1d0f781ef2e043e375d8f
MD5 a7697aba6b8b95d10438253aaa6ad0c7
BLAKE2b-256 99b2d892d1b6acf475c700f29a70713d57e1ed274c383862a67b47cd79568873

See more details on using hashes here.

File details

Details for the file crossplane_function_sdk_python-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crossplane_function_sdk_python-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd00d95b6e139e6da1229b1e92d633504c4764d973a160022dcc32c3141037b
MD5 667e8c3ae483b3faec3b4e2c01e7f734
BLAKE2b-256 4273104106ce353af4b3f54ec91bcf9ba7f916ba310cc0305f7c8443b467bdc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page