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 details)
Built Distribution
setOp-0.1.1-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file setOp-0.1.1.tar.gz
.
File metadata
- Download URL: setOp-0.1.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ba063a3668360c810ddedf36f876a104ad25c6519ea6e3da6d248294ffd4976 |
|
MD5 | 30d2ddd20e6f76d99029201d323aa312 |
|
BLAKE2b-256 | f952f07c6148455d36ffb2af2d47962a3eac8ff4c2f78a70314fec1f738a70a9 |
File details
Details for the file setOp-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: setOp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e04f25e02c1dd28acf0d9c61e9613a2a0b152b882b7c5ed44a36878f7d65ca55 |
|
MD5 | 27c1281ae8dfa756129219f9db522966 |
|
BLAKE2b-256 | 7199ada81220b29c51fd1f57482dea8e736a1b610d89f3e89e778d10501bb41a |