MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / iter_items

Method iter_items

aura/cache.py:40–53  ·  view source on GitHub ↗
(cls, tags=None)

Source from the content-addressed store, hash-verified

38
39 @classmethod
40 def iter_items(cls, tags=None) -> Generator[CacheItem, None, None]:
41 tags = set(tags or ())
42
43 for x in Cache.get_location().iterdir():
44 if not x.name.endswith(".metadata.json"):
45 continue
46
47 obj = cls(x)
48
49 if tags:
50 if obj.type in tags or tags.intersection(obj.tags):
51 yield obj
52 else:
53 yield obj
54
55 @property
56 def mtime(self) -> int:

Callers 8

test_mirror_cacheFunction · 0.80
test_url_cachingFunction · 0.80
test_pypi_cacheFunction · 0.80
test_ast_cacheFunction · 0.80
test_cache_tag_filteringFunction · 0.80
cleanupFunction · 0.80
analyzeMethod · 0.80

Calls 1

get_locationMethod · 0.80

Tested by 6

test_mirror_cacheFunction · 0.64
test_url_cachingFunction · 0.64
test_pypi_cacheFunction · 0.64
test_ast_cacheFunction · 0.64
test_cache_tag_filteringFunction · 0.64