Downloading and installing

The PyMonad package is available on the Python Package Index (PyPi). In order to add PyMonad to your environment, you'll need to use pip.

Visit https://pypi.python.org/pypi/PyMonad for more information.

For Mac OS and Linux developers, the pip install pymonad command may require the sudo command as a prefix. If you've installed a personal version of Python, you won't need to use sudo. If you've installed Python system-wide, then you'll need sudo. When running a command such as sudo pip install pymonad, you'll be prompted for your password to ensure that you have the administrative permissions necessary to do the installation. For Windows developers, the sudo command is not relevant, but you do need to have administrative rights.

Once the PyMonad package is installed, you can confirm it using the following commands:

>>> import pymonad
>>> help(pymonad)  

This will display the docstring module and confirm that things really are properly installed.

The overall project name, PyMonad, uses mixed case. The installed Python package name that we import, PyMonad, is all lower case. Currently, there are no type hints in the PyMonad package. The very generic nature of the features would require extensive use of TypeVar hints to describe the signatures of the various functions. Additionally, there are a few names in PyMonad that conflict with names in the built-in typing module; this makes the syntax for type hints potentially more complex because the package name is required to disambiguate the overloaded names. We'll omit type hints for the examples in this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset