Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Raise NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Abstract base class that describes the client interface for interacting with
the CodaLab bundle system.

There are three categories of BundleClient commands:
  - Commands that create and edit bundles: upload, make, run and update.
  - Commands for browsing bundles: info, ls, cat, search, and wait.
  - Various utility commands for pulling bundles back out of the system.

There are a couple of implementations of this class:
  - LocalBundleClient - interacts directly with a BundleStore and BundleModel.
  - RemoteBundleClient - shells out to a BundleRPCServer to implement its API.
 N/A time sys stdout BundleClient N/A object N/A login N/A N/A self grant_type username key N/A N/A N/A 
        Generate OAuth access token from username/password or from a refresh token.

        grant_type: Type of grant requested: 'credentials' or 'refresh_token'.
        username: Name of user to authenticate.
        key: User's secret which is a password for the 'credentials' grant type
            or a refresh token for the 'refresh_token' grant type.

        If the grant succeeds, the method returns a dictionary of the form:
        { 'token_type': 'Bearer',
          'access_token': <token>,
          'expires_in': <span in seconds>,
          'refresh_token': <token> }
        If the grant fails because of invalid credentials, None is returned.
         N/A N/A N/A hasattr self auth_handler N/A N/A NotImplementedError N/A N/A N/A N/A self auth_handler generate_token grant_type username key N/A N/A