Trees | Indices | Help |
---|
|
Store and retrieve a single credential to and from the keyring. To use this module you must have the keyring module installed. See <http://pypi.python.org/pypi/keyring/>. This is an optional module and is not installed with oauth2client by default because it does not work on all the platforms that oauth2client supports, such as Google App Engine. The keyring module <http://pypi.python.org/pypi/keyring/> is a cross-platform library for access the keyring capabilities of the local system. The user will be prompted for their keyring password when this module is used, and the manner in which the user is prompted will vary per platform. Usage: from oauth2client.keyring_storage import Storage s = Storage('name_of_application', 'user1') credentials = s.get()
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructor. Args: service_name: string, The name of the service under which the credentials are stored. user_name: string, The name of the user to store credentials for.
|
Acquires any lock necessary to access this Storage. This lock is not reentrant.
|
Release the Storage lock. Trying to release a lock that isn't held will result in a RuntimeError.
|
Retrieve Credential from file. Returns: oauth2client.client.Credentials
|
Write Credentials to file. Args: credentials: Credentials, the credentials to store.
|
Delete Credentials file. Args: credentials: Credentials, the credentials to store.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 6 12:16:46 2013 | http://epydoc.sourceforge.net |