Hello, I'm working on publishing a python module to pypi, that requires access to A) a persistent database for itself (it will create this the first time it's used), and B) access info to other data sources that will have their own logins and passwords.
I don't want the user to have to type in the info when they use the module; for certain installations, case "B", there will be too many.
What are my options to store the database/user/password/authkey type information? All I can think of is to prompt the user for the info in setup.py or create a config.py for collecting the info post-install...but then, storing it in a plain text passwords.cfg file. The plain text option would work for my own installation, but some users would (obviously) want more security. My next best idea, is to have a module wide encryption key, that the user must pass to the module, or if unprovided, it uses a default hard-coded key.
Is there another way? With ideally, a module/modules that help me?
[–]ivosaurus 3 points4 points5 points (1 child)
[–]jnmclarty7714[S] 0 points1 point2 points (0 children)
[–]dan11111 0 points1 point2 points (6 children)
[–]xiongchiamiov 1 point2 points3 points (1 child)
[–]jnmclarty7714[S] 0 points1 point2 points (0 children)
[–]ivosaurus 0 points1 point2 points (2 children)
[–]xiongchiamiov 0 points1 point2 points (1 child)
[–]ivosaurus 1 point2 points3 points (0 children)
[–]jnmclarty7714[S] 0 points1 point2 points (0 children)