MCPcopy
hub / github.com/RunaCapital/awesome-oss-alternatives / get_all_companies

Function get_all_companies

build_website.py:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def get_all_companies():
47 arr = []
48 for filename in os.listdir("submissions"):
49 if filename.endswith(".yaml"):
50 with open(f"submissions/{filename}", "r", encoding="utf-8") as file:
51 obj = yaml.load(file, yaml.Loader)
52 obj["category"] = appl(obj["category"])
53 obj["company_name"] = appl(obj["company_name"])
54 arr.append(obj)
55 return arr
56
57
58def get_all_categories(arr):

Callers 1

build_website.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected