platypush/plugins/google/credentials.py
def main():
    """
    Generates a Google API credentials file given client secret JSON and scopes.
    Usage::

        python -m platypush.plugins.google.credentials [client_secret.json location] [comma-separated list of scopes]
    """

    scope = sys.argv.pop(1) if len(sys.argv) > 1 \
        else input('Space separated list of OAuth scopes: ')

    client_secret_path = os.path.expanduser(
        sys.argv.pop(1) if len(sys.argv) > 1
        else input('Google credentials JSON file location: '))

    # Uncomment to force headless (no browser spawned) authentication
    # sys.argv.append('--noauth_local_webserver')

    generate_credentials(client_secret_path, scope)

    Generates a Google API credentials file given client secret JSON and scopes.
    Usage::

        python -m platypush.plugins.google.credentials [client_secret.json location] [comma-separated list of scopes]
    
Generates a Google API credentials file given client secret JSON and scopes.
Usage:.


Generates a Google API credentials file given client secret JSON and scopes . Usage : .
def main():
    scope = sys.argv.pop(1) if len(sys.argv) > 1 \
        else input('Space separated list of OAuth scopes: ')
    client_secret_path = os.path.expanduser(
        sys.argv.pop(1) if len(sys.argv) > 1
        else input('Google credentials JSON file location: '))
    generate_credentials(client_secret_path, scope)
def main ( ) : scope = sys . argv . pop ( 1 ) if len ( sys . argv ) > 1 else input ( 'Space separated list of OAuth scopes: ' ) client_secret_path = os . path . expanduser ( sys . argv . pop ( 1 ) if len ( sys . argv ) > 1 else input ( 'Google credentials JSON file location: ' ) ) generate_credentials ( client_secret_path , scope )
Generates a Google API credentials file given client secret JSON and scopes.
Generates a Google API credentials file given client secret JSON and scopes .
"""
    Generates a Google API credentials file given client secret JSON and scopes.
    Usage::

        python -m platypush.plugins.google.credentials [client_secret.json location] [comma-separated list of scopes]
    """ # Uncomment to force headless (no browser spawned) authentication # sys.argv.append('--noauth_local_webserver')