Skip to main content API library for python

Project description

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


To install Requests, simply:

$ pip install adnpy


Documentation is available at

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 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.

Files for adnpy, version 0.3.8
Filename, size File type Python version Upload date Hashes
Filename, size adnpy-0.3.8.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page