You can then publish a language SDK for your supported languages, so npm for node packages, pip for python.
The invoking peer needs to have the language they're using runtime locally
The python boilerplater is here: https://github.com/pulumi/pulumi-component-provider-py-boile...
Here's an example component built in Go: https://github.com/jaxxstorm/pulumi-productionapp
Then in examples you can see it being using: https://github.com/jaxxstorm/pulumi-productionapp/tree/main/...