Skip to main content

The Personal Assistant Bot

Project description

dragon_bot - The Personal Assistant Bot

Installation

The dragonbot can be installed using pip.

pip install dragon-bot

Description

The Personal Assistant Bot can:

  1. Save contacts with names, addresses, phone numbers, emails and birthdays to the contact book.
  2. Display a list of contacts whose birthday is a specified number of days from the current date.
  3. Check the correctness of the entered phone number and email when creating or editing an entry and notify the user in case of incorrect entry.
  4. Search for contacts among the book's contacts.
  5. Edit and delete entries from the contact book.
  6. Save notes with text information.
  7. Search for notes
  8. Edit and delete notes.
  9. Add "tags" to your notes, keywords that describe the topic and subject of the entry.
  10. Search and sort notes by keywords (tags).

Usage

Start using the assistant by simply entering a console command

dragon-bot

You will see a prompt

Enter command:

The following commands will be available to you:

  1. Add a contact

    add-contact <name> <phone>

  2. Edit the name in the contact

    edit-name <old_name> <new_name>

  3. Add another phone number to the contact

    add-phone <name> <phone>

  4. Add or change email to the contact

    set-email <name> <email>

  5. Add or change birthday to the contact

    set-birthday <name> <DD.MM.YYYY>

  6. Display the contact list on the screen

    all-contacts

  7. Find a contact by name

    find-contact <name>

  8. Display a list of contacts whose birthday is a specified number of days away from the current date

    birthdays <number_of_days>

  9. Delete contact's phone

    del-phone <name> <phone>

  10. Delete contact's email

    del-email <name>

  11. Delete contact's birthday

    del-birthday <name>

  12. Delete a contact

    del-contact <name>

  13. Add or change address to the contact

    set-address <name> <address

  14. Delete an address from the contact

    del-address <name>

  15. Add a note

    add-note <Any_note_in_quotation_marks>

  16. Edit a note

    edit-note <note_id> <Any_note_in_quotation_marks>

  17. Display the note list on the screen

    all-notes

  18. Add another a tag to the note

    add-tag <note_id> <tag>

  19. Delete a tag from the note

    del_tag <note_id> <tag>

  20. Display the sorted note list by tags

    sort-notes

  21. Delete a note

    del-note <note_id>

  22. Display the note list on the screen by a tag

    find-notes-by-tag <tag>

  23. Display the note list on the screen by a keyword

    find-notes-by-keyword <keyword>

  24. Get help about the bot commands

    help

  25. Exit from program

    exit quit

Demo Contacts

The project includes sample contacts that allow you to immediately test the bot's functionality.

The example data is located in:

example/dragon_bot_data/*.pkl

How to use:

Clone the repository:

git clone

Navigate to the project folder

Copy the folder dragon_bot_data from the example directory to your home directory.

You can do it in two ways:

Option 1 — manually

Copy the folder dragon_bot_data from example and paste it into your home directory.

Option 2 — using a command

cp -r example/dragon_bot_data ~/

After copying, the structure in your home folder should look like this:

~/dragon_bot_data/*.pkl

Run the bot:

python main.py

After starting the bot, the sample contacts from contacts.pkl and notes from notes.pkl will be loaded automatically, so you can immediately test contact and note management commands.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dragon_bot-0.1.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dragon_bot-0.1.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file dragon_bot-0.1.3.tar.gz.

File metadata

  • Download URL: dragon_bot-0.1.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for dragon_bot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 87bfb4c6b0459c461c8bc0064d7c044e5672b87ced46f1a12a7549ffc916d954
MD5 b4f407174dcb7c87648c942a774de380
BLAKE2b-256 2ab7834a6e7b412033a04d2be0902025d02c9f415ec27541bfae9ed80886e025

See more details on using hashes here.

File details

Details for the file dragon_bot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dragon_bot-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for dragon_bot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c416e896630f5087ea1592307e341a8746f01c2a271d4c39d086635c7c1a5a71
MD5 fb6b89d594da01bf14ca5fc76fc3d605
BLAKE2b-256 18b1e27eb3e9913894b99e3f1213934a07454addf2f035072d0ebff282847d5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page