MCPcopy Create free account
hub / github.com/libgit2/pygit2 / TransferProgress

Class TransferProgress

pygit2/remotes.py:112–143  ·  view source on GitHub ↗

Progress downloading and indexing data during a fetch.

Source from the content-addressed store, hash-verified

110
111
112class TransferProgress:
113 """Progress downloading and indexing data during a fetch."""
114
115 total_objects: int
116 indexed_objects: int
117 received_objects: int
118 local_objects: int
119 total_deltas: int
120 indexed_deltas: int
121 received_bytes: int
122
123 def __init__(self, tp: Any) -> None:
124 self.total_objects = tp.total_objects
125 """Total number of objects to download"""
126
127 self.indexed_objects = tp.indexed_objects
128 """Objects which have been indexed"""
129
130 self.received_objects = tp.received_objects
131 """Objects which have been received up to now"""
132
133 self.local_objects = tp.local_objects
134 """Local objects which were used to fix the thin pack"""
135
136 self.total_deltas = tp.total_deltas
137 """Total number of deltas in the pack"""
138
139 self.indexed_deltas = tp.indexed_deltas
140 """Deltas which have been indexed"""
141
142 self.received_bytes = tp.received_bytes
143 """"Number of bytes received up to now"""
144
145
146class Remote:

Callers 2

_transfer_progress_cbFunction · 0.85
fetchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…