Skip to content

tawfiq9009/bottle-tweepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bottle-tweepy

Installation

Install with the following commands:

$ pip install bottle-tweepy 

or download the latest version from github:

  $ git clone https://github.com/tawfiq9009/bottle-tweepy
  $ cd bottle-tweepy
  $ python setup.py install

Usage

Once installed to an application, the plugin passes an open :class:tweepy.API instance to all routes that require a api keyword argument:

import bottle
from bottle_tweepy import TweepyPlugin

app = bottle.Bottle()
plugin = TweepyPlugin(consumer_key, consumer_secret, access_token, access_token_secret)
app.install(plugin)

@app.route('/screen/:username')
def screen_name(username, api):
   user = api.get_user(username)
   return user.screen_name

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages