Metadata-Version: 1.0
Name: py-oauth2
Version: 0.0.2
Summary: A Python wrapper for the OAuth 2.0 specification.
Home-page: https://github.com/liluo/py-oauth2
Author: liluo
Author-email: i@liluo.org
License: MIT License
Description: =========
        py-oauth2
        =========
        
        A Python wrapper for the OAuth 2.0 specification
        
        Installation
        ------------
        
        pip::
            
            pip install py-oauth2
        
        
        easy_install::
        
            easy_install py-oauth2
        
        Usage Examples
        --------------
        
        Get access_token::
        
        
            from oauth2 import Client
        
            KEY = ''
            SECRET = ''
            CALLBACK = ''
        
            client = Client(KEY, SECRET, 
                            site='https://api.douban.com', 
                            authorize_url='https://www.douban.com/service/auth2/auth',
                            token_url='https://www.douban.com/service/auth2/token')
        
            authorize_url = client.auth_code.authorize_url(redirect_uri=CALLBACK, scope='shuo_basic_w,douban_basic_common')
        
            access_token = client.auth_code.get_token(code, redirect_uri=CALLBACK)
        
        
        Get data::
        
            ret = access_token.get('/people/%40me', alt='json')
            print ret.parsed
        
        Upload image::
        
            ret = access_token.post('/shuo/statuses/', text='content from py-oauth2', files={ 'image': open('/path/pic.jpg')})
            print ret.parsed
        
        
        More:
        
        `Examples <https://github.com/liluo/py-oauth2/wiki>`_
        
        
        Submitting a Pull Request
        -------------------------
        * Fork the repository.
        * Create a topic branch.
        * Implement your feature or bug fix.
        * Add, commit, and push your changes.
        * Submit a pull request.
        
Keywords: Python,OAuth,OAuth2,Douban,GitHub,Weibo
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
