A collection of predicate factories, functions, and partials, for functional programming.
Project description
A collection of predicate factories, functions, and partials, for functional programming.
The predicates module provides a variety of predicates, predicate factories, and predicate partials.
“A predicate is a function that returns the truth value of some condition.”
—Andrew M. Kuchling, Python Functional Programming HOWTO
Predicate factories are functions which create new predicates based on their arguments (e.g., _and, _nargs). Predicate partials are functions created by partial application of a predicate’s arguments.
Complete project documentation is available. Project source is available at the github project page.
Install
To install from PyPI:
$ pip install predicates
Developer installation
To install the development version from the github repository:
$ git clone https://github.com/agoraplex/predicates.git predicates $ cd predicates $ virtualenv-2.7 --no-site-packages venv $ pip install -e '.[docs,tests]'
Use nosetests to run the test suite:
$ python setup.py nosetests
Use Sphinx to generate the HTML docs:
# to build in build/sphinx/html/...: $ python setup.py build_sphinx # to build in docs/_build/html/... (which is what I do): $ make -C docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file predicates-0.0.5.tar.gz
.
File metadata
- Download URL: predicates-0.0.5.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e756a78c6937abb0060a74935c916719ed4eb5cc3b42bbe9b0f24f3394f6b1e1 |
|
MD5 | df9d949e32d8c216bdff7731a78e312f |
|
BLAKE2b-256 | 823aa3ef4fe4b24c4128a653dcd4fd606306bfa394b67a3b86d8cb48d5225db5 |
Provenance
File details
Details for the file predicates-0.0.5-py2.7.egg
.
File metadata
- Download URL: predicates-0.0.5-py2.7.egg
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b36317932e34c0813d9d1d4ebd808534b48666c8a3300d36f48fc260a9c779c |
|
MD5 | 7674eba5cc15a4b60dd30001e2717bc1 |
|
BLAKE2b-256 | 96e0dc3b0115c3efe673f7c4210c4829bc7f0ea80db6fd5cc22d08c34a4ec522 |