🤙 Calls¶

https://img.shields.io/pypi/v/calls.svg?style=flat-square https://img.shields.io/pypi/l/calls.svg?style=flat-square https://img.shields.io/pypi/pyversions/calls.svg?style=flat-square https://img.shields.io/readthedocs/calls.svg?style=flat-square https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square

Simple, typed, composable tools for callables. They’re also good Python citizens with nice repr, mypy support, and picklability.

Quickstart¶

All utilities are directly importable. See the docs for a complete overview.

>>> from calls import raises, always, identity, flip, pipe

Installation¶

It’s available on PyPI.

pip install calls

Contents¶

Changelog¶

0.2.1 (2021-08-16)¶

  • Fix mistake in docs

0.2.0 (2021-05-27)¶

  • Rename const to always.

  • Add pipe function.

  • Relax typing of raises function.

  • Ensure results are picklable if possible.

0.1.1 (2021-05-24)¶

  • Mark module as containing type hints (py.typed).

0.1.0 (2021-05-24)¶

  • Added basic functions including raises, identity, const, flip.

0.0.1 (2021-04-06)¶

  • Basic empty project setup.

Indices and tables¶