Skip to main content

MiniMindsLab Ordered Set Diff

Deterministically compare two iterable inputs as ordered de-duplicated sequences and report:

  • added: items only in the second iterable
  • removed: items only in the first iterable
  • common: items present in both

Order is based on first-seen appearance in each input.

Install

This package is standard-library only and targets Python 3.11+.

Usage

from minimindslab_ordered_set_diff import ordered_unique, ordered_set_diff

left = ["a", "b", "a", "c", None]
right = ["b", "d", None, "d", "a"]

print(ordered_unique(left))
# ['a', 'b', 'c', None]

result = ordered_set_diff(left, right)
print(result)
# {
#   'left_unique': ['a', 'b', 'c', None],
#   'right_unique': ['b', 'd', None, 'a'],
#   'added': ['d'],
#   'removed': ['c'],
#   'common': ['a', 'b', None]
# }

API

  • ordered_unique(iterable) -> list
  • ordered_set_diff(left, right) -> dict[str, list]

Inputs should contain hashable items.

Metadata

Release files for minimindslab-ordered-set-diff 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minimindslab-ordered-set-diff 0.1.0
File Size Uploaded Provenance
minimindslab_ordered_set_diff-0.1.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for minimindslab-ordered-set-diff 0.1.0
File Interpreter ABI Platform
minimindslab_ordered_set_diff-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / minimindslab_ordered_set_diff-0.1.0.tar.gz

Download URL minimindslab_ordered_set_diff-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
27ed4213523cc5198159d148264a0958c7516743dc30ea00259fde43db9a0c6a
BLAKE2b-256 checksum
How to use checksums
c35db0ddd5df5b3f113afaf41ca9ebe7a0d1cc25a158d46860bec33bf938f882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Release files / minimindslab_ordered_set_diff-0.1.0-py3-none-any.whl

Download URL minimindslab_ordered_set_diff-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c82496fe7dba0f10c20708ca90b92869cb186dc7e4280cc3404a1f92c81e9a4f
BLAKE2b-256 checksum
How to use checksums
d2cf623c48177b007f478c2a6bf382128c06bbd7b9f26a4fb67954d3b8c4b051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Security for minimindslab-ordered-set-diff 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page