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 dragonbot

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

dragonbot

You will see a prompt

Enter command:

The following commands will be available to you:

  1. Add a contact

    add-contact <name> <phone>

  2. Add another phone number to the contact

    add-phone <name> <phone>

  3. Add or change email to the contact

    set-email <name> <email>

  4. Add or change birthday to the contact

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

  5. Display the contact list on the screen

    all-contacts

  6. Find a contact by name

    find-contact <name>

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

    birthdays <number_of_days>

  8. Delete contact's phone

    del-phone <name> <phone>

  9. Delete contact's email

    del-email <name>

  10. Delete contact's birthday

    del-birthday <name>

  11. Delete a contact

    del-contact <name>

  12. Add a note

    add-note <Any_note_in_quotation_marks>

  13. Display the note list on the screen

    all-notes

  14. Add another a tag to the note

    add-tag <note_id> <tag>

  15. Delete a note

    del-note <note_id>

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

    find-notes <tag>

  17. Get help about the bot commands

    help

  18. 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.1.tar.gz (10.3 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.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dragon_bot-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 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.1.tar.gz
Algorithm Hash digest
SHA256 2c0089f17001673820491406aa78e16651000d880345bd4cfc9ce3b4dd8b89e5
MD5 a7e197a873d25a88e9264e05d5038567
BLAKE2b-256 81ec79a35dac5c16fed686ecb1913c34712c6950c73c92907c848e46cc5d0d51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dragon_bot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b41f4e21fe9e33b31cff5078328fd9670271a9c2ae96c3e54d0bd85b8bd3c4f
MD5 c02bfa4841b69f33c9e0d25fab62b786
BLAKE2b-256 f6c6913565d46a1061a3abb153926d2066c8f5e21d58a55a6f76cd4fe0275556

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