Skip to content

mykola-rigpa-ds/area_51_assistant_x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 

Repository files navigation

Address Book Assistant

A simple console-based address book assistant. Manage your contacts with functionalities like creating, editing, searching, and deleting entries, as well as storing notes, birthdays, addresses, and emails.

Features

  • Contact Management: Add, delete, and modify contact information.
  • Birthday Alerts: Check for upcoming birthdays within a specified period.
  • Notes: Attach notes to contacts for additional information.
  • Persistence: Save and load contact information using pickle for data persistence.

Contact Management:

  • Add new contacts
  • Modify contact name and phone number
  • Delete contacts

Birthdays:

  • Add birthdate information to contacts
  • View upcoming birthdays within a specified period

Notes:

  • Attach notes to contacts
  • Edit existing notes
  • Delete notes

Addresses and Emails:

  • Store a contact's address
  • Store a contact's email address

Search:

  • Find contacts by name or phone number

Installation

Ensure you have Python 3.x installed on your system. Open in the terminal, directory containing setup.py Run command:

pip install -e .

Usage

To use the Address Book Assistant, run the script in your terminal or command prompt:

assistant_x

Commands

  • add <name> <phone> - Add a new contact
  • change-numer <name> <new_phone> - Change a contact's phone number
  • find <query> - Search for a contact by name or phone number
  • all - Display all contacts
  • add-birthday <name> <DD.MM.YYYY> - Add a contact's birthdate
  • show-birthday <name> - Show a contact's birthdate
  • birthdays-in-period <days> - Show birthdays within the specified period
  • add-address <name> <address> - Add an address for a contact
  • add-email <name> <email> - Add an email address for a contact
  • change-email <name> <new_email> - Modify an email address
  • change-address <name> <new_address> - Modify an address
  • show-email <name> - Show an email address
  • show-address <name> - Show an address
  • delete-contact <name> - Delete a contact
  • add-note <note> - Add a note to a contact
  • edit-note <name> <note_index> <new_note> - Edit a contact's note
  • note <name> - Show all notes for a contact
  • delete-note <name> <index> - Delete a note
  • help - Show the list of commands
  • close or exit - Exit the program

Example

To add a new contact:

add John 1234567890

To change a phone number for an existing contact:

change John 0987654321

To add a birthday to a contact:

add-birthday John 01.01.1990

Data Persistence

The application automatically saves your address book data to a file named ab_data.bin in the user's home directory. The data is loaded from this file when the application starts.

Contributing

Feel free to fork the repository and submit pull requests to contribute to the development of the Address Book Assistant.

About

Interactive console assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages