/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__/crt.cpython-313.pyc (42868B)
jSSKrSSKrSSKrSSKJr SSKrSSKrSSKr SSK r SSK J r J r JrJr SSKJrJrJrJrJr SSKJrJrJr SSK Jr SSKJr SSKJr SS KJr SS K J!r!J"r" SS K#J$r$J%r% SS K&J'r' SS K(J)r)J*r* SSK+J,r, SSK-J.r.J/r/J0r0J1r1J2r2 \Rf"\45r5Sq6Sr7SSSS\%-SS4Sjr8S/Sjr9"SS5r:"SS\*5r;"SS\)5r<"SS5r="SS\=5r>"SS \5r?"S!S"5r@"S#S$5rA"S%S&5rB"S'S(5rC"S)S*5rD"S+S,5rE"S-S.5rFg)0N)BytesIO)AwsCredentialsAwsCredentialsProviderAwsSigningAlgorithmAwsSigningConfig)ClientBootstrapClientTlsContextDefaultHostResolverEventLoopGroupTlsContextOptions)S3ClientS3RequestTlsMode S3RequestType)UNSIGNED)urlsplit)Config)NoCredentialsError) ArnParserInvalidArnException)FULL_OBJECT_CHECKSUM_ARGSMB)TransferNotDoneError)BaseTransferFutureBaseTransferMeta)TransferManager)CallArgsOSUtilscreate_nested_client get_callbacksis_s3express_bucketc[c2[RRU5nUR 5 Uq[$![ a gf=fN)CRT_S3_PROCESS_LOCKawscrts3CrossProcessLockacquire RuntimeError)namecrt_locks A/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/crt.pyacquire_crt_s3_process_lockr,;sS"99--d3      '     sA A  A Tc T[U5n[U5n[Xx5n Sn U(a[RO[R n UbC[ 5n U(aU RUS9 OSU l[U 5n U R5n [US9n[U UUUU U USS9$)a :type region: str :param region: The region used for signing :type crt_credentials_provider: Optional[awscrt.auth.AwsCredentialsProvider] :param crt_credentials_provider: CRT AWS credentials provider to use to sign requests. If not set, requests will not be signed. :type num_threads: Optional[int] :param num_threads: Number of worker threads generated. Default is the number of processors in the machine. :type target_throughput: Optional[int] :param target_throughput: Throughput target in bytes per second. By default, CRT will automatically attempt to choose a target throughput that matches the system's maximum network throughput. Currently, if CRT is unable to determine the maximum network throughput, a fallback target throughput of ``1_250_000_000`` bytes per second (which translates to 10 gigabits per second, or 1.16 gibibytes per second) is used. To set a specific target throughput, set a value for this parameter. :type part_size: Optional[int] :param part_size: Size, in Bytes, of parts that files will be downloaded or uploaded in. :type use_ssl: boolean :param use_ssl: Whether or not to use SSL. By default, SSL is used. Note that not all services support non-ssl connections. :type verify: Optional[boolean/string] :param verify: Whether or not to verify SSL certificates. By default SSL certificates are verified. You can provide the following values: * False - do not validate SSL certificates. SSL will still be used (unless use_ssl is False), but SSL certificates will not be verified. * path/to/cert/bundle.pem - A filename of the CA cert bundle to use. Specify this argument if you want to use a custom CA cert bundle instead of the default one on your system. N) ca_filepathF) provided_throughput_target_bytesT) bootstrapregioncredential_provider part_sizetls_modetls_connection_optionsthroughput_target_gbpsenable_s3express) r r rrENABLEDDISABLEDr &override_default_trust_store_from_path verify_peerr new_connection_options_get_crt_throughput_target_gbpsr )r2crt_credentials_provider num_threadstarget_throughputr4use_sslverifyevent_loop_group host_resolverr1r6r5tls_ctx_optionsclient_tls_option target_gbpss r+create_s3_crt_clientrITsh&k2'(89M 0@I!%,  1A1J1J +-   B B" C +0O ',_=!2!I!I!K1):K 45*  cUc:[RR5n[R SU5 UcSnOUS-S- n[R SU5 U$)Nz-Recommended CRT throughput target in gbps: %sg$@r-iʚ;z'Using CRT throughput target in gbps: %s)r$r%&get_recommended_throughput_target_gbpsloggerdebug)r0rHs r+r>r>s_'/iiFFH  ;[   K 7:]J  LL:KH rJc\rSrSr\R r\R r\RrSr\Rr SSjr Sr Sr SSjr SSjrSS jrSS jrS rS rS rSrSrSrSSjrSrSrSrg)CRTTransferManagerTNcUc[5UlXl[X R5UlUR Ul/Ul[R"S5Ul SUl g)aA transfer manager interface for Amazon S3 on CRT s3 client. :type crt_s3_client: awscrt.s3.S3Client :param crt_s3_client: The CRT s3 client, handling all the HTTP requests and functions under then hood :type crt_request_serializer: s3transfer.crt.BaseCRTRequestSerializer :param crt_request_serializer: Serializer, generates unsigned crt HTTP request. :type osutil: s3transfer.utils.OSUtils :param osutil: OSUtils object to use for os-related behavior when using with transfer manager. Nr) r_osutil_crt_s3_clientS3ClientArgsCreator_s3_args_creatortranslate_crt_exception_crt_exception_translator_future_coordinators threading Semaphore _semaphore _id_counter)self crt_s3_clientcrt_request_serializerosutils r+__init__CRTTransferManager.__init__sc >"9DL+ 3 "LL!  # : : &%'!#--c2rJcU$r"r_s r+ __enter__CRTTransferManager.__enter__s rJc<SnU(aSnURU5 g)NFT _shutdown)r_exc_type exc_valueargscancels r+__exit__CRTTransferManager.__exit__s F vrJcUc0nUc0nURX@R5 URU5 [UUUUUS9nUR SU5$)Nbucketkeyfileobj extra_args subscribers get_object)_validate_all_known_argsALLOWED_DOWNLOAD_ARGS_validate_if_bucket_supportedr_submit_transfer)r_rurvrwrxrycallargss r+downloadCRTTransferManager.downloadsj  J  K %%j2L2LM **62!#  $$\8<>I K00FF# L"00==M MN  & &~ 6 !!((5 A    % %a .++<<2E=G !   s-A8D(( E/23E**E/)rYrUrZr^rTrWr]r"NNF)__name__ __module__ __qualname____firstlineno__rr|rrrrrcrhrqrrrrr}r{rrrrrlrr~__static_attributes__rfrJr+rPrPs+AA)==)=='+$#2#O#O :BF=$=" @  % !@ ("'rJrPcR\rSrSrSrS Sjr\S5r\S5r\S5r Sr g) riz*Holds metadata about the CRTTransferFutureNc*XlX l0Ulgr") _transfer_id _call_args _user_context)r_rrs r+rcCRTTransferMeta.__init__s'#rJcUR$r")rrgs r+rCRTTransferMeta.call_argss rJcUR$r")rrgs r+rCRTTransferMeta.transfer_ids   rJcUR$r")rrgs r+ user_contextCRTTransferMeta.user_contexts!!!rJ)rrrr) rrrr__doc__rcpropertyrrrrrfrJr+rrsF4 !!""rJrcJ\rSrSrS Sjr\S5rSrS SjrSr Sr S r g) riNc@XlUc[5UlX lg)a2The future associated to a submitted transfer request via CRT S3 client :type meta: s3transfer.crt.CRTTransferMeta :param meta: The metadata associated to the transfer future. :type coordinator: s3transfer.crt.CRTTransferCoordinator :param coordinator: The coordinator associated to the transfer future. N)_metar _coordinator)r_rrs r+rcCRTTransferFuture.__init__s <(*DJ'rJcUR$r")rrgs r+rCRTTransferFuture.metas zzrJc6URR5$r")rrrgs r+rCRTTransferFuture.dones  %%''rJc:URRU5 gr")rrr_timeouts r+rCRTTransferFuture.results   )rJc8URR5 gr")rrprgs r+rpCRTTransferFuture.cancels   "rJcxUR5(d [S5eURRUSS9 g)z!Sets the exception on the future.z?set_exception can only be called once the transfer is complete.T)overrideN)rrrrr_ exceptions r+rCRTTransferFuture.set_exceptions:yy{{&  '' D'ArJ)rrrr") rrrrrcrrrrrprrrfrJr+rrs0 ((*#BrJrc \rSrSrSrSrSrg)BaseCRTRequestSerializeric[S5e)a4Serialize CRT HTTP requests. :type transfer_type: string :param transfer_type: the type of transfer made, e.g 'put_object', 'get_object', 'delete_object' :type future: s3transfer.crt.CRTTransferFuture :rtype: awscrt.http.HttpRequest :returns: An unsigned HTTP request to be used for the CRT S3 client zserialize_http_request()NotImplementedError)r_ transfer_typers r+serialize_http_request/BaseCRTRequestSerializer.serialize_http_requests""<==rJc[S5e)Nztranslate_crt_exception()r rs r+rX0BaseCRTRequestSerializer.translate_crt_exceptions!"=>>rJrfN)rrrrrrXrrfrJr+r r s  >?rJr c`\rSrSrSSjrSrSrSrSrSr S r S r S r S r S rSrSrg)BotocoreCRTRequestSerializeriNc.XlUc0nURX5 [U40UD6UlURRR R SUR5 URRR R SUR5 URRR R SUR5 URRR R SUR5 g)aSerialize CRT HTTP request using botocore logic It also takes into account configuration from both the session and any keyword arguments that could be passed to `Session.create_client()` when serializing the request. :type session: botocore.session.Session :type client_kwargs: Optional[Dict[str, str]]) :param client_kwargs: The kwargs for the botocore s3 client initialization. Nzrequest-created.s3.*zafter-call.s3.*zbefore-send.s3.*zbefore-call.s3.*) _session_resolve_client_configr_clientreventsregister_capture_http_request+_change_response_to_serialized_http_request_make_fake_http_response_remove_checksum_context)r_session client_kwargss r+rc%BotocoreCRTRequestSerializer.__init__s  M ##G;+GE}E    )) "D$>$>    )) tOO    ))  = =    ))  = = rJcSnUR5(aUR5nSU;aUSn[[S9nU(aURU5nXBS'SUS'g)Nconfig)signature_versionr% service_name)get_default_client_configrrmerge)r_r r!user_provided_config client_configs r+r3BotocoreCRTRequestSerializer._resolve_client_configsh#  , , . .#*#D#D#F } $#0#: : 066}EM"/h(, n%rJc[UR5nURnUR(aUSUR3n/nURR 5HKupV[ U[5(aURXV45 M.URU[US545 MM [RRU5n[RRURUUURS9nU$)N?zutf-8)methodpathheaders body_stream)rurlr/queryr0r isinstancestrrr$http HttpHeaders HttpRequestr.body) r_ aws_request url_partscrt_path headers_listr)value crt_headers crt_requests r+_crt_request_from_aws_request:BotocoreCRTRequestSerializer._crt_request_from_aws_requests[__- >> ??"1Y__$56H &..446KD%%%##TM2##T3ug+>$?@ 7 kk--l; kk--%%#(( . rJc<URU5nURRS5c;[UR5nURR SUR 5 URRS5bURRS5 URRS5c)URcURRSS5 URRS5bURRS5 U$)Nhostz Content-MD5zContent-Length0zTransfer-Encoding) rAr0rrr2setnetlocremover9add)r_botocore_http_requestr@r;s r+_convert_to_crt_http_request9BotocoreCRTRequestSerializer._convert_to_crt_http_requests889NO    " "6 * 2 !6!:!:;I    # #FI,<,< =    " "= 1 =    & &} 5    " "#3 4 <$))1##''(8#>    " "#6 7 C    & &': ;rJc XRS'g)N http_request)contextr_requestrs r+r2BotocoreCRTRequestSerializer._capture_http_request4s*1'rJc 4USnUR5US'g)NrN HTTPRequest)prepare)r_rOparsedrrQs r+rHBotocoreCRTRequestSerializer._change_response_to_serialized_http_request7s.) ' 1}rJc X[RRSS0[S55$)NrJ)botocore awsrequest AWSResponseFakeRawResponserPs r+r5BotocoreCRTRequestSerializer._make_fake_http_response=s,""..    C   rJc[URU5"SURURS.URD6S$)N)BucketKeyrTrf)getattrrrurvrx)r_ client_methodrs r+_get_botocore_http_request7BotocoreCRTRequestSerializer._get_botocore_http_requestEsDt||]3 ## :C:N:N  rJcrURXRR5nURU5nU$r")rdrrrK)r_rrrJr@s r+r3BotocoreCRTRequestSerializer.serialize_http_requestJs9 $ ? ? ;;00! 778MN rJcx[U[RR5(aUR U5$gr")r4r$r%S3ResponseError _translate_crt_s3_response_errorrs r+rX4BotocoreCRTRequestSerializer.translate_crt_exceptionQs- i!:!: ; ;88C CrJcFURnUS:agURVVs0sHup4X4_M nnnURnUb<URRR nUR U5RnOSn[RRU5UURS.n URRRXS9n U RS05RS5n URRR!U 5n U "XS9$s snnf)Ni-)r0 status_coder9)shapeErrorCode)operation_name)rmr0rqrr service_modeloperation_model output_shaperZr[ HeadersDictr9_response_parserparser exceptions from_code) r_s3_response_errorrmkvr0rqrrrn response_dictparsed_response error_code error_classs r+rj=BotocoreCRTRequestSerializer._translate_crt_s3_response_errorWs'33  $5$=$=>$=DA14$=>*99  % LL--;;M!11.ANNEE **66w?&%** ,,77== > %(("599&A ll--77 C ?JJ'?sDc <URS05nSU;aUS gg)NrOchecksum)r)r_paramsrrequest_contexts r+r5BotocoreCRTRequestSerializer._remove_checksum_contextss' **Y3  ( + )rJ)rrr")rrrrrcrrArKrrrrdrrXrjrrrfrJr+rrs? < -,<22    K8,rJrc\rSrSrSSjrSrg)r]iyNc#J# URU5nU(dgUv M7fr")read)r_amtdecode_contentchunks r+streamFakeRawResponse.streamzs%IIcNEK s!#rf)iN)rrrrrrrfrJr+r]r]ysrJr]c,\rSrSrSrSrSrSrSrg)BotocoreCRTCredentialsWrappericXlgr"_resolved_credentials)r_resolved_botocore_credentialss r+rc&BotocoreCRTCredentialsWrapper.__init__s%B"rJcUR5R5n[URURUR 5$r")_get_credentialsget_frozen_credentialsr access_key secret_keytoken)r_ credentialss r+__call__&BotocoreCRTCredentialsWrapper.__call__s?++-DDF   " "K$:$:K/nTbUT- nU[TT5- nTbUT- nUHnTS:Xa U"USS9 MU"U0UD6 M g)Nprogressr)bytes_transferred)r)rorcallbacks_listcallbackrbefore_subscribers callback_typers r+invoke_all_callbacksBS3ClientArgsCreator.get_crt_callback..invoke_all_callbacksshN!-"44 mFMB BN ,"33*!J.tAw7d-f-+rJrf)r_rrrrrs ```` r+r$S3ClientArgsCreator.get_crt_callbacks . . $#rJc ^Sn[TR[5(a7TRnURR U5nUTR S'OTRTR S'Sn [ U4Sj[55(dTR RSS5R5n [RR[RRU [RRRS9n STR S'UR!UTUUUUS 9n X{S 'XS 'U $) N ContentLengthBodyc3B># UHnUTR;v M g7fr")rx).0 checksum_argrs r+ HS3ClientArgsCreator._get_make_request_args_put_object..s# 9  I00 0 9srCRC32) algorithmlocationzoverride-to-be-removed ContentMD5r send_filepathchecksum_config)r4rwr5r get_file_sizerxanyrpoprr$r%S3ChecksumConfigrS3ChecksumLocationTRAILERr) r_rrrrrrrdata_lenrrmake_request_argss ` r+!_get_make_request_args_put_object5S3ClientArgsCreator._get_make_request_args_put_object s> i'' - -%--M~~33MBH4+,  rJc SnSn[RRSS9n [UR[ 5(aMURn UR RU 5nUR[X:XpR 55 O[UR5nURUUUUUUS9n X{S'XS'XS'U $)NT)validate_responser recv_filepathon_bodyr) r$r%rr4rwr5rget_temp_filenamerRenameTempFileHandlerOnBodyFileObjWriterr) r_rrrrrrrrrfinal_filepathrs r+!_get_make_request_args_get_object5S3ClientArgsCreator._get_make_request_args_get_object<s  ))44t4L i'' - -&..N NN<<^LM ' '%  *)*;*;+,  rJcURRX5[[UR 5[R 5UR USXV5UR US5S.nUS[R :Xa*SRSURS555US'[5nURUR5=n (a2U S S:Xa)[[RS S S S 9US 'U SUl U$[UR5(a[[R S S S9US 'U$)Nrr)rQtyper on_progressrc3@# UHoR5v M g7fr")title)rxs r+rES3ClientArgsCreator._default_get_make_request_args..ys:#:a #:s_rqr2*F)rr2use_double_uri_encodeshould_normalize_uri_pathsigning_config resource_name)rrr)rrrbrrDEFAULTrrsplit_S3ArnParamHandler handle_arnrurr V4_ASYMMETRICr V4_S3EXPRESS) r_rrrrrrr arn_handleraccesspoint_arn_detailss r+r2S3ClientArgsCreator._default_get_make_request_args`s^//FF|113]5J5J,, 4 00D   V $ (=(= =24'':#/#5#5c#::3 . /)* '2'='=i>N>N'O O # O%h/25 3C-;;&+*/ 3 . / 7GI ! !!1!1 2 23C-::&+*/3 . / ! rJ)rrr) rrrrrcrrrrrrrfrJr+rVrVs*" *  $2-!^"!H4!rJrVc \rSrSrSrSrSrg)ric4XlX lX0lX@lgr")r_final_filename_temp_filenamerT)r_rfinal_filename temp_filenamerbs r+rcRenameTempFileHandler.__init__s'-+ rJc xUSnU(a&URRUR5 gURRURUR5 g![ aJnURRUR5 UR RU5 SnAgSnAff=f)Nr)rT remove_filer rename_filerrrr)r_rrrs r+rRenameTempFileHandler.__call__sw  LL $ $T%8%8 9 3 (('')=)= 3 (()<)<=!!//22 3s0A%% B9/AB44B9)rrrTrNrrrrrcrrrfrJr+rrs  3rJrc \rSrSrSrSrSrg)ricXlgr"rrs r+rcAfterDoneHandler.__init__s'rJc 8URR5 gr")rrrs r+rAfterDoneHandler.__call__s 557rJr)Nr&rfrJr+rrs (8rJrc \rSrSrSrSrSrg)ricXlgr"_fileobj)r_rws r+rcOnBodyFileObjWriter.__init__s rJc :URRU5 gr")r0write)r_rrs r+rOnBodyFileObjWriter.__call__s E"rJr/Nr&rfrJr+rrs  #rJrcT\rSrSrSr\R "S5rSrSr Sr Sr Sr g ) rizPartial port of S3ArnParamHandler from botocore. This is used to make a determination on MRAP accesspoints for signing purposes. This should be safe to remove once we properly integrate auth resolution from Botocore into the CRT transfer integration. zA^(?Paccesspoint|outpost)[/:](?P.+)$c"[5Ulgr")r _arn_parserrgs r+rc_S3ArnParamHandler.__init__s $;rJcDURU5nUcgUSS:XaU$g)N resource_type accesspoint)_get_arn_details_from_bucketr_ru arn_detailss r+r_S3ArnParamHandler.handle_arns377?     '= 8  9rJcURRU5nURU5 U$![a gf=fr")r7 parse_arn_add_resource_type_and_namerr=s r+r</_S3ArnParamHandler._get_arn_details_from_bucketsF **44Vrs r+rB._S3ArnParamHandler._add_resource_type_and_namesK$$**;z+BC +0;;+GK (+0;;+GK ( rJ)r7N) rrrrrrecompilerErcrr<rBrrfrJr+rrs/jjLO'HrJrr")GloggingrHr[ior awscrt.httpr$ awscrt.s3botocore.awsrequestrZbotocore.session awscrt.authrrrr awscrt.iorr r r r r rrrbotocore.compatrbotocore.configrbotocore.exceptionsrbotocore.utilsrrs3transfer.constantsrrs3transfer.exceptionsrs3transfer.futuresrrs3transfer.managerrs3transfer.utilsrrrrr getLoggerrrMr#r,rIr>rPrrr rr]rrrVrrrrrfrJr+r\s@  @?$"29>6C.   8 $6""f  Rj$HHV"&"*#B*#BL??&b,#;b,Jg**&F<F