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:
- Save contacts with names, addresses, phone numbers, emails and birthdays to the contact book.
- Display a list of contacts whose birthday is a specified number of days from the current date.
- 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.
- Search for contacts among the book's contacts.
- Edit and delete entries from the contact book.
- Save notes with text information.
- Search for notes
- Edit and delete notes.
- Add "tags" to your notes, keywords that describe the topic and subject of the entry.
- 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:
-
Add a contact
add-contact <name> <phone> -
Add another phone number to the contact
add-phone <name> <phone> -
Add or change email to the contact
set-email <name> <email> -
Add or change birthday to the contact
set-birthday <name> <DD.MM.YYYY> -
Display the contact list on the screen
all-contacts -
Find a contact by name
find-contact <name> -
Display a list of contacts whose birthday is a specified number of days away from the current date
birthdays <number_of_days> -
Delete contact's phone
del-phone <name> <phone> -
Delete contact's email
del-email <name> -
Delete contact's birthday
del-birthday <name> -
Delete a contact
del-contact <name> -
Add a note
add-note <Any_note_in_quotation_marks> -
Display the note list on the screen
all-notes -
Add another a tag to the note
add-tag <note_id> <tag> -
Delete a note
del-note <note_id> -
Display the note list on the screen by a tag
find-notes <tag> -
Get help about the bot commands
help -
Exit from program
exitquit
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c0089f17001673820491406aa78e16651000d880345bd4cfc9ce3b4dd8b89e5
|
|
| MD5 |
a7e197a873d25a88e9264e05d5038567
|
|
| BLAKE2b-256 |
81ec79a35dac5c16fed686ecb1913c34712c6950c73c92907c848e46cc5d0d51
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b41f4e21fe9e33b31cff5078328fd9670271a9c2ae96c3e54d0bd85b8bd3c4f
|
|
| MD5 |
c02bfa4841b69f33c9e0d25fab62b786
|
|
| BLAKE2b-256 |
f6c6913565d46a1061a3abb153926d2066c8f5e21d58a55a6f76cd4fe0275556
|