Commit 3459ba22 authored by Maxime Bombar's avatar Maxime Bombar

Initial commit

parent 8ecc69fd
[Re2o]
hostname = re2o.example.net
username = my_api_username
password = my_api_password
from configparser import ConfigParser
import socket
from re2oapi import Re2oAPIClient
config = ConfigParser()
config.read('config.ini')
api_hostname = config.get('Re2o', 'hostname')
api_password = config.get('Re2o', 'password')
api_username = config.get('Re2o', 'username')
api_client = Re2oAPIClient(api_hostname, api_username, api_password)
client_hostname = socket.gethostname().split('.', 1)[0]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment