Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Lambda arguments args NameParam NameParam NameParam defaults Call NameLoad BinOpMod Str NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn NameLoad TupleLoad Str Str body Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Assign NameStore TupleLoad Str Str Str Str Str Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults IfExp CompareEq NameLoad Str NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Import alias Assign NameStore Num If CompareGtE AttributeLoad NameLoad attr Num body Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad While NameLoad body TryExcept body Return Call Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num orelse If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num orelse If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Num orelse Raise ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignMult NameStore Num If CompareGt NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad TryExcept body For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore NameLoad orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad IfExp CompareIn Str NameLoad BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad NameStore body If CompareIsNot NameLoad NameLoad body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr decorator_list decorator_list
N/A N/A 
RemoteBundleClient is a BundleClient implementation that shells out to a
BundleRPCServer for each command. Filesystem operations are implemented using
the FileServer operations exposed by the RPC server.
 contextlib closing N/A os N/A sys N/A urllib N/A tempfile N/A xmlrpclib N/A shutil N/A socket codalab.client get_address_host codalab.client.bundle_client BundleClient codalab.common NotFoundError PermissionError UsageError AuthorizationError codalab.lib file_util path_util zip_util codalab.server.rpc_file_handle RPCFileHandle worker.file_util gzip_file tar_gzip_directory un_tar_directory un_gzip_stream un_gzip_string N/A N/A N/A N/A xmlrpclib Marshaller dispatch N/A int N/A N/A N/A _ v w N/A N/A w N/A <value><i8>%d</i8></value> v AuthenticatedTransport N/A N/A xmlrpclib SafeTransport N/A N/A 
    Provides an implementation of xmlrpclib.Transport which injects an
    Authorization header into HTTP requests to the remove server.
     __init__ N/A N/A self address get_auth_token N/A N/A N/A 
        address: the address of the remote server
        get_auth_token: a function which yields the access token for
          the Bearer authentication scheme.
         N/A N/A N/A N/A xmlrpclib SafeTransport __init__ self use_datetime 0 N/A N/A url_type _ N/A N/A urllib splittype address N/A N/A url_type N/A http https N/A N/A N/A UsageError N/A Unsupported protocol: expected http://... or https://... but got %s address N/A N/A self _url_type url_type N/A N/A self _bearer_token get_auth_token N/A send_content N/A N/A self connection request_body N/A N/A N/A 
        Overrides Transport.send_content in order to inject Authorization header.
         N/A N/A _ command N/A N/A xmlrpclib loads request_body N/A token N/A N/A self _bearer_token command N/A N/A N/A token None N/A N/A len token 0 N/A N/A N/A N/A connection putheader Authorization N/A N/A Bearer: {0} format token N/A N/A N/A N/A xmlrpclib SafeTransport send_content self connection request_body N/A make_connection N/A N/A self host N/A N/A N/A 
        Create a connection based on the communication scheme, http vs https.
         N/A N/A N/A self _url_type https N/A N/A N/A N/A N/A xmlrpclib SafeTransport make_connection self host N/A N/A N/A N/A N/A xmlrpclib Transport make_connection self host N/A N/A RemoteBundleClient N/A BundleClient N/A N/A CLIENT_COMMANDS N/A upload_bundle_url derive_bundle update_bundle_metadata delete_bundles kill_bundles write_targets chown_bundles get_bundle_uuids search_bundle_uuids get_bundle_info get_bundle_infos get_target_info head_target mimic new_worksheet list_worksheets search_worksheets get_worksheet_uuid get_worksheet_info add_worksheet_item update_worksheet_items update_worksheet_metadata delete_worksheet interpret_file_genpaths resolve_interpreted_items login get_user_info update_user_info list_groups new_group rm_group group_info user_info add_user rm_user set_bundles_perm set_worksheet_perm add_chat_log_info get_chat_log_info get_faq N/A SERVER_COMMANDS N/A finish_upload_bundle open_tarred_gzipped_directory open_gzipped_file read_gzipped_file_section open_target open_target_archive readline_file tell_file seek_file N/A FILE_COMMANDS N/A open_temp_file read_file write_file close_file finalize_file N/A COMMANDS N/A N/A CLIENT_COMMANDS SERVER_COMMANDS FILE_COMMANDS __init__ N/A N/A self address get_auth_token verbose N/A N/A N/A N/A self address address N/A N/A self verbose verbose N/A host N/A get_address_host address N/A transport N/A AuthenticatedTransport host N/A N/A N/A cmd N/A N/A N/A cmd login None N/A get_auth_token self N/A N/A self proxy N/A N/A xmlrpclib ServerProxy host transport transport allow_none True do_command N/A N/A command N/A N/A inner N/A N/A N/A args kwargs N/A N/A time N/A time_delay 1 N/A N/A N/A self verbose 2 N/A N/A N/A remote_bundle_client: %s %s %s N/A command args kwargs N/A True N/A N/A N/A N/A N/A N/A getattr N/A self proxy command args kwargs N/A N/A N/A N/A xmlrpclib ProtocolError N/A e N/A N/A N/A UsageError N/A Could not authenticate on %s: %s N/A host e N/A N/A N/A xmlrpclib Fault N/A e N/A N/A N/A codalab.common.UsageError N/A e faultString N/A N/A index N/A N/A N/A e faultString find : N/A N/A UsageError N/A N/A e faultString N/A N/A index 1 N/A N/A codalab.common.NotFoundError N/A e faultString N/A N/A index N/A N/A N/A e faultString find : N/A N/A NotFoundError N/A N/A e faultString N/A N/A index 1 N/A N/A N/A codalab.common.PermissionError N/A e faultString N/A N/A index N/A N/A N/A e faultString find : N/A N/A PermissionError N/A N/A e faultString N/A N/A index 1 N/A N/A N/A codalab.common.AuthorizationError N/A e faultString N/A N/A index N/A N/A N/A e faultString find : N/A N/A AuthorizationError N/A N/A e faultString N/A N/A index 1 N/A N/A N/A N/A N/A socket error N/A e N/A N/A N/A sys stderr N/A Failed to connect to %s: %s. Trying to reconnect in %s seconds... N/A host e time_delay N/A N/A N/A time sleep time_delay N/A time_delay 2 N/A N/A time_delay 512 N/A N/A N/A UsageError N/A Failed to connect to %s: %s N/A host e N/A N/A inner N/A N/A command N/A self COMMANDS N/A N/A N/A setattr self command N/A do_command command N/A upload_bundle N/A N/A self sources follow_symlinks exclude_patterns git unpack remove_sources info worksheet_uuid add_to_worksheet N/A N/A N/A 
        See local_bundle_client.py for documentation on the usage.
        Strategy:
        1) We copy the |sources| to a temporary directory on the server
          (streaming either a tar or tar.gz depending on whether compression is
          needed).
        2) We politely ask the server to finish_upload_bundle (performs a
          LocalBundleClient.upload_bundle from the temporary directory).
         N/A N/A all N/A N/A N/A path_util path_is_url source N/A source sources N/A N/A N/A N/A self upload_bundle_url sources follow_symlinks exclude_patterns git unpack remove_sources info worksheet_uuid add_to_worksheet N/A remote_file_uuids N/A N/A N/A N/A source sources N/A N/A N/A N/A zip_util path_is_archive source N/A N/A source_handle N/A open source N/A temp_file_name N/A N/A N/A os path basename source N/A N/A N/A N/A N/A os path isdir source N/A N/A source_handle N/A tar_gzip_directory source follow_symlinks exclude_patterns N/A temp_file_name N/A N/A N/A N/A os path basename source .tar.gz N/A unpack True N/A N/A resolved_source source N/A follow_symlinks N/A N/A resolved_source N/A N/A N/A os path realpath source N/A N/A N/A N/A N/A os path exists resolved_source N/A N/A N/A UsageError Broken symlink N/A N/A N/A N/A N/A os path islink source N/A N/A N/A UsageError Not following symlinks. N/A source_handle N/A gzip_file resolved_source N/A temp_file_name N/A N/A N/A N/A os path basename source .gz N/A unpack True N/A remote_file_uuid N/A N/A self open_temp_file temp_file_name N/A N/A N/A remote_file_uuids append remote_file_uuid N/A N/A closing N/A RPCFileHandle remote_file_uuid N/A self proxy dest_handle N/A N/A status N/A Uploading %s%s to %s N/A source N/A N/A uuid info N/A N/A  ( N/A info N/A uuid ) N/A self address N/A N/A N/A file_util copy source_handle dest_handle autoflush False print_status status N/A N/A N/A self finish_upload_bundle remote_file_uuids unpack info worksheet_uuid add_to_worksheet N/A N/A N/A N/A remote_file_uuid remote_file_uuids N/A N/A N/A N/A self finalize_file remote_file_uuid N/A N/A download_directory N/A N/A self target download_path N/A N/A N/A 
        Downloads the target directory to the given path. The caller should
        ensure that the target is a directory.
         N/A remote_file_uuid N/A N/A self open_tarred_gzipped_directory target N/A N/A closing N/A RPCFileHandle remote_file_uuid N/A self proxy finalize_on_close True fileobj N/A N/A N/A un_tar_directory fileobj download_path gz N/A download_file N/A N/A self target download_path N/A N/A N/A 
        Downloads the target file to the given path. The caller should
        ensure that the target is a file.
         N/A N/A N/A self _do_download_file target out_path download_path N/A cat_target N/A N/A self target out N/A N/A N/A 
        Prints the contents of the target file into the file-like object out.
        The caller should ensure that the target is a file.
         N/A N/A N/A self _do_download_file target out_fileobj out N/A _do_download_file N/A N/A self target out_path out_fileobj N/A None None N/A N/A remote_file_uuid N/A N/A self open_gzipped_file target N/A N/A closing N/A un_gzip_stream N/A RPCFileHandle remote_file_uuid N/A self proxy finalize_on_close True fileobj N/A N/A N/A out_path None N/A N/A N/A open out_path wb out N/A N/A N/A N/A shutil copyfileobj fileobj out N/A N/A N/A out_fileobj None N/A N/A N/A N/A shutil copyfileobj fileobj out_fileobj N/A read_file_section N/A N/A self target offset length N/A N/A N/A 
        Returns the string representing the section of the given target file
        starting at offset and of the given length. The caller should ensure
        that the target is a file.
         N/A N/A un_gzip_string N/A N/A N/A self read_gzipped_file_section target offset length data N/A N/A