A beginner-friendly Python project to store, backup ποΈ, and restore β»οΈ user and transaction data using SQLite. Perfect for demos, internships, and learning real-world development!
- π€ Store user data and transactions with SQLite
- π‘οΈ Prevent duplicatesβunique emails enforced
- β‘ One-command backup and restore
- π§© Modular folder structure and maintainable code
- βοΈ Runs on any OS with Python installed
data_persistent_project/ βββ database/ β βββ init.py β βββ models.py β βββ database.py βββ backups/ βββ main.py βββ requirements.txt βββ README.md
git clone https://github.com/NChoudhary/data_persistent_project.git cd data_persistent_project
python -m venv venv
On Windows venv\Scripts\activate
On Linux/macOS source venv/bin/activate
python main.py
database/models.pyβ Table schemas for users & transactions πdatabase/database.pyβ All database functions, backup/restore ποΈmain.pyβ Main script with sample inserts and backups π₯οΈbackups/β Automatically saved database backups β³
User with email alice@example.com already exists. User with email bob@example.com already exists. [(1, 250.5, '2025-10-18'), (2, 99.99, '2025-10-18')] Backup created: backups/company_data_backup_YYYYMMDD_HHMMSS.db
Pull requests are welcome! For major changes, open an issue first to discuss improvements.
MIT
β Star this repository if it helped you or you found it useful!