skip to navigation
skip to content

Not Logged In

adnpy 0.3.1

App.net API library for python

Latest Version: 0.3.7

https://badge.fury.io/py/adnpy.png https://travis-ci.org/appdotnet/ADNpy.png?branch=master

ADNpy aims to be an easy-to-use Python library for interacting with the App.net API.

Installation

To install Requests, simply:

$ pip install adnpy

Documentation

Documentation is available at http://adnpy.readthedocs.org/.

Quick Start

In order to use ADNpy, You'll to need an access token. If you don't already have one, first create an app, and then generate an access token for your app.

import adnpy
adnpy.api.add_authorization_token(<Access Token Here>)

# Create a post
post, meta = adnpy.api.create_post(data={'text':'Hello App.net from adnpy!'})

# Take a look at recent checkins
posts, meta = adnpy.api.get_explore_stream('checkins')
for post in posts:
  print post

# You can even paginate through checkins using the cursor method.
# Cursors will obey rate limits (by blocking until retries are
# permitted), and will allow you to page through the entire stream.
for post in adnpy.cursor(adnpy.api.get_explore_stream, 'checkins'):
    print post
 
File Type Py Version Uploaded on Size
adnpy-0.3.1.tar.gz (md5) Source 2014-01-30 11KB
  • Downloads (All Versions):
  • 206 downloads in the last day
  • 1169 downloads in the last week
  • 3553 downloads in the last month