citric.method¶ RPC methods. Classes¶ Method RPC method. Module Contents¶ class citric.method.Method(caller, name)[source]¶ Bases: Generic[T] RPC method. Parameters: caller (Callable[[str], T]) – RPC caller function. name (str) – RPC method name. __getattr__(name)[source]¶ Get nested method. Parameters: name (str) – Method name. Returns: A new instance of Method for the nested call. Return type: Method[T] >>> method = Method(print, "some_method") >>> method.nested("x", "y") some_method.nested x y __call__(*params)[source]¶ Call RPC method. Parameters: params (Any) – RPC method parameters. Returns: An RPC result. Return type: T >>> method = Method(print, "some_method") >>> method(1, "a") some_method 1 a