Metadata-Version: 2.1
Name: funcy-chain
Version: 0.1.1
Summary: Method chaining with funcy.
Keywords: chain,method,chaining,funcy,method-chaining
Author-email: Tal Einat <taleinat@gmail.com>
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: funcy
Requires-Dist: flit >=3.3, <4 ; extra == "dev"
Requires-Dist: black ; extra == "lint"
Requires-Dist: isort ; extra == "lint"
Requires-Dist: pylint ; extra == "lint"
Requires-Dist: pytest >=2.7.3 ; extra == "test"
Requires-Dist: tox >=3, <4 ; extra == "test"
Provides-Extra: dev
Provides-Extra: lint
Provides-Extra: test

# funcy-chain

Method chaining with [funcy](https://github.com/Suor/funcy).

```python3
>>> from funcy_chain import chain
>>> (
...     chain([1, 2, 3, 7, 6, 5, 4])
...         .without(3)
...         .filter(lambda x: x > 2)
...         .remove(lambda x: x > 6)
...         .sort(reverse=True)
... ).value
[6, 5, 4]
```

## Why?

[funcy](https://github.com/Suor/funcy) is great, but doesn't support method chaining.
[pydash](https://github.com/dgilland/pydash) is similar to funcy and does support chaining, but it
is more complex and its chains are harder to debug. funcy-chain enables method chaining with
built-in, stdlib and funcy functions, in a way that is simple and straightforward.

