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


Download files

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

Source Distribution

folks-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page