Skip to main content

Compared files with through python set operations.

Project description

Introduction

Compared files with through python set operations.

Support operations:
    &   intersection
    |   union
    -   difference
    ^   symmetric difference
    <   Test whether the set is a proper subset of other, that is, set <= other and set != other.
    <=  Test whether every element in the set is in other.
    >   Test whether every element in the set is in other.
    >=  Test whether every element in other is in the set.

Features:
    1. Auto strip space for each line in file.
    2. Auto sorted the result.

Examples:
    1. compared from files
        setop fpath1 - fpath2
        setop 'fpath1 & fpath2'
        setop '( fpath1 & fpath2 ) <= fpath3'

    2. compared from variables
    fish
        ❯ setop  (seq 1 3|psub) '&' (seq 2 4|psub)
            2
            3
    bash
        ❯ setop  <(seq 1 3) '&' <(seq 2 4)
            2
            3 

Install

pip install setop

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

setOp-0.1.1.tar.gz (14.4 kB view hashes)

Uploaded Source

Built Distribution

setOp-0.1.1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

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