0
0
0xC0CAC01A2020-10-16 14:52:02
Data storage
0xC0CAC01A, 2020-10-16 14:52:02

Database in text file under Python?

You need to store a very small amount of information, literally kilobytes, a text file is ideal for this, because. the user will be able to watch it and, if desired, edit the handles. But I want to be able to access it as an adult database. There are no text databases? SQLite is not text based. I understand that this is a very non-standard practice, but in this case it would be very suitable.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Tsvetkov, 2020-10-16
@tsklab

.csv file.

L
LXSTVAYNE, 2020-10-16
@lxstvayne

Have a look at the pickle module. Maybe it suits you?

R
Roman Mirilaczvili, 2020-10-16
@2ord

If the data is intended primarily for reading (program settings and the like), then the formats are:
XML, JSON, YaML, CSV.
And, in general, you don’t need to be afraid of SQLite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question