I've been having to look at the pulumi python pack...
# python
i
I've been having to look at the pulumi python package to locate classes. Is there online documentation that shows where things like
EnvVar
are defined?
Similar to the docs you might find for
requests
or
numpy
d
i
tyty, you should link that to the main site
if I search for EnvVar via google or the search, or try navigating, nothing like this came up
d
Where are you seeing "EnvVar"?
All of the class names are there, but no packages
d
i
Yes, but the module name is missing, so if you don't know to import it from
pulumi_kubernetes_....
or from the link that's not linked anywhere else on the site, you have to grep the sources.
You see how that's difficult if you don't know where the module docs are published, eh?
d
They're accessible from the same module as the resource being documented, so
pulumi_kubernetes.core.v1.EnvVar
But yes, this could be clearer
i
Yes, I grepped the source to find that out. Kinda wanted to stop doing that. Thanks for the link.
d
It may be worth rasing an issue here: https://github.com/pulumi/registry
h
you can get some minimal docs locally with
python -m pydoc -b
. they're bad and ugly, but they might beat digging through your venv with a text editor.
i
that's p clever. fortunately, my editor is terminal. so using a browser would be nicer, but i could always use elasticearch and index what you're providing so I don't get the "other documentation"
h
pydoc
also works in the terminal, but isn't browsable