/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/s3/__pycache__
NameSizeModeActions
constants.cpython-313.pyc2550644editdlrm
inject.cpython-313.pyc300840644editdlrm
transfer.cpython-313.pyc161600644editdlrm
__init__.cpython-313.pyc1650644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/boto3/s3/__pycache__/inject.cpython-313.pyc (30084B)
jvSSKrSSKrSSKJr SSKJr SSKJr SSK J r SSK J r J r JrJr SSKJr SS KJr \R,"\5rS rS rSrSrSrSr\"\"\S55S$Sj5r\"\"\S55S$Sj5r S$Sjr!S$Sjr"S$Sjr#S$Sjr$\"\"\S55S%Sj5rS%Sjr%S%Sjr&\"\"\S55S$Sj5r'S$Sjr(S$Sjr)Sr*\"\"\S55S$S j5r+S$S!jr,S$S"jr-g!\a SSKJr S#S jrNf=f!\a S rGNf=f)&N)partial) ClientError)utils)is_append_mode)ProgressCallbackInvoker S3TransferTransferConfigcreate_transfer_manager)with_current_contextwrapsc SnU$)Nc0^[T5U4Sj5nU$)Nc>T"U0UD6$N)argskwargsfuncs B/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/s3/inject.pywrapper8with_current_context..decorator..wrapper#sT,V,,r )rrs` r decorator'with_current_context..decorator"s 4[ - -Nrr)hookrs rr r !s r)register_feature_idcgrr) feature_ids rrr0s rc [R"US[5 [R"US[5 [R"US[5 [R"US[ 5 [R"US[ 5 gN upload_file download_filecopyupload_fileobjdownload_fileobj)rinject_attributer"r#r$r%r&class_attributesrs rinject_s3_transfer_methodsr*7sf +]KH +_mL +VT: +-=~N ,.>rc T[R"US[5 [R"US[5 [R"US[5 [R"US[ 5 [R"US[ 5 [R"US[5 g)Nloadr"r#r$r%r&)rr' bucket_loadbucket_upload_filebucket_download_file bucket_copybucket_upload_fileobjbucket_download_fileobjr(s rinject_bucket_methodsr3As +V[A +]`. :type Filename: str :param Filename: The path to the file to upload. :type Bucket: str :param Bucket: The name of the bucket to upload to. :type Key: str :param Key: The name of the key to upload to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. )filenamebucketrU extra_argscallbackN)rr")rKFilenamerOrP ExtraArgsCallbackConfigtransfers rr"r"s=L D !X##  $  " ! !) 7c t[X5nURUUUUUS9sSSS5 $!,(df  g=f)aDownload an S3 object to a file. Usage:: import boto3 s3 = boto3.client('s3') s3.download_file('amzn-s3-demo-bucket', 'hello.txt', '/tmp/hello.txt') Similar behavior as S3Transfer's download_file() method, except that parameters are capitalized. Detailed examples can be found at :ref:`S3Transfer's Usage `. :type Bucket: str :param Bucket: The name of the bucket to download from. :type Key: str :param Key: The name of the key to download from. :type Filename: str :param Filename: The path to the file to download to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. )rZrUrYr[r\N)rr#)rKrOrPr]r^r_r`ras rr#r#s=L D !X%%  &  " ! !rbc fURRRUURUUUUS9$)aUpload a file to an S3 object. Usage:: import boto3 s3 = boto3.resource('s3') s3.Bucket('amzn-s3-demo-bucket').upload_file('/tmp/hello.txt', 'hello.txt') Similar behavior as S3Transfer's upload_file() method, except that parameters are capitalized. Detailed examples can be found at :ref:`S3Transfer's Usage `. :type Filename: str :param Filename: The path to the file to upload. :type Key: str :param Key: The name of the key to upload to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. r]rOrPr^r_r`)rDrFr"rH)rKr]rPr^r_r`s rr.r.s=D 99   ' 'yy  ( rc fURRRURUUUUUS9$)aDownload an S3 object to a file. Usage:: import boto3 s3 = boto3.resource('s3') s3.Bucket('amzn-s3-demo-bucket').download_file('hello.txt', '/tmp/hello.txt') Similar behavior as S3Transfer's download_file() method, except that parameters are capitalized. Detailed examples can be found at :ref:`S3Transfer's Usage `. :type Key: str :param Key: The name of the key to download from. :type Filename: str :param Filename: The path to the file to download to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. rOrPr]r^r_r`)rDrFr#rH)rKrPr]r^r_r`s rr/r/s=D 99   ) )yy  * rc zURRRUURURUUUS9$)aUpload a file to an S3 object. Usage:: import boto3 s3 = boto3.resource('s3') s3.Object('amzn-s3-demo-bucket', 'hello.txt').upload_file('/tmp/hello.txt') Similar behavior as S3Transfer's upload_file() method, except that parameters are capitalized. Detailed examples can be found at :ref:`S3Transfer's Usage `. :type Filename: str :param Filename: The path to the file to upload. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. re)rDrFr"rTrUrKr]r^r_r`s rr5r5@sB> 99   ' ' HH ( rc zURRRURURUUUUS9$)aDownload an S3 object to a file. Usage:: import boto3 s3 = boto3.resource('s3') s3.Object('amzn-s3-demo-bucket', 'hello.txt').download_file('/tmp/hello.txt') Similar behavior as S3Transfer's download_file() method, except that parameters are capitalized. Detailed examples can be found at :ref:`S3Transfer's Usage `. :type Filename: str :param Filename: The path to the file to download to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the transfer. rg)rDrFr#rTrUris rr6r6isB> 99   ) ) HH * rc SnUb [U5/nUn U c [5n [R"U 5n SU l[ X 5n U RUUUUUUS9n U R 5sSSS5 $!,(df  g=f)aSCopy an object from one S3 location to another. This is a managed transfer which will perform a multipart copy in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') copy_source = { 'Bucket': 'amzn-s3-demo-bucket1', 'Key': 'mykey' } s3.meta.client.copy(copy_source, 'amzn-s3-demo-bucket2', 'otherkey') :type CopySource: dict :param CopySource: The name of the source bucket, key name of the source object, and optional version ID of the source object. The dictionary format is: ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note that the ``VersionId`` key is optional and may be omitted. :type Bucket: str :param Bucket: The name of the bucket to copy to :type Key: str :param Key: The name of the key to copy to :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed copy arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the copy. :type SourceClient: botocore or boto3 Client :param SourceClient: The client to be used for operation that may happen at the source object. For example, this client is used for the head_object that determines the size of the copy. If no client is provided, the current client is used as the client for the source object. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the copy. Nclassic) copy_sourcerZrUr[ subscribers source_client)rr python_copyr$preferred_transfer_clientr result) rK CopySourcerOrPr^r_ SourceClientr`rnconfig new_configmanagerfutures rr$r$svK.x89 F ~!!!&)J+4J(  2g" #&  }} 3 2 2s $A77 Bc hURRRUURUUUUUS9$)a/Copy an object from one S3 location to an object in this bucket. This is a managed transfer which will perform a multipart copy in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') copy_source = { 'Bucket': 'amzn-s3-demo-bucket1', 'Key': 'mykey' } bucket = s3.Bucket('amzn-s3-demo-bucket2') bucket.copy(copy_source, 'otherkey') :type CopySource: dict :param CopySource: The name of the source bucket, key name of the source object, and optional version ID of the source object. The dictionary format is: ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note that the ``VersionId`` key is optional and may be omitted. :type Key: str :param Key: The name of the key to copy to :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed copy arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the copy. :type SourceClient: botocore or boto3 Client :param SourceClient: The client to be used for operation that may happen at the source object. For example, this client is used for the head_object that determines the size of the copy. If no client is provided, the current client is used as the client for the source object. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the copy. rsrOrPr^r_rtr`)rDrFr$rH)rKrsrPr^r_rtr`s rr0r0s@n 99   yy ! ! rc |URRRUURURUUUUS9$)aCopy an object from one S3 location to this object. This is a managed transfer which will perform a multipart copy in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') copy_source = { 'Bucket': 'amzn-s3-demo-bucket1', 'Key': 'mykey' } bucket = s3.Bucket('amzn-s3-demo-bucket2') obj = bucket.Object('otherkey') obj.copy(copy_source) :type CopySource: dict :param CopySource: The name of the source bucket, key name of the source object, and optional version ID of the source object. The dictionary format is: ``{'Bucket': 'bucket', 'Key': 'key', 'VersionId': 'id'}``. Note that the ``VersionId`` key is optional and may be omitted. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed copy arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_COPY_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the copy. :type SourceClient: botocore or boto3 Client :param SourceClient: The client to be used for operation that may happen at the source object. For example, this client is used for the head_object that determines the size of the copy. If no client is provided, the current client is used as the client for the source object. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the copy. rz)rDrFr$rTrU)rKrsr^r_rtr`s rr7r7'sFh 99    HH! ! rc  [US5(d [S5eSnUb [U5/nUnUc [5n[ X5n U R UUUUUS9n U R 5sSSS5 $!,(df  g=f)aWUpload a file-like object to S3. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart upload in multiple threads if necessary. Usage:: import boto3 s3 = boto3.client('s3') with open('filename', 'rb') as data: s3.upload_fileobj(data, 'amzn-s3-demo-bucket', 'mykey') :type Fileobj: a file-like object :param Fileobj: A file-like object to upload. At a minimum, it must implement the `read` method, and must return bytes. :type Bucket: str :param Bucket: The name of the bucket to upload to. :type Key: str :param Key: The name of the key to upload to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the upload. readzFileobj must implement readN)fileobjrZrUr[rn)hasattr ValueErrorrr r uploadrr) rKFileobjrOrPr^r_r`rnrurwrxs rr%r%fsT 7F # #677K.x89 F ~!  .' #   }} / . .s #A55 Bc fURRRUURUUUUS9$)a6Upload a file-like object to this bucket. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart upload in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') bucket = s3.Bucket('amzn-s3-demo-bucket') with open('filename', 'rb') as data: bucket.upload_fileobj(data, 'mykey') :type Fileobj: a file-like object :param Fileobj: A file-like object to upload. At a minimum, it must implement the `read` method, and must return bytes. :type Key: str :param Key: The name of the key to upload to. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the upload. rrOrPr^r_r`)rDrFr%rH)rKrrPr^r_r`s rr1r1s=N 99   * *yy  + rc zURRRUURURUUUS9$)a Upload a file-like object to this object. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart upload in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') bucket = s3.Bucket('amzn-s3-demo-bucket') obj = bucket.Object('mykey') with open('filename', 'rb') as data: obj.upload_fileobj(data) :type Fileobj: a file-like object :param Fileobj: A file-like object to upload. At a minimum, it must implement the `read` method, and must return bytes. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed upload arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the upload. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the upload. r)rDrFr%rTrUrKrr^r_r`s rr8r8sCJ 99   * * HH + rc^[U5(aSUl[RS5 gg)a@Set `TransferConfig.use_threads` to `False` if file-like object is in append mode. :type config: boto3.s3.transfer.TransferConfig :param config: The transfer configuration to be used when performing the download. :type fileobj: A file-like object :param fileobj: A file-like object to inspect for append mode. FzA single thread will be used because the provided file object is in append mode. Writes may always be appended to the end of the file regardless of seek position, so a single thread must be used to ensure sequential writes.N)r use_threadsloggerwarning)rur~s r disable_threading_if_append_moders-g" 0 rc N[US5(d [S5eSnUb [U5/nUnUc [5n[R "U5n [ X5 [X 5n U RUUUUUS9n U R5sSSS5 $!,(df  g=f)aDownload an object from S3 to a file-like object. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart download in multiple threads if necessary. Usage:: import boto3 s3 = boto3.client('s3') with open('filename', 'wb') as data: s3.download_fileobj('amzn-s3-demo-bucket', 'mykey', data) :type Bucket: str :param Bucket: The name of the bucket to download from. :type Key: str :param Key: The name of the key to download from. :type Fileobj: a file-like object :param Fileobj: A file-like object to download into. At a minimum, it must implement the `write` method and must accept bytes. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the download. writezFileobj must implement writeN)rZrUr~r[rn) rrrr rpr$rr downloadrr) rKrOrPrr^r_r`rnrurvrwrxs rr&r&sT 7G $ $788K.x89 F ~!!!&)J$Z9  2g!! # " }} 3 2 2s )#B B$c fURRRURUUUUUS9$)a^Download an object from this bucket to a file-like-object. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart download in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') bucket = s3.Bucket('amzn-s3-demo-bucket') with open('filename', 'wb') as data: bucket.download_fileobj('mykey', data) :type Fileobj: a file-like object :param Fileobj: A file-like object to download into. At a minimum, it must implement the `write` method and must accept bytes. :type Key: str :param Key: The name of the key to download from. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the download. rOrPrr^r_r`)rDrFr&rH)rKrPrr^r_r`s rr2r2^s=N 99   , ,yy  - rc zURRRURURUUUUS9$)a*Download this object from S3 to a file-like object. The file-like object must be in binary mode. This is a managed transfer which will perform a multipart download in multiple threads if necessary. Usage:: import boto3 s3 = boto3.resource('s3') bucket = s3.Bucket('amzn-s3-demo-bucket') obj = bucket.Object('mykey') with open('filename', 'wb') as data: obj.download_fileobj(data) :type Fileobj: a file-like object :param Fileobj: A file-like object to download into. At a minimum, it must implement the `write` method and must accept bytes. :type ExtraArgs: dict :param ExtraArgs: Extra arguments that may be passed to the client operation. For allowed download arguments see :py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`. :type Callback: function :param Callback: A method which takes a number of bytes transferred to be periodically called during the download. :type Config: boto3.s3.transfer.TransferConfig :param Config: The transfer configuration to be used when performing the download. r)rDrFr&rTrUrs rr9r9sCJ 99   , , HH - rr)NNN)NNNN).r$rplogging functoolsrbotocore.exceptionsrboto3r boto3.compatrboto3.s3.transferrrr r botocore.contextr ImportErrorr botocore.useragentr getLogger__name__rr*r3r:r=r-r<r"r#r.r/r5r6r0r7r%r1r8rr&r2r9rrrrs+' 5 6   8 $  J2 g1=ABGK, C, ^g1=ABGK, C, `@D)Z@D)Z;?&T;?&Rg1=AB   OCOl  ?J   <~g1=ABFJ<C<@?C.d:>,^ *g1=ABFJ?C?F?C.d:>,c      s"D D7 D43D47 EE