basic info
descriptionMegaplan API client
owner"Justin Forest <hex@umonkey.net>"
last changeMon, 11 Nov 2013 13:30:13 +0400
description

Python bindings for the megaplan.ru API

This module provides a class that implements Megaplan authentication and request signing and lets you call API methods.

To use a password:

import megaplan
c = megaplan.Client('xyz.megaplan.ru')
c.authenticate(login, password)

To use tokens:

import megaplan
# access_id, secret_key = c.authenticate(login, password)
c = megaplan.Client('xyz.megaplan.ru', access_id, secret_key)

To read the token from ~/.netrc:

import megaplan
c = megaplan.Client('xyz.megaplan.ru')

Example ~/.netrc entry:

machine xyz.megaplan.ru
login NNNNNNNNNNNNNNNNNNNN
password NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN

To list actual tasks:

res = c.request('BumsTaskApiV01/Task/list.api', { 'Status': 'actual' })
for task in res['tasks']:
    print task

License

Gnu GPL.

changes
Mon, 11 Nov 2013 13:30:13 +0400 Justin Forest Can now add tasks default tip
Wed, 19 Dec 2012 18:17:11 +0400 Justin Forest Added support for ~/.netrc
Wed, 12 Dec 2012 01:25:20 +0400 Justin Forest Updated package description
Tue, 11 Dec 2012 01:21:09 +0400 Justin Forest Added tag release-1.0 for changeset 194d67a6839b
Tue, 11 Dec 2012 01:18:51 +0400 Justin Forest Fixed problems with Unicode credentials
Tue, 11 Dec 2012 00:12:25 +0400 Justin Forest Releasing through pypi release-1.0
Mon, 10 Dec 2012 23:57:31 +0400 Justin Forest Changed user agent to python-megaplan
Mon, 10 Dec 2012 23:57:05 +0400 Justin Forest Replaced simplejson with json
Fri, 10 Aug 2012 01:23:30 +0400 justin.forest merge
Fri, 06 Apr 2012 14:04:10 +0400 umonkey merge
...