import json # Generates mainheader with dynamic project count def generate_mainheader(): with open("source/data/applications.json", "r", encoding="utf-8") as f: data = json.load(f) project_count = len(data.get("applications", [])) header_content = f"""
πŸ‡ΊπŸ‡¦ v0.5.2-beta

[ definitive-opensource ]

A definitive list of the best of everything open source

Status: Active - Projects: {project_count}

""" return header_content if __name__ == "__main__": generate_mainheader()