This repository contains practical examples developed in Python using the built-in
SQLite3 library. The goal is to teach how to connect, create, query, and manipulate
databases in a simple and clear way. 💻🛢️
The examples are especially designed for beginners who want to understand how to work with
local databases without the need to install complex systems.
✅ SQLite database connection
✅ Table creation
✅ Data insertion (CRUD)
✅ Queries and filters
✅ Safe connection closing
✅ Simple and easy-to-understand examples
SQLite3Python/
│
├── data/
│ └── database.db
│
├── src/ # main code
│ ├── crud.py
│ ├── delete.py
│ ├── insert.py
│ └── ...
│
├── README.md # Documentation
├── LICENSE
└── .gitignore
- Python 3.x
- SQLite3 (included by default in Python)
- DB Browser for SQLite (optional, to visualize the database)
Clone the repository:
git clone https://github.com/Bredalis/SQLite3Python.gitEnter the directory:
cd SQLite3PythonRun any Python file from the project:
python main.pyTo visualize the database:
- Open DB Browser for SQLite
- Load the
.dbfile from the repository
from crud import Crud
crud = Crud("../data/database.db", "report")
crud.insert_data(1, "Perla", "Mendoza", "15-9-1998")
crud.close_database()This project is licensed under GPLv3 (GNU General Public License v3.0)
Bredalis Gautreaux
😊 Programmer passionate about technology, artificial intelligence, and continuous learning. #python #sqlite #ai #nlp
If this repository helped you, consider giving it a ⭐ on GitHub.
