Skip to main content

predicates

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

Metadata

Release files for predicates 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for predicates 0.0.5
File Size Uploaded Provenance Actions
predicates-0.0.5.tar.gz 9.5 kB Without provenance Details for predicates-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for predicates 0.0.5
File Interpreter ABI Platform Actions
predicates-0.0.5-py2.7.egg Legacy Egg format - - Details for predicates-0.0.5-py2.7.egg

Total release size: 26.0 kB

Release files / predicates-0.0.5.tar.gz

Download URL predicates-0.0.5.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e756a78c6937abb0060a74935c916719ed4eb5cc3b42bbe9b0f24f3394f6b1e1
BLAKE2b-256 checksum
How to use checksums
823aa3ef4fe4b24c4128a653dcd4fd606306bfa394b67a3b86d8cb48d5225db5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / predicates-0.0.5-py2.7.egg

Download URL predicates-0.0.5-py2.7.egg
Size 16.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
8b36317932e34c0813d9d1d4ebd808534b48666c8a3300d36f48fc260a9c779c
BLAKE2b-256 checksum
How to use checksums
96e0dc3b0115c3efe673f7c4210c4829bc7f0ea80db6fd5cc22d08c34a4ec522
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for predicates 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page