pySets software calculates the union, intersection, and difference between two files' lines or words.
The options available are:
- Casefold option (-f,--casefold): This option will fold all elements to lowercase.
- Line-oriented option (-l,--line-oriented): This is used to split files at line boundaries. By default, this is the behavior of pySets.
- Word-oriented option (-w,--word-oriented): This option is used to split files at word boundaries.
- Count option (-n,--count): By enabling this option, the program will display the number of elements only.
- Slow option (-o,--slow): This option uses generators to conserve memory.
- Quiet option (-q,--quiet): This option will not produce any output for subset/superset operations.
The commands available in pySets are:
- Subset option (-b,--subset): This command finds if all elements of a file are in another file.
- Superset option (-p,--superset): This command finds if all elements of one file are in another file.
- Intersection option (-i,--intersection): This command finds elements common to both files (A&B).
- Union option (-u,--union): This command finds elements from both files (A|B).
- Difference option (-d,--difference): This command finds elements in one file but not found in another file (A-B).
- Symmetric difference option (-s,--symmetric-difference): This command finds elements in both files but not both (A^B).
In addition, the software also offers a help option (-h,--help) that shows a brief help text, version (-v,--version) to print version information, and copyright option (-c,--copyright) that shows the copying policy.
pySets is an excellent software project for finding the union, intersection, or difference between elements in two different files. An alias for a standard input is '-' and elements of intersections, unions, and differences will appear unordered. It is easy to use and customizable with various options such as casefold or splitting files at word boundaries.
Version 0.1.3: N/A