What is the recommended way to store sensitive information like API keys, DB credentials #4908
-
First Check
Example CodeN/A DescriptionWhat is the recommended way to store sensitive information like API keys, DB credentials in nicegui Streamlit provides a way using secrets.toml file, is there anything similar in nicegui? Hardcoding in the py file is not the correct. NiceGUI Version1.46 Python Version3.13 BrowserChrome Operating SystemLinux Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
evnchn
Jun 29, 2025
Replies: 1 comment 1 reply
-
Be sure to exclude your secrets file from Git! Otherwise it is no better than secret in the source code... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HowdyVivek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.env
then load with https://pypi.org/project/python-dotenv/secrets.json
is also fine to meBe sure to exclude your secrets file from Git! Otherwise it is no better than secret in the source code...