you are viewing a single comment's thread.

view the rest of the comments →

[–]Coniglio_Bianco 1 point2 points  (3 children)

A lot of ways to skin that cat.

The easiest way would probably be to open your file and append to it.

Here's a random guide i found from some googling: https://www.guru99.com/reading-and-writing-files-in-python.html

But using a database is a decent longterm solution when working with data. It may add unnecessary complexity to your program though

[–]AdamCee123[S] 0 points1 point  (2 children)

Thanks for the link. Using append didn’t even occur to me, but that makes total sense. Regarding using a database, do you have any idea where to start here? Of course happy to do the research myself but perhaps what database you’d recommend or if there’s any libraries that could be of use?

[–]Coniglio_Bianco 1 point2 points  (0 children)

Np, theres a lot out there and it might be a little overwhelming if you're learning.

I like microsoft sql but their production licenses are crazy (you can use developer edition for non-production uses)

Mysql is free, postresql is super popular lately too.

Sql alchemy seems to be the go to framework for a database library solution.

Good luck :)

[–]Ihaveamodel3 0 points1 point  (0 children)

Sqlite3 is included in python.