Skip to content

Install

From PyPI

pfun can be installed from PyPI, for example using pip:

$ pip install pfun

Some modules such as pfun.sql and pfun.http require optional dependencies. These can be installed with:

$ pip install pfun[sql,http]

MyPy Plugin

The types provided by the Python typing module are often not flexible enough to provide precise typing of common functional design patterns. If you use MyPy, pfun provides a plugin that enables more precise types which can identify more bugs caused by type errors. To enable the pfun MyPy plugin, add the following to your MyPy configuration:

[mypy]
plugins = pfun.mypy_plugin

pfun is currently only tested against MyPy 0.800