oauth2client.file module

Utilities for OAuth.

Utilities for making it easier to work with OAuth 2.0 credentials.

class oauth2client.file.Storage(filename)[source]

Bases: oauth2client.client.Storage

Store and retrieve a single credential to and from a file.

locked_delete()[source]

Delete Credentials file.

Parameters:credentials – Credentials, the credentials to store.
locked_get()[source]

Retrieve Credential from file.

Returns:oauth2client.client.Credentials
Raises:IOError if the file is a symbolic link.
locked_put(credentials)[source]

Write Credentials to file.

Parameters:credentials – Credentials, the credentials to store.
Raises:IOError if the file is a symbolic link.