semvec/pypi-packages huggingface dataset:
pybd-oauth 1.0.3
Baidu XiongZhang Oauth Module for Python.
Keywords: Baidu XiongZhang Oauth Oauth2

==========
pybd-oauth
==========

Baidu XiongZhang Oauth Module for Python.

Installation
============

::

    pip install pybd-oauth


Usage
=====

::

    from pybd_oauth import get_access_info, get_oauth_code_url, get_userinfo, get_component_access_info, get_component_oauth_code_url, get_component_userinfo, get_oauth_redirect_url


Method
======

::

    def get_oauth_code_url(self, appid=None, redirect_uri=None, scope='snsapi_base', redirect_url=None, component=False, component_appid=None):

    def get_access_info(self, appid=None, secret=None, code=None, component=False, component_appid=None, component_access_token=None):

    def get_userinfo(self, access_token=None, openid=None, component=False):

    def get_component_oauth_code_url(self, appid=None, redirect_uri=None, scope='snsapi_base', redirect_url=None, component_appid=None):

    def get_component_access_info(self, appid=None, code=None, component_appid=None, component_access_token=None):

    def get_component_userinfo(self, access_token=None, openid=None):

    def get_oauth_redirect_url(self, oauth_uri, scope='snsapi_base', redirect_url=None, default_url=None, direct_redirect=None, random_str=True):
pybd-base 1.0.2
Baidu XiongZhang Base Class for Python.
Keywords: Baidu XiongZhang Base Class

=========
pybd-base
=========

Baidu XiongZhang Base Class for Python.

Installation
============

::

    pip install pybd-base


Usage
=====

::

    In [1]: from pybd-base import BaseBaidu

    In [7]: class XXX(BaseBaidu):
       ...:     pass
       ...:

    In [3]: xxx = XXX()

    In [4]: xxx.OPENAPI
    Out[4]: 'https://openapi.baidu.com'

    In [6]: xxx._requests
    Out[6]: <bound method XXX._requests of <__main__.XXX object at 0x7f9248260d10>>

    In [7]: