Peter Sanchez
Python, Unix, Surfboards & Heavy Barbells. Owner of Netlandish Inc.
  • 🔥 1 day streak
  • 📍 Tamarindo, Costa Rica
  • 📅 Joined December 2018
  • 👻 69 days best streak

Oops, just saw your addition of "in realtime", you're going to want to use Popen. See the docs.

Easiest method is using the subprocess module. If you're using Py3.5+ (you should be) see:

https://docs.python.org/3/library/subprocess.html#subprocess.run

Oops, just saw your addition of "in realtime", you're going to want to use Popen. See the docs.

Keepassxc on Linux, KeePassDroid on my Pixel2, db file sync'd via Dropbox. If you're talking about on your app or code, then each situation is different but it's normal to have environment variables store that or special configs that are only stored in the environments that need to use them.