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
Metadata
Release files for setOp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| setOp-0.1.1.tar.gz | 14.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| setOp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.3 kB
Release files / setOp-0.1.1.tar.gz
| Download URL | setOp-0.1.1.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ba063a3668360c810ddedf36f876a104ad25c6519ea6e3da6d248294ffd4976
|
|
BLAKE2b-256 checksum How to use checksums |
f952f07c6148455d36ffb2af2d47962a3eac8ff4c2f78a70314fec1f738a70a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
|
Release files / setOp-0.1.1-py3-none-any.whl
| Download URL | setOp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e04f25e02c1dd28acf0d9c61e9613a2a0b152b882b7c5ed44a36878f7d65ca55
|
|
BLAKE2b-256 checksum How to use checksums |
7199ada81220b29c51fd1f57482dea8e736a1b610d89f3e89e778d10501bb41a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
|