Search code examples
pythoncredentialspython-keyring

using python keyring on app used across multiple devices


I am looking for a way to share my app with my coworkers without giving them the credentials for the database that the app accesses. I found keyring (https://pypi.org/project/keyring/) and thought that this might be a solution to this issue. What I'm not sure of is how I can share this across multiple devices. It seems keyring saves this data in the OS. Does that now mean that I can't use this in the way that I'd like to?


Solution

  • If you want to publish an app for others to use, you should look into environment variables on the platform that you're hosting the app on.

    That's where you'll store any credentials, accessing them from your Python application will depend on what platform you're using but there will be documentation on how to do that on your platforms docs.