def get_demo_driver(provider_name='RACKSPACE', *args, **kwargs):
 provider_name = provider_name.upper()
 DriverClass = get_driver(getattr(Provider, provider_name))
 if (not args):
  args = getattr(secrets, (provider_name + '_PARAMS'), ())
 if (not kwargs):
  kwargs = getattr(secrets, (provider_name + '_KEYWORD_PARAMS'), {})
 try:
  return DriverClass(*args, **kwargs)
 except InvalidCredsError:
  raise InvalidCredsError('valid values should be put in secrets.py')

def get_demo_driver ( provider_name = 'RACKSPACE' , * args , ** kwargs ) : provider_name = provider_name . upper ( ) DriverClass = get_driver ( getattr ( Provider , provider_name ) ) if ( not args ) : args = getattr ( secrets , ( provider_name + '_PARAMS' ) , ( ) ) if ( not kwargs ) : kwargs = getattr ( secrets , ( provider_name + '_KEYWORD_PARAMS' ) , { } ) try : return DriverClass ( * args , ** kwargs ) except InvalidCredsError : raise InvalidCredsError ( 'valid values should be put in secrets.py' )
an easy way to play with a driver interactively .