Skip to main content

A collection of predicate factories, functions, and partials, for functional programming.

Project description

A collection of predicate factories, functions, and partials, for functional programming.

https://travis-ci.org/agoraplex/predicates.png?branch=master https://coveralls.io/repos/agoraplex/predicates/badge.png?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predicates-0.0.4.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

predicates-0.0.4-py2.7.egg (16.5 kB view details)

Uploaded Source

File details

Details for the file predicates-0.0.4.tar.gz.

File metadata

  • Download URL: predicates-0.0.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for predicates-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ced5534702fd1a6a1e39603c382703bbb5c9d5ce4c382d1ca212c47933a5be36
MD5 6e3a4568db8acbe5f3d7dccd9b9c45c5
BLAKE2b-256 3bda07a8d4d1c29936a71bf15d36dbca2b3128679056545479983d7114d9aa7d

See more details on using hashes here.

File details

Details for the file predicates-0.0.4-py2.7.egg.

File metadata

File hashes

Hashes for predicates-0.0.4-py2.7.egg
Algorithm Hash digest
SHA256 e2608866e0ab94accf02818fafff278c6d841b24fa723fe7a5445ffe20d3e1fd
MD5 4632bcd68f738f862ae6b51e9a8eaaec
BLAKE2b-256 a7288e9a55e34d772055ee6bf6b157fc9d4ad3e09d9c98245fec7d3109b67f98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page