/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__/futures.cpython-313.pyc (28704B)
j2USSKrSSKrSSKrSSKrSSKJr SSKJr SSKJ r SSK J r J r SSK JrJr SSKJr \R&"\5r"S S 5r"S S 5r"S S\5r"SS\5r"SS5r"SS5r"SS5r"SS5r"SS\5r"SS5r\"SS/5r \ "S5r!\ "S 5r"g!\a SrNf=f)!N) namedtuple)futures)MAXINT)CancelledErrorTransferNotDoneError)FunctionContainer TaskSemaphore) get_contextcgNr E/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/futures.pyr r src6\rSrSr\S5rSrSrSrSr g)BaseTransferFuture#c[S5e)z-The metadata associated to the TransferFuturemetaNotImplementedErrorselfs rrBaseTransferFuture.meta$s"&))rc[S5e)z]Determines if a TransferFuture has completed :returns: True if completed. False, otherwise. zdone()rrs rdoneBaseTransferFuture.done)s "(++rc[S5e)Waits until TransferFuture is done and returns the result If the TransferFuture succeeded, it will return the result. If the TransferFuture failed, it will raise the exception associated to the failure. zresult()rrs rresultBaseTransferFuture.result0s"*--rc[S5e)z6Cancels the request associated with the TransferFuturezcancel()rrs rcancelBaseTransferFuture.cancel9s !*--rr N) __name__ __module__ __qualname____firstlineno__propertyrrrr"__static_attributes__r rrrr#s# **,..rrcD\rSrSr\S5r\S5r\S5rSrg)BaseTransferMeta>c[S5e)*The call args used in the transfer request call_argsrrs rr/BaseTransferMeta.call_args?s"+..rc[S5e)The unique id of the transfer transfer_idrrs rr3BaseTransferMeta.transfer_idDs"-00rc[S5e).A dictionary that requesters can store data in user_contextrrs rr7BaseTransferMeta.user_contextIs".11rr N) r$r%r&r'r(r/r3r7r)r rrr+r+>s< //1122rr+cF\rSrSrS Sjr\S5rSrSrSr Sr S r g) TransferFutureONcfXlUc[5UlX lUc[5Ulgg)aJThe future associated to a submitted transfer request :type meta: TransferMeta :param meta: The metadata associated to the request. This object is visible to the requester. :type coordinator: TransferCoordinator :param coordinator: The coordinator associated to the request. This object is not visible to the requester. N)_meta TransferMeta _coordinatorTransferCoordinator)rr coordinators r__init__TransferFuture.__init__Ps3 <%DJ'   3 5D  rcUR$r )r=rs rrTransferFuture.metacs zzrc6URR5$r )r?rrs rrTransferFuture.donegs  %%''rcURR5$![anUR5 UeSnAff=fr )r?rKeyboardInterruptr")res rrTransferFuture.resultjs< $$++- -   KKMG s =8=c8URR5 gr )r?r"rs rr"TransferFuture.cancelts   "rcxUR5(d [S5eURRUSS9 g)z!Sets the exception on the future.z?set_exception can only be called once the transfer is complete.T)overrideN)rrr? set_exception)r exceptions rrPTransferFuture.set_exceptionws:yy{{&  '' D'Ar)r?r=NN) r$r%r&r'rBr(rrrr"rPr)r rrr:r:Os06&(#Brr:c~\rSrSrSrS Sjr\S5r\S5r\S5r \S5r \S 5r S r S r S rg)r>z'Holds metadata about the TransferFutureNcFXlX lSUl0UlSUlgr ) _call_args _transfer_id_size _user_context_etag)rr/r3s rrBTransferMeta.__init__s##'  rcUR$)r.)rWrs rr/TransferMeta.call_argssrcUR$)r2)rXrs rr3TransferMeta.transfer_ids   rcUR$)z)The size of the transfer request if knownrYrs rsizeTransferMeta.sizezzrcUR$)r6)rZrs rr7TransferMeta.user_contexts!!!rcUR$)z@The etag of the stored object for validating multipart downloadsr[rs retagTransferMeta.etagrercXlg)zA method to provide the size of a transfer request By providing this value, the TransferManager will not try to call HeadObject or use the use OS to determine the size of the transfer. Nrb)rrcs rprovide_transfer_size"TransferMeta.provide_transfer_size  rcXlg)zA method to provide the etag of a transfer request By providing this value, the TransferManager will validate multipart downloads by supplying an IfMatch parameter with the etag as the value to GetObject requests. Nri)rrjs rprovide_object_etag TransferMeta.provide_object_etagror)rWr[rYrXrZrS)r$r%r&r'__doc__rBr(r/r3rcr7rjrmrqr)r rrr>r>sx1!!""rr>c\rSrSrSrSSjrSr\S5r\S5r \S5r \S 5r S r SS jr S rS \4SjrSrSrSrSSjrSrSrSrSrSrSrSrSrSrSrSrg) r@z*A helper class for managing TransferFutureNcxXlSUlSUlSUl[ 5Ul/Ul/Ul[R"5Ul [R"5Ul [R"5Ul [R"5Ul[R"5Ulg)N not-started)r3_status_result _exceptionset_associated_futures_failure_cleanups_done_callbacks threadingEvent _done_eventLock_lock_associated_futures_lock_done_callbacks_lock_failure_cleanups_lock)rr3s rrBTransferCoordinator.__init__s&$  #&5 !#!$??,^^% (1(8%$-NN$4!&/nn&6#rcNURRSURS3$)Nz (transfer_id=)) __class__r$r3rs r__repr__TransferCoordinator.__repr__s'..))*-8H8H7IKKrcUR$r )rzrs rrQTransferCoordinator.exceptions rcUR [R"UR5sSSS5 $!,(df  g=f)zThe list of futures associated to the inprogress TransferFuture Once the transfer finishes this list becomes empty as the transfer is considered done and there should be no running futures left. N)rcopyr|rs rassociated_futures&TransferCoordinator.associated_futuress- * *99T556 + * *s 7 AcUR$)z;The list of callbacks to call when the TransferFuture fails)r}rs rfailure_cleanups$TransferCoordinator.failure_cleanupss%%%rcUR$)aThe status of the TransferFuture The currently supported states are: * not-started - Has yet to start. If in this state, a transfer can be canceled immediately and nothing will happen. * queued - SubmissionTask is about to submit tasks * running - Is inprogress. In-progress as of now means that the SubmissionTask that runs the transfer is being executed. So there is no guarantee any transfer requests had been made to S3 if this state is reached. * cancelled - Was cancelled * failed - An exception other than CancelledError was thrown * success - No exceptions were thrown and is done. )rxrs rstatusTransferCoordinator.statuss ||rcxUR SUlXlSUlSSS5 g!,(df  g=f)aSet a result for the TransferFuture Implies that the TransferFuture succeeded. This will always set a result because it is invoked on the final task where there is only ever one final task and it is ran at the very end of a transfer process. So if a result is being set for this final task, the transfer succeeded even if something came a long and canceled the transfer on the final task. Nsuccess)rrzryrxrrs r set_resultTransferCoordinator.set_results(ZZ"DO!L$DLZZs+ 9cUR UR5(aU(a XlSUlSSS5 g!,(df  g=f)zSet an exception for the TransferFuture Implies the TransferFuture failed. :param exception: The exception that cause the transfer to fail. :param override: If True, override any existing state. failedN)rrrzrx)rrQrOs rrP!TransferCoordinator.set_exceptions.ZZ99;;("+' ZZs *A AcURR[5 UR(a UReUR$)r)rwaitrrzryrs rrTransferCoordinator.results5 f% ??// !||rc$UR UR5(dUSn[RSX5 U"U5UlUR S:XaSnSUlU(aUR 5 SSS5 g!,(df  g=f)zCancels the TransferFuture :param msg: The message to attach to the cancellation :param exc_type: The type of exception to set for the cancellation Fz%s cancel(%s) calledrwT cancelledN)rrloggerdebugrzrx announce_done)rmsgexc_typeshould_announce_dones rr"TransferCoordinator.cancel"sh ZZ99;;',$ 3T?"*3-<<=0+/(* '&&(ZZs A+B Bc&URS5 g)z+Sets the TransferFutrue's status to runningqueuedN_transition_to_non_done_staters rset_status_to_queued(TransferCoordinator.set_status_to_queued3s **84rc&URS5 g)z+Sets the TransferFuture's status to runningrunningNrrs rset_status_to_running)TransferCoordinator.set_status_to_running7s **95rcUR UR5(a[SURSUS35eXlSSS5 g!,(df  g=f)Nz%Unable to transition from done state z to non-done state .)rr RuntimeErrorrrx)r desired_states rr1TransferCoordinator._transition_to_non_done_state;sO ZZyy{{";DKK=I*O1.)L ZZs 8A Ac [RSUSUSURS35 URX#S9nUR U5 UR [ URU55 U$)aSubmits a task to a provided executor :type executor: s3transfer.futures.BoundedExecutor :param executor: The executor to submit the callable to :type task: s3transfer.tasks.Task :param task: The task to submit to the executor :type tag: s3transfer.futures.TaskTag :param tag: A tag to associate to the submitted task :rtype: concurrent.futures.Future :returns: A future representing the submitted task zSubmitting task z to executor z for transfer request: r)tag)rrr3submitadd_associated_futureadd_done_callbackrremove_associated_future)rexecutortaskrfutures rrTransferCoordinator.submitDsy  tfM(;RSWScScRdde f / ""6*  d;;V D  rc URS;$)zDetermines if a TransferFuture has completed :returns: False if status is equal to 'failed', 'cancelled', or 'success'. True, otherwise )rrr)rrs rrTransferCoordinator.done_s {{@@@rcUR URRU5 SSS5 g!,(df  g=f)z6Adds a future to be associated with the TransferFutureN)rr|addrrs rr)TransferCoordinator.add_associated_futuregs+  * *  $ $ ( ( 0+ * * 2 AcUR URRU5 SSS5 g!,(df  g=f)z4Removes a future's association to the TransferFutureN)rr|removers rr,TransferCoordinator.remove_associated_futurels+  * *  $ $ + +F 3+ * *rcUR URR[U/UQ70UD65 SSS5 g!,(df  g=f)z7Add a done callback to be invoked when transfer is doneN)rr~appendrrfunctionargskwargss rr%TransferCoordinator.add_done_callbackqs=  & &  ' '!(T"5$r r )future_passed_to_callbackfns r done_callback7ExecutorFuture.add_done_callback..done_callbacks 4KrN)rr)rrrs ` rr ExecutorFuture.add_done_callback s  &&}5rc6URR5$r )rrrs rrExecutorFuture.dones||  ""rrN) r$r%r&r'rBrrrr)r rrrrs %6 #rrc2\rSrSrSrSSjrSrS SjrSrg) BaseExecutorizABase Executor class implementation needed to work with s3transferNcgr r )rrs rrBBaseExecutor.__init__! rc[S5e)Nzsubmit()r)rrrrs rrBaseExecutor.submit$s !*--rc[S5e)Nz shutdown()rrs rrBaseExecutor.shutdown's !,//rr r r ) r$r%r&r'rsrBrrr)r rrrrsK .0rrc(\rSrSrSrSrSSjrSrg)NonThreadedExecutori+z@A drop-in replacement non-threaded version of ThreadPoolExecutorc[5nU"U0UD6nURU5 U$![aG [R"5SSupg[ R SUUU5 URXg5 U$f=f)Nz0Setting exception for %s to %s with traceback %s)NonThreadedExecutorFuturerrsysrrrset_exception_info)rrrrrrrJtbs rrNonThreadedExecutor.submit.s*, -((F   f %  -LLN12&EA LLB    % %a ,  -s'A A87A8cgr r rs rrNonThreadedExecutor.shutdown>r!rr Nr )r$r%r&r'rsrrr)r rrr'r'+sJ  rr'cL\rSrSrSrSrSrSrS SjrSr S r S r S r S r g)r*iBzThe Future returned from NonThreadedExecutor Note that this future is **not** thread-safe as it is being used from the context of a non-threaded environment. cJSUlSUlSUlSUl/Ulg)NF)ryrz _traceback_doner~rs rrB"NonThreadedExecutorFuture.__init__Is&  !rc0XlUR5 gr )ry _set_doners rr$NonThreadedExecutorFuture.set_resultPs  rc<XlX lUR5 gr )rzr3r7)rrQ tracebacks rr,,NonThreadedExecutorFuture.set_exception_infoTs## rNcUR(a%URRUR5eUR$r )rzwith_tracebackr3ry)rtimeouts rr NonThreadedExecutorFuture.resultYs, ??//00A A||rchSUlURHnURU5 M /Ulgr )r4r~_invoke_done_callbackrrs rr7#NonThreadedExecutorFuture._set_done^s/ !11M  & &} 52!rcU"U5$r r rBs rrA/NonThreadedExecutorFuture._invoke_done_callbackds T""rcUR$r )r4rs rrNonThreadedExecutorFuture.donegs zzrcUR(aURU5 gURRU5 gr )r4rAr~r)rrs rr+NonThreadedExecutorFuture.add_done_callbackjs+ ::  & &r *  ' ' +r)r4r~rzryr3r )r$r%r&r'rsrBrr,rr7rArrr)r rrr*r*Bs/ "  " #,rr*TaskTagnamein_memory_uploadin_memory_download)#rloggingr+r collectionsr concurrentrs3transfer.compatrs3transfer.exceptionsrrs3transfer.utilsrr botocore.contextr ImportError getLoggerr$rrr+r:r>r@rrrr'r*rJIN_MEMORY_UPLOAD_TAGIN_MEMORY_DOWNLOAD_TAGr rrrYs  "$F=,   8 $..622"/B'/Bd3#3loLoLdM&M&`"#"#J 0 0 , .,,,,^ Y )12 !56usC CC