blogCLI is a simple, command-line based blogsite.
It features secure user data storage with password encryption, and do all of the CRUD [Create, Read, Update, Delete] functionalities
- run
setup.py - then run
main.py
-
setup.py: Contains code for setting up database and creating tables. By default, it generates adata.dbin the same folder level assetup.py -
crud.py: Contains code for allCREATE,READ,UPDATEandDELETEfunctions needed for the database. -
.venv: Python virtual environment for running code in systems withoutPythonpreinstalled. [REMOVED] -
data.db: Database where all user and blog related data are stored. Has 2 tablesuesrsandblogs -
main.py: The main file ofblogCLI. Runsetup.pyatleast once before running this file.
NOTE : To ensure ease of understanding and reducing complexity, all data manipulating operations are done from crud.py. main.py is only responsible for calling necessary functions.
bcryptfor password encryption - (pip install bcrypt)sqlite3for database management and operations (installed in Python by default)getpassfor secure password input (installed in Python by default)