Answer the question
In order to leave comments, you need to log in
How to make a database in Python for a local program?
Good afternoon!
I don't have much experience, so the question may be simple.
I am writing a program in python that should use information and store it in a database. But I have never encountered this and I do not know how to approach this problem.
What is the best module to use? And if you also tell me where to study it, I will be very grateful.
Thank you!
Answer the question
In order to leave comments, you need to log in
Try the sqlite3 module.
It is included in the standard library, so you don't even need to install anything.
Just at the beginning of the file:
import sqlite3
Here you can read more: https://m.habr.com/ru/post/321510/
For simple programs: sqlite3
For servers, bots: MySQL on phpmyadmin, python module: pymysql
If you need to store a HUGE amount of data, then maybe you really should use sqlite3 , but still, if you need to store small data, then it will be much easier for you to use json , on which there is already a lot of information especially for you:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question