Metadata-Version: 2.1
Name: lined
Version: 0.0.5
Summary: Building simple pipelines, simply.
Home-page: UNKNOWN
Author: OtoSense
License: mit
Description: 
        # lined
        
        Building simple pipelines, simply.
        
        
        A really simple example:
        
        ```pydocstring
        >>> p = Pipeline(sum, str)
        >>> p([2, 3])
        '5'
        ```
        
        A still quite simple example:
        
        ```pydocstring
        >>> def first(a, b=1):
        ...     return a * b
        >>>
        >>> def last(c) -> float:
        ...     return c + 10
        >>>
        >>> f = Pipeline(first, last)
        >>>
        >>> assert f(2) == 12
        >>> assert f(2, 10) == 30
        ```
        
        Let's check out the signature of f:
        
        ```pydocstring
        >>> from inspect import signature
        >>>
        >>> assert str(signature(f)) == '(a, b=1) -> float'
        >>> assert signature(f).parameters == signature(first).parameters
        >>> assert signature(f).return_annotation == signature(last).return_annotation == float
        ```
        
        Border case: One function only
        
        ```pydocstring
        >>> same_as_first = Pipeline(first)
        >>> assert same_as_first(42) == first(42)
        ```
        
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
