|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/s3transfer/__pycache__/ |
U
P��g
| � @ s� d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z d dl
mZmZm
Z
mZ d dlmZmZmZmZ G dd � d �ZG d
d� d�ZG dd
� d
�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de
�ZG dd� de�ZG dd� de�ZdS )� N)�BytesIO��readable�seekable)�FULL_OBJECT_CHECKSUM_ARGS)�IN_MEMORY_UPLOAD_TAG)�CompleteMultipartUploadTask�CreateMultipartUploadTask�SubmissionTask�Task)�ChunksizeAdjuster�DeferredOpenFile�
get_callbacks�get_filtered_dictc @ s. e Zd Zddd�Zdd� Zdd� Zdd � Zd
S )�AggregatedProgressCallback� c C s || _ || _d| _dS )a� Aggregates progress updates for every provided progress callback
:type callbacks: A list of functions that accepts bytes_transferred
as a single argument
:param callbacks: The callbacks to invoke when threshold is reached
:type threshold: int
:param threshold: The progress threshold in which to take the
aggregated progress and invoke the progress callback with that
aggregated progress total
r N)�
_callbacks�
_threshold�_bytes_seen)�self� callbacks� threshold� r �>/opt/cppython/lib/python3.8/site-packages/s3transfer/upload.py�__init__"