This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This module provides 4 efficient iterator types for merging sorted iterables according to boolean operators (AND, NOT, OR, XOR), in a lazy fashion. All code is written is C for performance reasons.

Installation

$ python setup.py install

Usage

First import the module:

>>> import boolmerge

All the iterator types have the same interface. They should be called with two argument, each one being a sorted iterable (be it of any kind), which items should be orderable. If this is not the case, the result is undefined.

boolmerge.andmerge returns an iterator which yields all items present in both of the iterables it is given as arguments:

>>> list(boolmerge.andmerge("acd", "abc"))
['a', 'c']

boolmerge.ormerge returns an iterator which yields all items present in any of the iterables it is given as arguments:

>>> list(boolmerge.ormerge("abcd", "cef"))
['a', 'b', 'c', 'd', 'e', 'f']

boolmerge.notmerge returns an iterator which yields all items present in the first iterable it is given as argument, but not in the second:

>>> list(boolmerge.notmerge("bdf", "abcf"))
['d']

boolmerge.xormerge returns an iterator which yields all items present in either of the iterables it is given as arguments, but not in both:

>>> list(boolmerge.xormerge("adf", "abcd"))
['b', 'c', 'f']
Release History

Release History

1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
boolmerge-1.0.1.tar.gz (86.5 kB) Copy SHA256 Checksum SHA256 Source Jul 12, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting