MCPcopy
hub / github.com/numpy/numpy / get_api_functions

Function get_api_functions

numpy/_core/code_generators/genapi.py:504–511  ·  view source on GitHub ↗

Parse source files to get functions tagged by the given tag.

(tagname, api_dict)

Source from the content-addressed store, hash-verified

502 raise ValueError(msg)
503
504def get_api_functions(tagname, api_dict):
505 """Parse source files to get functions tagged by the given tag."""
506 functions = []
507 for f in API_FILES:
508 functions.extend(find_functions(f, tagname))
509 dfunctions = [(api_dict[func.name][0], func) for func in functions]
510 dfunctions.sort()
511 return [a[1] for a in dfunctions]
512
513def fullapi_hash(api_dicts):
514 """Given a list of api dicts defining the numpy C API, compute a checksum

Callers 1

mainFunction · 0.85

Calls 2

find_functionsFunction · 0.85
sortMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…