Arbitrary set calculations using the shunting yard algorithm
Project description
https://gitlab.com/jfriis/setalgebra
Arbitrary set calculations using the shunting yard algorithm
Install
To install using pip:
pip install setalgebra
Usage
setalgebra \( file1 + file2 \) x file3 - file4
Treat … as a set-based arithmetic expression of files and operators. Files are sets of lines (whitespace stripped).
Operators from lower to higher precedence
+ |
set union |
- |
set difference |
x |
set intersection |
( |
group precedence |
) |
Union and difference has the same precedence.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setalgebra-files-1.0.0.tar.gz.
File metadata
- Download URL: setalgebra-files-1.0.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5843eba45d19f9584fe41d724142fd532a6b2a7cb6822c277a1510634e5b96
|
|
| MD5 |
9410881aa5db89a93f0d9a82dc290622
|
|
| BLAKE2b-256 |
1a9b4b58e48cf60400cc83029d5c0533b2fa5e82c0fca5ebe1a2e359e0354ba4
|
File details
Details for the file setalgebra_files-1.0.0-py3-none-any.whl.
File metadata
- Download URL: setalgebra_files-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07239a815aeb1b2d316aa42363ee2e565d3ccb3646403ccfbac4aae5aee86334
|
|
| MD5 |
e32fa0589275415c904da790d99f8e4c
|
|
| BLAKE2b-256 |
da57dcdd829bf0ae3b57971263e4c6c2d57c78f03ca4df6ec0a552cf7597d977
|