Skip to main content

Each item of a list against all others

$pip install all-against-all
from all_against_all import all_against_all
import operator

list_ = [1, 2, 3, 4]


e = all_against_all(
    func=operator.add, iterable=list_, ignore_exceptions=True, skip_own=True
)
e = list(e)
for ee in e:
    print(ee)


# [((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]
# [((2, 1), 3), ((2, 3), 5), ((2, 4), 6)]
# [((3, 1), 4), ((3, 2), 5), ((3, 4), 7)]
# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7)]


e = all_against_all(
    func=operator.add, iterable=list_, ignore_exceptions=True, skip_own=False
)
e = list(e)
for ee in e:
    print(ee)


# [((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]
# [((2, 1), 3), ((2, 3), 5), ((2, 4), 6)]
# [((3, 1), 4), ((3, 2), 5), ((3, 4), 7)]
# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7)]
# [((1, 1), 2), ((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]
# [((2, 1), 3), ((2, 2), 4), ((2, 3), 5), ((2, 4), 6)]
# [((3, 1), 4), ((3, 2), 5), ((3, 3), 6), ((3, 4), 7)]
# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7), ((4, 4), 8)]

Metadata

Release files for all-against-all 0.10

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

Source distribution (sdist)

Source distribution for all-against-all 0.10
File Size Uploaded Provenance Actions
all_against_all-0.10.tar.gz 3.3 kB Without provenance Details for all_against_all-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for all-against-all 0.10
File Interpreter ABI Platform Actions
all_against_all-0.10-py3-none-any.whl Python 3 none any Details for all_against_all-0.10-py3-none-any.whl

Total release size: 7.8 kB

Release files / all_against_all-0.10.tar.gz

Download URL all_against_all-0.10.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a21fb2517923a59f65e899d851342e908af3125b944f668e7a9b9e65ced29fb
BLAKE2b-256 checksum
How to use checksums
454f5482b3b8ac1d2a8ca47afc2b58d0b93b7dc60bb1b6ed9e42774524ce0086
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / all_against_all-0.10-py3-none-any.whl

Download URL all_against_all-0.10-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ee482b0f1c69d2caf6597d370cc3ef07b78c4fcb2a243938bc9ab03f9589168
BLAKE2b-256 checksum
How to use checksums
379fa63042944d1d757086ab2bab4f7031d3618db980416be8d35a22e4b9ad59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for all-against-all 0.10

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.10 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