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
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
setOp-0.1.1.tar.gz
(14.4 kB
view hashes)
Built Distribution
setOp-0.1.1-py3-none-any.whl
(14.9 kB
view hashes)