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
setup.py
main.py
setup.py
: Contains code for setting up database and creating tables. By default, it generates a data.db
in the same folder level as setup.py
crud.py
: Contains code for all CREATE
,READ
,UPDATE
and DELETE
functions needed for the database.
.venv
: Python virtual environment for running code in systems without Python
preinstalled. [REMOVED]
data.db
: Database where all user and blog related data are stored. Has 2 tables uesrs
and blogs
main.py
: The main file of blogCLI
. Run setup.py
atleast 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.
bcrypt
for password encryption - (pip install bcrypt)sqlite3
for database management and operations (installed in Python by default)getpass
for secure password input (installed in Python by default)