Post-Human Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
uid d90151ce25
Handle user already in group
3 years ago
openldap Add to groups 3 years ago
src Handle user already in group 3 years ago
test Hash password 3 years ago
.gitignore Add vim and emacs swap files to .gitignore 5 years ago
Pipfile Addedd pipenv helper files. 4 years ago
Pipfile.lock Addedd pipenv helper files. 4 years ago Update readme 3 years ago
config.yml Lower log level 3 years ago
setup.cfg Adjust for flake8 5 years ago Begin phicli 3 years ago


Post-Human Interface.

APIs for the Unit hacklab.



  • Python >= 3.5

Create a virtual environment and activate it (optional):

virtualenv --python=/usr/bin/python3 env
source env/bin/activate

Run the setup:

python install


In the ldap section of config.yml change host, port and password according to your setup.

Command Line

usage: phicli [-h] [--config config.yml]
              {showuser,adduser,deluser,showgroup,listgroups,addtogroup} ...

optional arguments:
  -h, --help            show this help message and exit
  --config config.yml   custom configuration file

    showuser            dispaly user fields
    adduser             add a new user
    deluser             delete an user
    showgroup           show a group
    listgroups          list all groups
    addtogroup          add an user to a group
phicli showuser [-h] user_id
phicli adduser [-h] user_id
phicli deluser [-h] user_id

phicli showgroup [-h] common_name
phicli listgroups [-h]
phicli addtogroup [-h] user_id group_common_name