Known subclasses: dulwich.greenthreads.GreenThreadsObjectStoreIterator

ObjectIterator that works on top of an ObjectStore.
Method __init__ Create a new ObjectIterator.
Method __iter__ Yield tuple with next object and path.
Method iterobjects Iterate over just the objects.
Method itershas Iterate over the SHAs.
Method __contains__ Check if an object is present.
Method __getitem__ Find an object by SHA1.
Method __len__ Return the number of objects.
Method empty Undocumented
Method __bool__ Indicate whether this object has contents.
def __init__(self, store, sha_iter):
Create a new ObjectIterator.
ParametersstoreObject store to retrieve from
sha_iterIterator over (sha, path) tuples
def __iter__(self):
Yield tuple with next object and path.
def iterobjects(self):
Iterate over just the objects.
def itershas(self):
Iterate over the SHAs.
def __contains__(self, needle):
Check if an object is present.
ParametersneedleSHA1 of the object to check for
NoteThis checks if the object is present in the underlying object store, not if it would be yielded by the iterator.
def __getitem__(self, key):
Find an object by SHA1.
NoteThis retrieves the object from the underlying object store. It will also succeed if the object would not be returned by the iterator.
def __len__(self):
Return the number of objects.
def empty(self):
Undocumented
def __bool__(self):
Indicate whether this object has contents.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.