Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

setalgebra-files-1.0.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setalgebra_files-1.0.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

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

Hashes for setalgebra-files-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4a5843eba45d19f9584fe41d724142fd532a6b2a7cb6822c277a1510634e5b96
MD5 9410881aa5db89a93f0d9a82dc290622
BLAKE2b-256 1a9b4b58e48cf60400cc83029d5c0533b2fa5e82c0fca5ebe1a2e359e0354ba4

See more details on using hashes here.

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

Hashes for setalgebra_files-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07239a815aeb1b2d316aa42363ee2e565d3ccb3646403ccfbac4aae5aee86334
MD5 e32fa0589275415c904da790d99f8e4c
BLAKE2b-256 da57dcdd829bf0ae3b57971263e4c6c2d57c78f03ca4df6ec0a552cf7597d977

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page