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.4.tar.gz (10.9 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.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dragon_bot-0.1.4.tar.gz
  • Upload date:
  • Size: 10.9 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.4.tar.gz
Algorithm Hash digest
SHA256 accbf85e1e3e40ea75f60ad51f3d5460ec4dc4c65ff42effa06abb6d9ef84ac1
MD5 b94f06c1a0afc456db2a42d829c64f71
BLAKE2b-256 10785b3f257b55394b3827bb21fb37a42d5c2d6dfc5093c813ce13026c85ba2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dragon_bot-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8affee905a43d18a187a335e6a22f61533f2c8fa77e765516ed6cecb656143
MD5 57254ef4b5955724659c12b7c2cbda3f
BLAKE2b-256 d48929164eb90235c153bd719ced9df26466a40921fa95de772507e5b2f22973

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