This Python project implements a simple personal diary application using a SQLite database. Users can create accounts, write diary entries, and view or delete their entries.
• User accounts with usernames and passwords (unique usernames enforced).
• Creation, viewing, searching by title, and deletion of diary entries.
• Timestamped diary entries (creation date).
• Personalized greetings based on the time of day.
• Python 3
• SQLAlchemy (for database interaction)
• SQLite (for data storage)
Install Dependencies: You'll need to have sqlalchemy installed. You can install it using pip:
pip install sqlalchemy
pipenv install
pipenv shell
Run the Application: Open a terminal in the project directory and run:
python cli.py
The application provides a text-based interface for user interaction. You'll be presented with a menu of options:
• Create an account (allows you to sign up for a new account)
• Login (lets you log in with an existing username and password)
• Exit (terminates the program)
• Create a diary entry
• View all diary entries
• Find a diary entry by title
• Delete a diary entry
• Logout
This is a basic implementation and currently stores passwords in plain text. This application will not allow the user to access the account without putting in the correct password.
• Implement data validation for user input.
• Add features like image or file attachment to diary entries.
• Implement functionalities for exporting or backing up diary entries.