Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
s3transfer /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
27.5
KB
-rw-r--r--
2017-04-04 16:39
__init__.pyc
27.5
KB
-rw-r--r--
2017-04-04 16:40
compat.py
2.91
KB
-rw-r--r--
2017-04-04 16:39
compat.pyc
2.18
KB
-rw-r--r--
2017-04-04 16:40
copies.py
12.67
KB
-rw-r--r--
2017-04-04 16:39
copies.pyc
8.43
KB
-rw-r--r--
2017-04-04 16:40
delete.py
2.52
KB
-rw-r--r--
2017-04-04 16:39
delete.pyc
2.49
KB
-rw-r--r--
2017-04-04 16:40
download.py
26.82
KB
-rw-r--r--
2017-04-04 16:39
download.pyc
25.2
KB
-rw-r--r--
2017-04-04 16:40
exceptions.py
1.06
KB
-rw-r--r--
2017-04-04 16:39
exceptions.pyc
1.55
KB
-rw-r--r--
2017-04-04 16:40
futures.py
19.9
KB
-rw-r--r--
2017-04-04 16:39
futures.pyc
23.24
KB
-rw-r--r--
2017-04-04 16:40
manager.py
25.16
KB
-rw-r--r--
2017-04-04 16:39
manager.pyc
21.01
KB
-rw-r--r--
2017-04-04 16:40
subscribers.py
3.54
KB
-rw-r--r--
2017-04-04 16:39
subscribers.pyc
3.71
KB
-rw-r--r--
2017-04-04 16:40
tasks.py
15.46
KB
-rw-r--r--
2017-04-04 16:39
tasks.pyc
11
KB
-rw-r--r--
2017-04-04 16:40
upload.py
28.27
KB
-rw-r--r--
2017-04-04 16:39
upload.pyc
24.81
KB
-rw-r--r--
2017-04-04 16:40
utils.py
23.98
KB
-rw-r--r--
2017-04-04 16:39
utils.pyc
26.5
KB
-rw-r--r--
2017-04-04 16:40
Save
Rename
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. from botocore.compat import six from s3transfer.compat import accepts_kwargs from s3transfer.exceptions import InvalidSubscriberMethodError class BaseSubscriber(object): """The base subscriber class It is recommended that all subscriber implementations subclass and then override the subscription methods (i.e. on_{subsribe_type}() methods). """ VALID_SUBSCRIBER_TYPES = [ 'queued', 'progress', 'done' ] def __new__(cls, *args, **kwargs): cls._validate_subscriber_methods() return super(BaseSubscriber, cls).__new__(cls) @classmethod def _validate_subscriber_methods(cls): for subscriber_type in cls.VALID_SUBSCRIBER_TYPES: subscriber_method = getattr(cls, 'on_' + subscriber_type) if not six.callable(subscriber_method): raise InvalidSubscriberMethodError( 'Subscriber method %s must be callable.' % subscriber_method) if not accepts_kwargs(subscriber_method): raise InvalidSubscriberMethodError( 'Subscriber method %s must accept keyword ' 'arguments (**kwargs)' % subscriber_method) def on_queued(self, future, **kwargs): """Callback to be invoked when transfer request gets queued This callback can be useful for: * Keeping track of how many transfers have been requested * Providing the expected transfer size through future.meta.provide_transfer_size() so a HeadObject would not need to be made for copies and downloads. :type future: s3transfer.futures.TransferFuture :param future: The TransferFuture representing the requested transfer. """ pass def on_progress(self, future, bytes_transferred, **kwargs): """Callback to be invoked when progress is made on transfer This callback can be useful for: * Recording and displaying progress :type future: s3transfer.futures.TransferFuture :param future: The TransferFuture representing the requested transfer. :type bytes_transferred: int :param bytes_transferred: The number of bytes transferred for that invocation of the callback. Note that a negative amount can be provided, which usually indicates that an in-progress request needed to be retried and thus progress was rewound. """ pass def on_done(self, future, **kwargs): """Callback to be invoked once a transfer is done This callback can be useful for: * Recording and displaying whether the transfer succeeded or failed using future.result() * Running some task after the transfer completed like changing the last modified time of a downloaded file. :type future: s3transfer.futures.TransferFuture :param future: The TransferFuture representing the requested transfer. """ pass