def expose(func):
    """Decorator that enables RPC access to the decorated function.

    *func* will not be wrapped but only gain an ``__rpc__`` attribute.
    """
    if not hasattr(func, "__call__"):
        raise ValueError('"{}" is not callable.'.format(func))

    func.__rpc__ = True
    return func