phi/README.md

31 lines
559 B
Markdown
Raw Normal View History

2017-12-16 23:03:03 +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)
>>>
>>> from phi.ldap.connection import open_connection
>>> open_connection(ldap_client.connection)
>>>
>>> from phi.ldap.commands import whoami
>>> whoami(client)
```