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.2.tar.gz (10.4 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.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dragon_bot-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 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.2.tar.gz
Algorithm Hash digest
SHA256 ac70006614e22887de6092a7d13b207b3c99b5595bb75703ac0bceba791480b4
MD5 8e6780776d04c3fe91373f61e54b032d
BLAKE2b-256 745a5d83975a5713530aa87435fc206811ec51058485d43fe10c594e070a2904

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dragon_bot-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 200a6fd1f7e25b4e0e8de42371d3f99c609d09f96ed49a86b65535d239e2e6a9
MD5 b343613b05ebb5573091e5197f4189ca
BLAKE2b-256 59500a21e6b43dc974c187e3c6a12d1d879c004a46015b4ef2a44b3aa250f48c

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