Skip to content
 
 

Latest commit

 

History

118 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Maintenance Intended

PyPodio

Python wrapper for the Podio API.

Install

Dependencies

  • httplib2

PyPodio is not yet available on PyPI, we're waiting to have it a bit more stable. Install by cloning from the GitHub repo:

$ git clone git://github.com/gbvsilva/podio-py.git
$ cp -r podio-py/pypodio2 path/to/destination

Alternatively, install via pip:

$ pip install -e git+https://github.com/gbvsilva/podio-py.git#egg=pypodio2

Example

from pypodio2 import api
from client_settings import *

c = api.OAuthClient(
    client_id,
    client_secret,
    username,
    password,    
)
print c.Item.find(22342)

Notes

It is possible to override the default response handler by passing handler as a keyword argument to a transport function call. For example:

x = lambda x,y: (x,y)
result = c.Item.find(11007, basic=True, handler=x)
($result, $data) #Returned info

Modified from original files:

  • pypodio2/areas.py: lines 301 and 306, method 'get' to 'GET'

Tests

To run tests for the API wrapper, you need two additional dependencies:

  • mock
  • nose

With those installed, run nosetests from the repository's root directory.

Meta

About

Podio Python client

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages