Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program flow advice
#1
Hi all. I'm currently writing a program so that I can add in my vehicles and keep track of any maintenance done at what mileage and what time of year. I've defined my objects and fucntions which is all very well testing in a one time run of the script but I'd like to save the values for next time I run it.

Is it wise to do this by writing and reading to a text file or is this a good opportunity to try a SQLite database? This will only ever be run offline, no need for it to be web integrated. This will all be wrapped in a tkinter GUI.

Any help would be greatly appreciated.

my code here
Reply
#2
Depends on how big you thing your data may be.  Rather than a text file, I would start with a .csv file, if that starts to grow to large, you can always import it into sqllite.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
Yeah well its not going to be massive just thought it might be good practice to use some sort of database. Starting with a .csv file sounds good to me though. Ill give that a shot.

Cheers!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Alicat Flow Meter data acquisition marenr 0 354 Sep-29-2023, 10:59 PM
Last Post: marenr
  Node Flow Generation in Python Linenloid 0 657 Feb-21-2023, 07:09 PM
Last Post: Linenloid
  Flow Control Help RoadToSensei 5 1,701 Feb-14-2022, 08:21 PM
Last Post: deanhystad
  Understanding Raspberry PI RTS/CTS flow control zazas321 2 3,647 Oct-30-2020, 09:55 AM
Last Post: zazas321
  Understanding Raspberry PI RTS/CTS flow control zazas321 0 1,509 Oct-30-2020, 08:02 AM
Last Post: zazas321
  Reproducing assignment with min cost flow in networkx mntfr 0 2,137 Jun-13-2019, 04:06 PM
Last Post: mntfr
  Find Maximum Flow for graph with infinite capacities Dav 6 4,270 Apr-16-2019, 02:08 PM
Last Post: Dav
  Trouble with general code flow JCN 1 3,400 May-26-2017, 01:27 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020