Skip to main content
Glama
base.py726 B
# apaper/platforms/base.py from abc import ABC, abstractmethod from ..models.paper import Paper class PaperSource(ABC): """Abstract base class for paper sources""" @abstractmethod def search(self, query: str, **kwargs) -> list[Paper]: """Search for papers based on query""" raise NotImplementedError @abstractmethod def download_pdf(self, paper_id: str, save_path: str) -> str: """Download PDF of a paper""" raise NotImplementedError @abstractmethod def read_paper(self, paper_id: str, save_path: str, start_page: int | None = None, end_page: int | None = None) -> str: """Read and extract text content from a paper""" raise NotImplementedError

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jiahaoxiang2000/all-in-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server