class documentation
class PackDataProgressWrapper:
Constructor: PackDataProgressWrapper(file_write, progress, report_interval, report_byte_threshold)
Wrapper that reports progress during pack data reception.
This wrapper tracks bytes received during pack file download and periodically reports progress to match Git's behavior of showing: "Receiving objects: X% (current/total), Y MiB | Z MiB/s"
| Parameters | |
| file | The underlying write function to call with received data |
| progress | Optional progress callback to report progress messages to |
| report | Minimum time between progress reports in seconds (default 0.5) |
| report | Minimum bytes between progress reports (default 1 MiB) |
| Method | __call__ |
Called with each chunk of pack data. |
| Method | __init__ |
Undocumented |
| Method | finalize |
Report final progress with a newline. |
| Instance Variable | bytes |
Undocumented |
| Instance Variable | file |
Undocumented |
| Instance Variable | header |
Undocumented |
| Instance Variable | header |
Undocumented |
| Instance Variable | last |
Undocumented |
| Instance Variable | last |
Undocumented |
| Instance Variable | progress |
Undocumented |
| Instance Variable | report |
Undocumented |
| Instance Variable | report |
Undocumented |
| Instance Variable | start |
Undocumented |
| Instance Variable | total |
Undocumented |
| Method | _parse |
Parse the pack file header to extract the total object count. |
| Method | _report |
Generate and send a progress message. |