towhee.runtime.factory.OpsParser¶
- class towhee.runtime.factory.OpsParser(func: Callable, name=None)[source]¶
Bases:
object
Runtime parsing of unknown attributes.
Example: >>> from towhee.runtime.factory import ops_parse >>> @ops_parse … def foo(name, *args, **kwargs): … return str((name, args, kwargs)) >>> print(foo.bar.zed(1, 2, 3)) (‘bar.zed’, (1, 2, 3), {})
Methods