Post-Human Interface
Go to file
2017-12-17 10:51:25 +01:00
openldap Use unprivileged user 2017-12-17 10:51:25 +01:00
src Make LDAP connection thread safe 2017-12-17 10:33:25 +01:00
test Import 2017-12-16 23:17:01 +01:00
.gitignore Add vim and emacs swap files to .gitignore 2017-12-17 10:30:28 +01:00
config.yml Use unprivileged user 2017-12-17 10:51:25 +01:00
README.md Make LDAP connection thread safe 2017-12-17 10:33:25 +01:00
setup.py Import 2017-12-16 23:17:01 +01:00

Phi

Post-Human Interface.

APIs for the Unit hacklab.

Installation

Requirements:

  • Python >= 3.4

Create a new virtualenv and run pip install . inside of it.

LDAP client example

>>> from phi.config import get_config
>>> config_file, config = get_config()
>>> ldap_config = config['ldap']
>>>
>>> from phi.ldap.client import Client
>>> ldap_client = Client(**ldap_config)
>>> ldap_client.open()
>>>
>>> from phi.ldap.commands import whoami
>>> whoami(client)
>>>
>>> ldap_client.close()