Skip to main content

App.net API library for python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adnpy-0.3.8.tar.gz (12.4 kB view details)

Uploaded Source

File details

Details for the file adnpy-0.3.8.tar.gz.

File metadata

  • Download URL: adnpy-0.3.8.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for adnpy-0.3.8.tar.gz
Algorithm Hash digest
SHA256 bfa43850322a83b1a8af7c7d390eb4e4197c2459babcb9fa2d1d58cd87aed268
MD5 d508a4d9f2c18d128b966d07efbb3ce7
BLAKE2b-256 df0416639abe297e3246cab4dea9e64fbd7487d678319731bccbcbeae86c3638

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page