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

# Lint the code.
hatch run lint:check

# Run unit tests.
hatch run test:unit

# 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.4.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

crossplane_function_sdk_python-0.4.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for crossplane_function_sdk_python-0.4.0.tar.gz
Algorithm Hash digest
SHA256 db038d05cc6c90affcfc195d913e7ff2629f3d52ff03cdefb0243eaee802c19e
MD5 d922335c1d9178a46f60a527f8347b60
BLAKE2b-256 e6ab34ba2e32a677d2034228617349bb8df31fed89ecd6cf3f9f5f3d5da0c47f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crossplane_function_sdk_python-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2947a5cdbada2df0e0c1775a5599a42525735c4b49cb9c8439feae1fc9eaa1d9
MD5 6d056026dffd75a394d941d5d5f063f4
BLAKE2b-256 1fc051b3054f60733d42f980a3a830411a496e47143d366f8590914d4eb03d31

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