Console Assistant is a python 3.x
-based command-line program that allows
you to manage your contacts and notes, sort files in a folder by category and delete file copies..
The assistant saves contacts and notes to the folder of the current user.
For example, in Windows
it's a folder C:\Users\<User>\
with names
-
contacts.bin
-
notes.bin
respectively.
- Clone repository
https://github.com/sergiokapone/project-team-9_console_helper.git
- Create virtual environment in folder contains
setup.py
, in command line type
python -m venv .venv
or
py -m venv .venv
-
Type
activate.cmd
in command line. -
To install a module in a virtual environment, type the
install.cmd
in console. -
To start the assistant, in console type:
assistant
The following packages are required to install the package:
prettytable==3.7.0
prompt-toolkit==3.0.0
Pygments==2.15.1
transliterate==1.10.2
Install requirements
pip install -r requirements.txt
help
: Displays a list of available commands and their descriptions.hello
: Greets the user.good bye
,close
,exit
: Exits the program with saving data..
: exits the program without messages with saving data.*
: exits the program without messages without saving data.
add contact
: Add a contact to the address book.set phone:
Allows the user to set their phone number.remove phone:
Removes the user phone number.set email
: Allows the user to set their email address.remove email:
Removes the user email.set address
: Allows the user to set their address.remove address:
Removes the user address.set birthday
: Allows the user to set their birthday.upcoming birthdays
: Shows the list of upcoming birthdays.show contacts
: Shows the list of saved contacts.show contact
: Shows the details of a specific contact.search contact
: Searches for a specific contact by name.remove contact
: Removes a contact from the list.change name
: Change name of contact.save
: save contacts to file.load
: load contacts from file.
currency
: Get Currency exchange.
sort folder
: Sort folder.
add note
: Adds a note.show notes
: Shows the list of saved notes.search notes
: Searches for a specific note by title or date.remove note
: Removes a note from the list.save notes
: Saves the notes to a file.load notes
: Loads the notes from a file.change note
: Edit note by index.remove tag
: Removes Tag for specified note index.
>>> sort folder D:\MyGarbage\
--- sort files in folderD:\MyGarbage\
To manage contacts in your address book, You can type commands by following examples:
>>> show contacts
--- shows table of contacts in address book.>>> show contacts 3
displaying contacts in chunks of3
items,20
is by default>>> add contact Username
--- add empty contactUsername
to the address book.>>> add contact Someone 03.05.1995 [email protected]
--- add contactSomeone
to the address book with date of birthday03.05.1995
and email[email protected]
1.>>> set phone Username 0935841245
--- add phone2 to contactUsername
in address book.>>> set birthday Username 12.12.1978
--- add birthday2 to contactUsername
in address book.>>> set email [email protected]
--- add email2[email protected]
to contactUsername
in address book.>>> upcoming birthdays 5
--- shows contacts with upcoming birthdays within5
days.>>> show contact Username
--- show contactUsername
information.>>> search contact SearchQuery
--- whereSearchQuery
some word or number for searching.>>> remove contact Username
--- remove contactUresname
>>> remove phone Username 1
--- remove user phone by index1
.>>> remove email Username 2
--- remove user email by index2
.>>> change contact Username Bobo
--- change contact nameUresname
to new nameBobo
.
To manage contacts in your address book, You can type commands by following examples:
>>> show notes
--- just show all notes.>>> show notes Rec
--- show all notes with tagRec
.>>> show notes 3
--- displaying notes in chunks of3
items.>>> add note Tag Text of your note
--- add note withTag
3 and textText of your note
.>>> add tag 1 Mytag
--- add tagMytag
4 to note with index1
.>>> remove tag 4 Tag
--- removesTag
for note with index4
.>>> change note 1 New text
--- change note1
withNew text
.>>> remove note 2
--- remove note with index2
.
To exit the program just type following commands5:
>>> good bye
>>> close
>>> exit
Another possibility to exit without any messages is typing dot:
>>> .
Upon subsequent program entry, the data will be loaded automatically.
But if you type *
the application exit without saving your data:
>>> *
Footnotes
-
Order doesn't matter. ↩
-
If the contact is missing, it will be added automatically. ↩ ↩2 ↩3
-
When creating a note, you can assign only one single-word tag. You can add subsequent tags with
add tag
command. ↩ -
Tag cannot be a number. ↩
-
After executing the specified commands, the application will save your data automatically. ↩