Skip to main content
Glama
_util.py635 B
from __future__ import annotations import os from typing import Any, NoReturn from ._typing import StrOrBytesPath, TypeGuard def is_path(f: Any) -> TypeGuard[StrOrBytesPath]: return isinstance(f, (bytes, str, os.PathLike)) class DeferredError: def __init__(self, ex: BaseException): self.ex = ex def __getattr__(self, elt: str) -> NoReturn: raise self.ex @staticmethod def new(ex: BaseException) -> Any: """ Creates an object that raises the wrapped exception ``ex`` when used, and casts it to :py:obj:`~typing.Any` type. """ return DeferredError(ex)

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/Lillard01/chatExcel-mcp'

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