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
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 | RSS feed
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 details)
File details
Details for the file folks-0.1.0.tar.gz
.
File metadata
- Download URL: folks-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79cdd5b1f5dfeb51d07d7ed219140727b00c5f50d6e839b878fa37bb9fe1937d |
|
MD5 | 6c8fe7e392eae9b7950ec34771bfb065 |
|
BLAKE2b-256 | ad3e2f571b24e733ffa4c368216816e72010803f24212e15e416389cf4707b55 |