Page MenuHomec4science

get_phid.py
No OneTemporary

File Metadata

Created
Fri, Nov 1, 00:43

get_phid.py

#!/usr/bin/env python2
import sys
from phabricator import Phabricator
arg = sys.argv[1:]
if len(arg) == 0:
print('''Usage:
%s <name> [<name>]
Examples:
./get_phid.py @username
./get_phid.py rPHCODE
./get_phid.py D29 D23 D15
''' % sys.argv[0])
sys.exit(0)
phab = Phabricator()
phids = phab.phid.lookup(names=arg)
for i in phids.items():
print('%s: %s' % (i[0], i[1]['phid']))

Event Timeline