/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/__pycache__/crt.cpython-313.pyc (42868B)
j S SK r S SKrS SKrS SKJr S SKrS SKrS SKr S SK
r S SKJrJ
r
JrJr S SKJrJrJrJrJr S SKJrJrJr S SK Jr S SKJr S SKJr S S KJr S S
K J!r!J"r" S SK#J$r$J%r% S SK&J'r' S S
K(J)r)J*r* S SK+J,r, S SK-J.r.J/r/J0r0J1r1J2r2 \ Rf " \45 r5Sq6S r7SSSS\%- SS4S jr8S/S jr9 " S S5 r: " S S\*5 r; " S S\)5 r< " S S5 r= " S S\=5 r> " S S \5 r? " S! S"5 r@ " S# S$5 rA " S% S&5 rB " S' S(5 rC " S) S*5 rD " S+ S,5 rE " S- S.5 rFg)0 N)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 [ R R U 5 n UR 5 Uq [ $ ! [
a g f = fN)CRT_S3_PROCESS_LOCKawscrts3CrossProcessLockacquireRuntimeError)namecrt_locks A/usr/lib/rads/venv/lib/python3.13/site-packages/s3transfer/crt.pyacquire_crt_s3_process_lockr, ; sS "99--d3 '
s A
A
A
Tc T [ U5 n[ U5 n[ Xx5 n Sn
U( a [ R O[ R
nUbC [
5 nU( a UR US9 OSUl [ U5 n
U
R 5 n
[ US9n[ U U UUUU
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
r r ENABLEDDISABLEDr &override_default_trust_store_from_pathverify_peerr new_connection_options_get_crt_throughput_target_gbpsr
)r2 crt_credentials_providernum_threadstarget_throughputr4 use_sslverifyevent_loop_group
host_resolverr1 r6 r5 tls_ctx_optionsclient_tls_optiontarget_gbpss r+ create_s3_crt_clientrI T s h &k2'(89M 0@I! %, 1A1J1J
+-BB"
C
+0O',_=!2!I!I!K1):K 45* c U c: [ R R 5 n[ R SU5 Uc SnOU S- 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)r0 rH s r+ r> r> s_ '/iiFFH;[
K 7:]J
LL:KHrJ c \ rS rSr\R
r\R r\R rSr\R r SS jr
S rS r SS jr
SS jrSS jrSS
jrS rS rS
rS rS rS rSS jrS rS rSrg)CRTTransferManager TNc Uc [ 5 U l Xl [ X R 5 U l UR
U l / U l [ R " S5 U l
SU l g)a A 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.
N r )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!
#::
& %'!#--c2rJ c U $ r" r_ s r+ __enter__CRTTransferManager.__enter__ s rJ c <