Python Forum
Creating a persistent list/database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a persistent list/database
#1
I'm trying to create a program that saves info that is entered in by the user. How would I create a python program that saves information entered in by a user so that next time someone runs the program the information that was entered in is still available? Thanks
Reply
#2
Lots of ways. For a simple table of data you can use the csv module. There are lots of packages for relational databases, starting with sqlite. Or you can do custom text files or binary files in formats you create yourself. There is also the pickle package, which can save Python objects, but that's not used very much.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Populate Dropdown list from Database TommyAutomagically 4 4,505 Nov-02-2021, 05:23 PM
Last Post: ndc85430
  Class-Aggregation and creating a list/dictionary IoannisDem 1 1,917 Oct-03-2021, 05:16 PM
Last Post: Yoriz
  I need help parsing through data and creating a database using beautiful soup username369 1 1,705 Sep-22-2021, 08:45 PM
Last Post: Larz60+
  Error creating database with python and form? shams 3 2,365 Aug-02-2021, 02:00 PM
Last Post: deanhystad
  Creating list of lists from generator object t4keheart 1 2,197 Nov-13-2020, 04:59 AM
Last Post: perfringo
  Creating a dictionary from a list Inkanus 5 3,156 Nov-06-2020, 06:11 PM
Last Post: DeaD_EyE
  Creating a list of dictionaries while iterating pythonnewbie138 6 3,261 Sep-27-2020, 08:23 PM
Last Post: pythonnewbie138
  Creating a list of RSSI value and send it to the server. Azuan 0 2,638 Jun-08-2020, 11:22 PM
Last Post: Azuan
  creating a list of dictionaries from API calls AndrewEnglsh101 5 3,061 Apr-03-2020, 02:21 PM
Last Post: AndrewEnglsh101
  Creating new list based on exact regex match in original list interjectdirector 1 2,279 Mar-08-2020, 09:30 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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