def rods_connect():
 (status, env) = irods.getRodsEnv()
 assert (status == 0), ('connect(): getRodsEnv() failed (%s): %s' % (status, irods.strerror(status)))
 (conn, err) = irods.rcConnect(env.rodsHost, env.rodsPort, env.rodsUserName, env.rodsZone)
 assert (err.status == 0), ('connect(): rcConnect() failed (%s): %s' % (err.status, err.msg))
 (status, pw) = irods.obfGetPw()
 assert (status == 0), ('connect(): getting password with obfGetPw() failed (%s): %s' % (status, irods.strerror(status)))
 status = irods.clientLoginWithObfPassword(conn, pw)
 assert (status == 0), ('connect(): logging in with clientLoginWithObfPassword() failed (%s): %s' % (status, irods.strerror(status)))
 return (env, conn)

def rods_connect ( ) : ( status , env ) = irods . getRodsEnv ( ) assert ( status == 0 ) , ( 'connect(): getRodsEnv() failed (%s): %s' % ( status , irods . strerror ( status ) ) ) ( conn , err ) = irods . rcConnect ( env . rodsHost , env . rodsPort , env . rodsUserName , env . rodsZone ) assert ( err . status == 0 ) , ( 'connect(): rcConnect() failed (%s): %s' % ( err . status , err . msg ) ) ( status , pw ) = irods . obfGetPw ( ) assert ( status == 0 ) , ( 'connect(): getting password with obfGetPw() failed (%s): %s' % ( status , irods . strerror ( status ) ) ) status = irods . clientLoginWithObfPassword ( conn , pw ) assert ( status == 0 ) , ( 'connect(): logging in with clientLoginWithObfPassword() failed (%s): %s' % ( status , irods . strerror ( status ) ) ) return ( env , conn )
a basic irods connection mechanism that connects using the current irods environment .