MCPcopy Index your code
hub / github.com/karpathy/reader3 / get_list

Function get_list

reader3.py:153–155  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

151 Extracts metadata handling both single and list values.
152 """
153 def get_list(key):
154 data = book_obj.get_metadata('DC', key)
155 return [x[0] for x in data] if data else []
156
157 def get_one(key):
158 data = book_obj.get_metadata('DC', key)

Callers 1

extract_metadata_robustFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected