progress_events
appimage_updater.events.progress_events
¶
Progress and status events for the AppImage Updater.
DownloadProgressEvent(app_name, filename, downloaded_bytes, total_bytes, speed_bps=None, **kwargs)
¶
Event for download progress updates.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
app_name
|
str
|
Name of the application being downloaded |
required |
filename
|
str
|
Name of the file being downloaded |
required |
downloaded_bytes
|
int
|
Bytes downloaded so far |
required |
total_bytes
|
int
|
Total bytes to download |
required |
speed_bps
|
float | None
|
Download speed in bytes per second |
None
|
**kwargs
|
Any
|
Additional event data |
{}
|
Source code in src/appimage_updater/events/progress_events.py
ProgressEvent(operation, current, total, message=None, **kwargs)
¶
Base class for progress-related events.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
operation
|
str
|
Name of the operation in progress |
required |
current
|
int
|
Current progress value |
required |
total
|
int
|
Total expected value |
required |
message
|
str | None
|
Optional progress message |
None
|
**kwargs
|
Any
|
Additional event data |
{}
|
Source code in src/appimage_updater/events/progress_events.py
UpdateCheckEvent(app_name, status, current_version=None, available_version=None, update_available=False, error=None, **kwargs)
¶
Event for update check progress and results.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
app_name
|
str
|
Name of the application being checked |
required |
status
|
str
|
Status of the check (checking, completed, error) |
required |
current_version
|
str | None
|
Current version of the application |
None
|
available_version
|
str | None
|
Available version if update exists |
None
|
update_available
|
bool
|
Whether an update is available |
False
|
error
|
str | None
|
Error message if check failed |
None
|
**kwargs
|
Any
|
Additional event data |
{}
|