Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Wrapper for social network wrappers

Project Description

wrap2: Library for wrapping social network wrappers

The wrap2 package is a wrapper for various social networks wrappers. Various networks have different format for “posts”. Twitter is chosen as standard, so other networks posts are converted to be twitter-like.


pip install wrap2


from wrap2 import fbook
fb = fbook.Facebook('id', 'secret')

# get authorization url on Facebook
url, opts = fb.get_authorization_url('', scope=('read', 'write'))

# get access token and profile info
id, access_token, name, link = fb.on_authorization_callback(
    '', code='some code')

# Put a post on the wall of the user authorized by ``access_token``.
post =

from wrap2 import twitter
tw = twitter.Twitter('id', 'secret')

# get authorization url on Twitter
url, opts = tw.get_authorization_url('')

# get access token and profile info
id, (access_token_key, access_token_secret), name, link = tw.on_authorization_callback(
    oauth_verifier='some oauth verifier', request_token='some request token')

# Put an update status of the user authorized by ``access_token``.
post =


If you have questions, bug reports, suggestions, etc. please create an issue on the GitHub project page.


This software is licensed under the MIT license

See License

© 2013 Paylogic International.



  • Initial public release
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wrap2-0.9.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Apr 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting