LogMeIn API python client.
Example
from logmeinapi import client as logmein
# Using default configuration
client = logmein.Client()
# Using specific endpoint
client = logmein.Client(endpoint='toto')
Credentials are fetched from, in priority order:
- ./logmein.conf (script directory)
- $HOME/.logmein.conf
- /etc/logmein.conf
Example
[default]
; general configuration: default endpoint
endpoint=account
[account1]
; configuration specific to 'account1' endpoint
companyId=1234
psk=abcde
[account2]
; other configuration
companyId=4321
psk=abcde
Testing is set up using pytest and coverage is handled with the pytest-cov plugin.
Run your tests with py.test
in the root directory.
Coverage is ran by default and is set in the pytest.ini
file.
To see an html output of coverage open htmlcov/index.html
after running the tests.
TODO
There is a .travis.yml
file that is set up to run your tests for python 2.7
and python 3.2, should you choose to use it.
TODO