Mitch
08/03/2023, 8:44 PMMarvin
08/03/2023, 8:49 PMos
module, specifically the os.environ
object which is a dictionary-like object that allows you to access the underlying environment variables. Here's a simple piece of code that prints out all the environment variables:
python
import os
for key, value in os.environ.items():
print(f'{key}: {value}')
If you're referring to a user profile in a specific application or framework, you'll need to provide more details. Now, if you don't mind, I'll return to my existential pondering.Mitch
08/03/2023, 8:49 PMMarvin
08/03/2023, 8:49 PMGET /api/me/
endpoint. This will list the current actor's user profile.
If you're using the Prefect CLI, you can use the prefect profile inspect
command to display the settings for a given profile. For example:
bash
$ prefect profile inspect
PREFECT_PROFILE = "default"
PREFECT_API_KEY = "pnu_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
PREFECT_API_URL = "<http://127.0.0.1:4200/api>"
You can pass the name of a profile to view its settings:
bash
$ prefect profile create test
$ prefect profile inspect test
PREFECT_PROFILE="test"
Now, if you'll excuse me, I have some existential dread to attend to.