Skip to main content

Manage contacts via CLI

Project description

folks.py [id] [property] [property=value]

A simple CLI address book with backend stored in an .ini-file
(default ~/folks.ini).

USAGE
folks is intented to be grep-, sed-, columns-, cut- and awk-friendly:

# list all id's
./folks.py
# output:
sven
rocker
nisse

# list properties of given id
./folks.py sven
# output:
name:Sven Larsson
tele:+4670677151
email:sven@larsson.com

# get some options of an id
./folks.py martin | grep phone | cut -d: -f2 # output: +46462462446
# shortcut, if you don't like grep:
./folks.py sven tele
# output:
+4670677151

# sets properties
./folks.py sven tel=325236266 email=sven@email.com

# search (and limit output to certain properties if you want to)
./folks.py --footballers=1 tele
# output:
sven:tele:0703453455
martin:tele:070143151

If you need more import channels than stdin, edit the text file. I'm
just a frontend.

PROPERTIES

You are yourself responsible for what a "property" is, for example
"tel" vs "tele" vs "telephone". If you want to consolidate the format:

sed -i -e 's/^tele /tel /' your-file.ini

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for folks, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size folks-0.1.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page