We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/devonmojito/ton-blockchain-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
_pickle_api.py•631 B
from typing import Optional
from . import cloudpickle
from .util import JSONInput, JSONOutput
def pickle_dumps(data: JSONInput, protocol: Optional[int] = None) -> bytes:
"""Serialize a Python object with pickle.
data: The object to serialize.
protocol (int): Protocol to use. -1 for highest.
RETURNS (bytes): The serialized object.
"""
return cloudpickle.dumps(data, protocol=protocol)
def pickle_loads(data: bytes) -> JSONOutput:
"""Deserialize bytes with pickle.
data (bytes): The data to deserialize.
RETURNS: The deserialized Python object.
"""
return cloudpickle.loads(data)