Skip to main content

Package provides a simple CLI tool to be used as a personal assistant

Project description

Address Book Bot

Description

This bot is designed for managing contacts and birthdays in an address book. It supports a set of commands for creating, modifying, and viewing contacts and birthdays.

Installation

1.Ensure you have Python 3.6 or higher installed. 2.Install the necessary dependencies if any (e.g., if using prompt_toolkit):

pip install prompt_toolkit

Running the Bot

To run the bot, use the following command: python main.py

Commands

Here is a list of available commands and their descriptions:

  • help: Prints a list of available commands.
  • hello: Prints a greeting message.
  • add [name] [phone number]: Creates a new contact with the specified phone number.
  • change [name] [phone number]: Changes the phone number of an existing contact.
  • phone [name]: Prints the phone number of the specified contact.
  • all: Prints all contacts.
  • add-birthday [name] [birthday]: Adds a birthday to the specified contact.
  • show-birthday [name]: Prints the birthday of the specified contact.
  • birthdays: Prints all birthdays.
  • close or exit: Terminates the program.

Usage Examples

  • To add a new contact:

add John 123-456-7890

  • To change a contact's phone number:

change John 987-654-3210

  • To view a contact's phone number:

phone John

  • To add a birthday to a contact:

add-birthday John 1990-01-01

  • To view a contact's birthday:

show-birthday John

  • To exit the program:

close exit

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

taipan_assistant-1.0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file taipan_assistant-1.0.1.tar.gz.

File metadata

  • Download URL: taipan_assistant-1.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for taipan_assistant-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2f31169f2c3c368c1e84883c684ed62cc55f90a85fb88200a03466e814a8019e
MD5 666e95d40e13194cb0d5cf6289a82273
BLAKE2b-256 7551a48407045ed27e6b7899c186eab0289c7fa456b02193027b979012264439

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