IPWorks OpenPGP 2020 Python Edition

Questions / Feedback?

on_progress Event

Fired as progress is made.


class SDAProgressEventParams(object):
  def filename() -> str: ...
  def bytes_processed() -> int: ...
  def percent_processed() -> int: ...

# In class SDA:
def on_progress() -> Callable[[SDAProgressEventParams], None]: ...
def on_progress(event_hook: Callable[[SDAProgressEventParams], None]) -> None: ...


The on_progress event is automatically fired as compression is performed.

Filename contains the name of the file being written.

BytesProcessed contains the total number of uncompressed bytes processed.

PercentProcessed contains the percent of uncompressed bytes processed, corresponding roughly to the running time of the operation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 Python Edition - Version 20.0 [Build 8161]