MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / load_yaml_config

Function load_yaml_config

deployments/feishu/daily-push-agent/main.py:356–364  ·  view source on GitHub ↗

Load a YAML config file from the config directory.

(filename: str)

Source from the content-addressed store, hash-verified

354
355 config_file = os.path.join(CONFIG_PATH, filename)
356 if not os.path.exists(config_file):
357 return {}
358 with open(config_file, "r", encoding="utf-8") as f:
359 return yaml.safe_load(f) or {}
360
361
362def get_default_arxiv_categories() -> List[str]:
363 """Use all arXiv categories currently supported by the fetcher."""
364 categories = list(getattr(arxiv_fetcher, "CATEGORIES", {}).keys())
365 return categories or ["cs.AI", "cs.LG", "cs.CV"]
366
367

Callers 2

load_default_conferencesFunction · 0.85
load_default_journalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected