/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/__pycache__
NameSizeModeActions
bandwidth.cpython-313.pyc179660644editdlrm
compat.cpython-313.pyc27020644editdlrm
constants.cpython-313.pyc6880644editdlrm
copies.cpython-313.pyc111430644editdlrm
crt.cpython-313.pyc428680644editdlrm
delete.cpython-313.pyc25350644editdlrm
download.cpython-313.pyc314410644editdlrm
exceptions.cpython-313.pyc19370644editdlrm
futures.cpython-313.pyc287040644editdlrm
manager.cpython-313.pyc262910644editdlrm
processpool.cpython-313.pyc414160644editdlrm
subscribers.cpython-313.pyc36730644editdlrm
tasks.cpython-313.pyc137110644editdlrm
upload.cpython-313.pyc314740644editdlrm
utils.cpython-313.pyc369150644editdlrm
__init__.cpython-313.pyc343430644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/__pycache__/tasks.cpython-313.pyc (13711B)
j.@SSKrSSKrSSKJr SSKJr \R"\ 5r "SS5r "SS\ 5r "S S \ 5r"S S \ 5rg!\a SSKJr NLf=f) N) get_callbacks)start_as_current_context) nullcontextcz\rSrSrSrSSjrSr\S5rSr Sr SS jr S r S r S rS rSrSrSrg)TaskzA task associated to a TransferFuture request This is a base class for other classes to subclass from. All subclassed classes must implement the main() method. NcXlX lURc0UlX0lUc0UlX@lURc/UlXPlg)a :type transfer_coordinator: s3transfer.futures.TransferCoordinator :param transfer_coordinator: The context associated to the TransferFuture for which this Task is associated with. :type main_kwargs: dict :param main_kwargs: The keyword args that can be immediately supplied to the _main() method of the task :type pending_main_kwargs: dict :param pending_main_kwargs: The keyword args that are depended upon by the result from a dependent future(s). The result returned by the future(s) will be used as the value for the keyword argument when _main() is called. The values for each key can be: * a single future - Once completed, its value will be the result of that single future * a list of futures - Once all of the futures complete, the value used will be a list of each completed future result value in order of when they were originally supplied. :type done_callbacks: list of callbacks :param done_callbacks: A list of callbacks to call once the task is done completing. Each callback will be called with no arguments and will be called no matter if the task succeeds or an exception is raised. :type is_final: boolean :param is_final: True, to indicate that this task is the final task for the TransferFuture request. By setting this value to True, it will set the result of the entire TransferFuture to the result returned by this task's main() method. N)_transfer_coordinator _main_kwargs_pending_main_kwargs_done_callbacks _is_final)selftransfer_coordinator main_kwargspending_main_kwargsdone_callbacksis_finals C/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/tasks.py__init__ Task.__init__"sXP&:"'    $ "D $7!  &(*D %-    '#%D !c/SQnURURU5nURRSURR SUS3$)N)bucketkey part_numberfinal_filenametransfer_futureoffset extra_argsz (transfer_id=z, ))"_get_kwargs_with_params_to_includer __class____name__r transfer_id)rparams_to_displaymain_kwargs_to_displays r__repr__ Task.__repr__Zs` "&!H!H   0" ..))*-8R8R8^8^7__abxayyz{{rc.URR$)z8The id for the transfer request that the task belongs to)r r%)rs rr%Task.transfer_idks))555rc60nUHnXA;dM XX4'M U$N)rkwargsincludefiltered_kwargsparams rr"'Task._get_kwargs_with_params_to_includeps(E)/&rcR0nUR5HupEXB;aM XSU'M U$r-)items)rr/excluder1r2values r"_get_kwargs_with_params_to_exclude'Task._get_kwargs_with_params_to_excludews2"LLNLE%*E "+rc[U5 UR5 UR5nURR 5(d_UR U5UR H nU"5 M UR(aURR5 sSSS5 $UR H nU"5 M UR(aURR5 SSS5 g![anURU5 SnANnSnAff=f!UR H nU"5 M UR(aURR5 ff=f!,(df  g=f)z9The callable to use when submitting a Task to an executorN) r_wait_on_dependent_futures_get_all_main_kwargsr done _execute_mainr r announce_done Exception_log_and_set_exception)rctxr/ done_callbackes r__call__ Task.__call__s3 %c * ?//1 224116688--f5 &*%9%9M!O&:>>..<<>1+ *9 &*%9%9M!O&:>>..<<>1+ * /++A.. /&*%9%9M!O&:>>..<<>"++ *sPE.AC;AE.,D#-AE.; D DD#D  D##AE++E.. E<cS/nURX5n[RSUSU35 UR"S0UD6nUR(aUR R U5 U$)NdatazExecuting task z with kwargs r.)r8loggerdebug_mainrr set_result)rr/params_to_excludekwargs_to_display return_values rr>Task._execute_mainsq$H CC    tfM:K9LMNzz+F+  >>  & & 1 1, ?rcb[RSSS9 URRU5 g)NzException raised.T)exc_info)rIrJr set_exception)r exceptions rrATask._log_and_set_exceptions)  (4 8 ""00;rc [S5e)zThe method that will be ran in the executor This method must be implemented by subclasses from Task. main() can be implemented with any arguments decided upon by the subclass. z_main() must be implementedNotImplementedError)rr/s rrK Task._mains ""?@@rc/nURR5H>up#[U[5(aUR U5 M-UR U5 M@ UR U5 gr-)r r5 isinstancelistextendappend_wait_until_all_complete)rfutures_to_wait_on_futures rr;Task._wait_on_dependent_futuress_2288:IA&$''"))&1#))&1 ; %%&89rc[RSX5 UH*n[RSX5 UR5 M, [RSU5 g![a MRf=f)Nz-%s about to wait for the following futures %sz%s about to wait for %sz%%s done waiting for dependent futures)rIrJresultr@)rfuturesrbs rr_Task._wait_until_all_completese  ;T F  6E   rArKr;r_r<__static_attributes__r.rrrrsd  6"p|"66?8"< A :D,rrc*\rSrSrSrSrSrSrSrg)SubmissionTaskzA base class for any submission task Submission tasks are the top-level task used to submit a series of tasks to execute a particular transfer. c rURR5 [US5nUH nU"5 M URR5 UR"SSU0UD6 g![ aEnUR U5 UR5 URR5 SnAgSnAff=f)a :type transfer_future: s3transfer.futures.TransferFuture :param transfer_future: The transfer future associated with the transfer request that tasks are being submitted for :param kwargs: Any additional kwargs that you may want to pass to the _submit() method queuedrNr.) r set_status_to_queuedrset_status_to_running_submit BaseExceptionrA+_wait_for_all_submitted_futures_to_completer?)rrr/on_queued_callbackson_queued_callbackrDs rrKSubmissionTask._mains$ 7  & & ; ; =#0"J &9""$':  & & < < > LL C CF C 7  ' ' *  < < >  & & 4 4 6 6- 7sA$A'' B61;B11B6c [S5e)a(The submission method to be implemented :type transfer_future: s3transfer.futures.TransferFuture :param transfer_future: The transfer future associated with the transfer request that tasks are being submitted for :param kwargs: Any additional keyword arguments you want to be passed in z_submit() must be implementedrW)rrr/s rrySubmissionTask._submit)s""ABBrcURRnU(a9URU5 URRnX:XagUnU(aM8ggr-)r associated_futuresr_)rsubmitted_futurespossibly_more_submitted_futuress rr{:SubmissionTask._wait_for_all_submitted_futures_to_complete5sW!66II  ) )*; <**== ,!C ? ! rr.N) r$rlrmrnrorKryr{rqr.rrrsrss -7^ C@rrsc\rSrSrSrSrSrg)CreateMultipartUploadTaskiQz#Task to initiate a multipart uploadcUR"SX#S.UD6nUSnURRURUUUS9 U$)a9 :param client: The client to use when calling CreateMultipartUpload :param bucket: The name of the bucket to upload to :param key: The name of the key to upload to :param extra_args: A dictionary of any extra arguments that may be used in the initialization. :returns: The upload id of the multipart upload )BucketKeyUploadId)rrrr.)create_multipart_uploadr add_failure_cleanupabort_multipart_upload)rclientrrr response upload_ids rrKCreateMultipartUploadTask._mainTse11  &0 Z(  ""66  ) ) 7 rr.Nr$rlrmrnrorKrqr.rrrrQs -rrc\rSrSrSrSrSrg)CompleteMultipartUploadTaskinz#Task to complete a multipart uploadc6UR"SUUUSU0S.UD6 g)a" :param client: The client to use when calling CompleteMultipartUpload :param bucket: The name of the bucket to upload to :param key: The name of the key to upload to :param upload_id: The id of the upload :param parts: A list of parts to use to complete the multipart upload:: [{'Etag': etag_value, 'PartNumber': part_number}, ...] Each element in the list consists of a return value from ``UploadPartTask.main()``. :param extra_args: A dictionary of any extra arguments that may be used in completing the multipart transfer. Parts)rrrMultipartUploadNr.)complete_multipart_upload)rrrrrpartsr s rrK!CompleteMultipartUploadTask._mainqs2 (( $e,    rr.Nrr.rrrrns - rr)riloggings3transfer.utilsrbotocore.contextr ImportError contextlibr getLoggerr$rIrrsrrr.rrrsx *C9   8 $UUp[@T[@|: $ u CBCsA A#"A#