gandalf-client - a client for gandalf¶
gandalf-client is a Python client for gandalf (https://github.com/tsuru/gandalf).
Github: https://github.com/rfloriano/gandalf-client
Getting Started¶
Installing gandalf-client is as simple as:
$ pip install gandalf-client
After you have it installed, let’s use the gandalf, then:
import requests
from gandalf.client import GandalfClient
gandalf = GandalfClient("localhost", 8001, requests.request)
gandalf.user_new('rfloriano', {'my-ssh-key': 'content-of-my-ssh-public-key'})