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

important-energy-56546

01/10/2024, 7:07 PM
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

important-energy-56546

01/10/2024, 9:48 PM
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

dry-keyboard-94795

01/10/2024, 9:48 PM
Where are you seeing "EnvVar"?
All of the class names are there, but no packages
d

dry-keyboard-94795

01/10/2024, 9:56 PM
i

important-energy-56546

01/10/2024, 9:56 PM
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

dry-keyboard-94795

01/10/2024, 9:59 PM
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

important-energy-56546

01/10/2024, 10:00 PM
Yes, I grepped the source to find that out. Kinda wanted to stop doing that. Thanks for the link.
d

dry-keyboard-94795

01/10/2024, 10:01 PM
It may be worth rasing an issue here: https://github.com/pulumi/registry
h

hundreds-gpu-71155

01/11/2024, 6:06 PM
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

important-energy-56546

01/11/2024, 7:05 PM
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

hundreds-gpu-71155

01/11/2024, 8:59 PM
pydoc
also works in the terminal, but isn't browsable