\ :py:mod:`clipppy.utils` ========================= .. py:module:: clipppy.utils Subpackages ----------- .. toctree:: :titlesonly: :maxdepth: 3 distributions/index.rst Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 pyro/index.rst signatures/index.rst typing/index.rst Package Contents ---------------- .. py:data:: _allmatch .. py:data:: _nomatch .. py:class:: PseudoString(meta: typing._T, *args, **kwargs) str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'. .. py:method:: __hash__(self) Return hash(self). .. py:method:: init(cls, *args: typing._Tin) -> PseudoString[tuple[typing._Tin]] :classmethod: .. py:class:: Sentinel Generic enumeration. Derive from this class to define new enumerations. .. py:method:: __repr__(self) Return repr(self). .. py:function:: caller(obj) .. py:function:: compose(*funcs: Callable[[typing._Tin], Union[typing._Tin, typing._Tout]]) -> Callable[[typing._Tin], typing._Tout] .. py:function:: copy_function(f: types.FunctionType, name=None) .. py:function:: enumlstrip(iterable, pred) lstrip with a pred that takes (index, value) as arguments .. py:function:: expandkeys(m: Union[SupportsItems[typing._KT, typing._VT], Iterable[tuple[typing._KT, typing._VT]], Iterable[typing._VT]], keys: Collection[typing._KT]) Return specific keys from a mapping or iterable of key-value pairs, or zip them with a value iterator. .. py:function:: filterkeys(f: Callable[[typing._KT], bool], m: Union[Mapping[typing._KT, typing._VT], Iterable[tuple[typing._KT, typing._VT]]]) -> Iterable[tuple[typing._KT, typing._VT]] .. py:function:: itemsetter(value=None, *keys, **kwargs) .. py:function:: noop(*args, **kwargs) .. py:function:: to_tensor(val) .. py:function:: tryme(func: Callable[Ellipsis, typing._T], exc: Type[Exception] = Exception, default: typing._T = None) -> typing._T .. py:function:: valueiter(arg: Union[Iterable[typing._T], Mapping[Any, typing._T], typing._T]) -> Iterable[typing._T] .. py:function:: zip_asymmetric(arg1: Iterable[typing._T1], arg2: Iterable[typing._T2], err: Exception) -> Iterable[tuple[typing._T1, typing._T2]]