A simple contact book CLI built with Python and argparse. Week 2 warmup for Hack Club Resolution.
pip install --index-url https://test.pypi.org/simple/ reso-2warmup# Add a contact
contacts add "Suvam Pathak" [email protected]
# List all contacts
contacts list
# Remove a contact by ID
contacts remove 11$ contacts add "Suvam Aryal" [email protected]
Contact 'Suvam Aryal' added with ID 1.
$ contacts add "Niko" [email protected]
Contact 'Niko' added with ID 2.
$ contacts list
ID Name Email
---------------------------------------------
1 Suvam Pathak [email protected]
2 Niko [email protected]
$ contacts remove 1
Removed contact: Suvam Aryal (ID 1)
Aryal (ID 1)
| Command | Description |
|---|---|
add |
Add a new contact |
list |
List all saved contacts |
remove |
Remove a contact by ID |
- Python
- argparse