- This is a Python command line application.
- This application is used to add, find, update, and delete your bookmark.
- Open Postgres in your terminal.
psql - Create a new database with name of bookmark.
create database bookmark - Open
main.pyfile with the editor you like, and change the user and password to be yoursdb=PostgresqlDatabase( 'bookmark', user='yours', password='yours', host='localhost', port=5432 )
- Clone this repo and change into the new directory.
- Use pipenv shell.
pipenv shell - Install all the dependencies.
pipenv install
In python-bookmark directory
-
add: you can add new bookmark with this command
python main.py addexample:
(python-bookmark) bash-3.2$ python main.py add Enter the tilte of the bookmark: YouTube Enter the link of the bookmark: https://www.youtube.com/ YouTube: https://www.youtube.com/ added -
find: you can find a bookmark you have added with this command
python main.py findexample:
(python-bookmark) bash-3.2$ python main.py find Enter the bookmark title that you want to look for: YouTube ['YouTube: https://www.youtube.com/'] -
find_all: you can find all bookmarks you have added with this command
python main.py find_allexample:
(python-bookmark) bash-3.2$ python main.py find_all ['YouTube: https://www.youtube.com/'] -
update: you can update one bookmark you have added with this command
python main.py updateexample:
(python-bookmark) bash-3.2$ python main.py update Enter the title of the boonkmark you want to update: YouTube Enter the new title of the boonkmark you want to update: MeTube Enter the new link of the boonkmark you want to update: https://www.metube.com/ updated to MeTube: https://www.metube.com/ -
delete: you can delete one bookmark you have added with this command
python main.py deleteexample:
(python-bookmark) bash-3.2$ python main.py delete Enter the title of the boonkmark you want to delete: MeTube MeTube deleted