Home > OS >  Where to save Python Tkinter login data
Where to save Python Tkinter login data

Time:10-16

I have a Python registration and login code using Tkinter. But, how and where can I save this recorded data so that a person who created the account on one computer can log on to another? On google, I only find people saving the data in a local database (.db file on the computer) or in a .txt

Thanks in advance!

CodePudding user response:

To use .db you can use sqlite3 and working with .txtis builtin. I would recommend hosting your data then so it is not a actual file but on the cloud for stuff like that I would recommend checking out MongoDB

CodePudding user response:

You can use a sqlite3 database, but that would not solve your problem.

The database or any other form of data source must be stored on a server that you can access. This can be on the internet or on the local network. (You didn't specify your environment)

you could access this data source by https (don't use http as it is clear text and not a good idea for password requests), connect to an online database or write some kind of socket server that you can connect to and get the needed information.

  • Related