oauth2client.file
index
/usr/local/google/home/jcgregorio/projects/apiclient-release/oauth2client/file.py

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

 
Modules
       
os
json
stat
threading

 
Classes
       
oauth2client.client.Storage(__builtin__.object)
Storage

 
class Storage(oauth2client.client.Storage)
    Store and retrieve a single credential to and from a file.
 
 
Method resolution order:
Storage
oauth2client.client.Storage
__builtin__.object

Methods defined here:
__init__(self, filename)
acquire_lock(self)
Acquires any lock necessary to access this Storage.
 
This lock is not reentrant.
locked_delete(self)
Delete Credentials file.
 
Args:
  credentials: Credentials, the credentials to store.
locked_get(self)
Retrieve Credential from file.
 
Returns:
  oauth2client.client.Credentials
locked_put(self, credentials)
Write Credentials to file.
 
Args:
  credentials: Credentials, the credentials to store.
release_lock(self)
Release the Storage lock.
 
Trying to release a lock that isn't held will result in a
RuntimeError.

Methods inherited from oauth2client.client.Storage:
delete(self)
Delete credential.
 
Frees any resources associated with storing the credential.
The Storage lock must *not* be held when this is called.
 
Returns:
  None
get(self)
Retrieve credential.
 
The Storage lock must *not* be held when this is called.
 
Returns:
  oauth2client.client.Credentials
put(self, credentials)
Write a credential.
 
The Storage lock must be held when this is called.
 
Args:
  credentials: Credentials, the credentials to store.

Data descriptors inherited from oauth2client.client.Storage:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __author__ = 'jcgregorio@google.com (Joe Gregorio)'

 
Author
        jcgregorio@google.com (Joe Gregorio)