Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/s3transfer/__pycache__/subscribers.cpython-37.pyc

48 lines
3.4 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>[<5B>],<00>@s8ddlmZddlmZddlmZGdd<05>de<06>ZdS)<07>)<01>six)<01>accepts_kwargs)<01>InvalidSubscriberMethodErrorcsNeZdZdZdddgZ<04>fdd<06>Zedd<08><00>Zd d
<EFBFBD>Zd d <0C>Z d d<0E>Z
<EFBFBD>Z S)<0F>BaseSubscriberz<72>The base subscriber class
It is recommended that all subscriber implementations subclass and then
override the subscription methods (i.e. on_{subsribe_type}() methods).
Zqueued<65>progress<73>donecs|<00><00>tt|<00><02>|<00>S)N)<04>_validate_subscriber_methods<64>superr<00>__new__)<03>cls<6C>args<67>kwargs)<01> __class__<5F><00>>/tmp/pip-install-u_6_z2pz/s3transfer/s3transfer/subscribers.pyr
szBaseSubscriber.__new__cCsLxF|jD]<}t|d|<00>}t<02>|<02>s0td|<00><01>t|<02>std|<00><01>qWdS)NZon_z&Subscriber method %s must be callable.z=Subscriber method %s must accept keyword arguments (**kwargs))<06>VALID_SUBSCRIBER_TYPES<45>getattrr<00>callablerr)r Zsubscriber_typeZsubscriber_methodrrrr#s 
z+BaseSubscriber._validate_subscriber_methodscKsdS)a<>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.
Nr)<03>self<6C>futurer rrr<00> on_queued1s zBaseSubscriber.on_queuedcKsdS)ajCallback 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.
Nr)rrZbytes_transferredr rrr<00> on_progress@szBaseSubscriber.on_progresscKsdS)a<>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.
Nr)rrr rrr<00>on_doneRs zBaseSubscriber.on_done) <0C>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr
<00> classmethodrrrr<00> __classcell__rr)rrrs  rN)Zbotocore.compatrZs3transfer.compatrZs3transfer.exceptionsr<00>objectrrrrr<00><module> s