Skip to content

CITGuru/MyTact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyTact

A simple cli for managing contacts

Installation

Clone this github repo

$ git clone https://github.com/citguru/mytact
$ cd mytact

Create a virtualenv

$ mkvirtualenv mytactenv
$ workon mytactenv

Install Python Libraries

$ pip install -r requirements.txt

Or

$ pip install mytact

Usage

$ python mytact.py --help

Add

$ python mytact.py add

With arguments

$ python mytact.py add <firstname> <lastname> <email> <phone>

E.g

$ python mytact.py add Oyetoke Toby oyetoketoby80@gmail.com 08182315466

Update

$ python mytact.py update

or

$ python mytact.py update --id <ID>

E.g

$ python mytact.py update --id 8686

With options

$ python mytact.py update --id <ID> --firstname <firstname> --lastname <lastname>

E.g

$ python mytact.py update --id 8686 --firstname Oyetoke --lastname Toby

List

$ python mytact.py list

or

$ python mytact.py list <len:int>

E.g

$ python mytact.py list 2

Find

$ python mytact.py find

or

$ python mytact.py find <query>

E.g

$ python mytact.py find Toby

With options

$ python mytact.py find --firstname <firstname> 

E.g

$ python mytact.py find --firstname Oyetoke

Delete

$ python mytact.py delete

With options

$ python mytact.py delete --id <ID> 

E.g

$ python mytact.py delete --id 86800