Most of our higher-level abstraction libraries are in typescript, with the exception of
https://github.com/pulumi/pulumi-eks which is written in typescript and then generated in all Pulumi languages including python. But the same patterns used in any of these libraries (like cloud, which you’ve found, or
https://github.com/pulumi/pulumi-awsx) can be used for python as well.