https://pulumi.com logo
#python
Title
# python
b

billowy-laptop-45963

04/02/2019, 5:23 PM
When will ComponentResources be supported in python?
i

incalculable-sundown-82514

04/02/2019, 5:24 PM
they are!
b

billowy-laptop-45963

04/02/2019, 5:26 PM
whoops ok, I've been playing around with the typescript implementation since everything is supported, but would like to use python instead. thanks.
i

incalculable-sundown-82514

04/02/2019, 5:27 PM
let me know if there’s something missing in Python that you’d like to see - there are still a few gaps but a majority of the TypeScript functionality is also supported in Python
b

billowy-laptop-45963

04/02/2019, 5:28 PM
are there typings / ide intellisense support?
i

incalculable-sundown-82514

04/02/2019, 5:28 PM
that’s more of an IDE feature than Pulumi, but yes, there are IDEs out there like JetBrains PyCharm and VS Code that are capable of providing autocompletion for Python, including Pulumi programs
Python doesn’t have typings in the same way that TypeScript does, although Pulumi does include mypy annotations when useful and usable by IDEs
b

billowy-laptop-45963

04/02/2019, 5:34 PM
ya usually it comes down to if typings exist or proper docstrings with param returns
i

incalculable-sundown-82514

04/02/2019, 5:34 PM
Pulumi’s libraries have both of those things, yeah
b

billowy-laptop-45963

04/02/2019, 5:37 PM
cool thanks
l

little-river-49422

04/02/2019, 8:49 PM
what are component resources?
i

incalculable-sundown-82514

04/02/2019, 8:50 PM
p

proud-artist-4864

04/03/2019, 3:38 AM
@incalculable-sundown-82514 the main thjing missing is being able to use output promises in user code. Thats the primary difference between TS and Python
i

incalculable-sundown-82514

04/03/2019, 4:08 AM
what do you mean?
p

proud-artist-4864

04/03/2019, 6:06 AM
Related to our discussion about dynamic providers. The only thing I can do with an Output in Python is pass it as an Input to another Pulumi resource. I can’t write code that deals with the Output when it’s resolved because there’s no access to either the provider hooks when the engine is running, or the async loop that is running the user code to be able to do an async operation on the code.
l

little-river-49422

04/03/2019, 7:21 AM
why though? it works for me