Git Product home page Git Product logo

goit-pycore-hw-08's Introduction

goit-pycore-hw-08

Topic 12: Homework. Serializing and copying objects in Python

Description

Console bot for saving contacts and birthdays

Usage

To run the bot use main.py

The bot support the following commands:

  1. add [name] [phone]: Add either a new contact with a name and phone number or a phone number to an existing contact. You can add multiple phone numbers.
  2. change [name] [old phone] [new phone]: Change the phone number for the specified contact.
  3. phone [name]: Show the phone numbers for the specified contact.
  4. all: Show all contacts in the address book.
  5. add-birthday [name] [date of birth]: Add the date of birth for the specified contact.
  6. show-birthday [name]: Show the date of birth for the specified contact.
  7. birthdays: Show the birthdays that are coming up in the next week.
  8. hello: Send a greeting from the bot.
  9. close or exit: Close the program.

Example Usage

Here are some example commands and their outputs:

Welcome to the assistant bot!
Enter a command >>> hello
How can I help you?

Enter a command >>> add John 1234567890
New contact with name John added. Phone 1234567890 added.

Enter a command >>> phone John
1234567890

Enter a command >>> add-birthday John 1990-05-23
Birthday for John added

Enter a command >>> show-birthday John
1990-05-23

Enter a command >>> birthdays
Name                 Celebration Day
-----------------------------------
John                 2024.05.23     

Enter a command >>> exit
Good bye!

goit-pycore-hw-08's People

Contributors

yevhenmazur avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.