Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Podio Python client
Python
Branch: master

Merge pull request #34 from andrecp/master

Updated the encode library and added methods to file and embed
latest commit 673fa8c732
@jalvz jalvz authored
Failed to load latest commit information.
dist Adding dist..
pypodio2 Updating the poster library. File.create had a bug in the underlying …
tests Adding the item value endpoints and related tests. Also removed the d…
.gitignore Remove prev/next item pagination.
LICENSE Adding license
README.md Fixed typo in README.md, where Item was referred to as Items.
example.py
setup.py Requested changes.
tox.ini Setup 2to3 compilation and tests with tox.

README.md

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/podio/podio-py.git
$ cp -r podio-py/pypodio2 path/to/destination

Alternatively, install via pip:

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

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

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

Something went wrong with that request. Please try again.