MCPcopy
hub / github.com/vladmandic/sdnext / get

Method get

cli/search-docs.py:82–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 return 0.0
81
82 def get(self):
83 try:
84 with open(self.fn, 'r', encoding='utf-8') as f:
85 content = f.read()
86 return content
87 except Exception as e:
88 log.error(f'Wiki: page="{self.fn}" {e}')
89 return ''
90
91 def __str__(self):
92 return f'Page(title="{self.title.strip()}" file="{self.fn}" mtime={self.mtime} h1={[h.strip() for h in self.h1]} h2={len(self.h2)} h3={len(self.h3)} lines={len(self.lines)} size={self.size})'

Callers 15

get_nightlyFunction · 0.45
_getattrFunction · 0.45
api-checkpoint.pyFile · 0.45
getFunction · 0.45
api-history.pyFile · 0.45
api-img2img.pyFile · 0.45
api-vqa.pyFile · 0.45
getFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected