all-against-all


Nameall-against-all JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/all_against_all
SummaryEach item of a list against all others
upload_time2022-12-31 13:55:54
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords list nested
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Each item of a list against all others

```python
$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)]


```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/all_against_all",
    "name": "all-against-all",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "list,nested",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/45/4f/5482b3b8ac1d2a8ca47afc2b58d0b93b7dc60bb1b6ed9e42774524ce0086/all_against_all-0.10.tar.gz",
    "platform": null,
    "description": "\n# Each item of a list against all others\n\n```python\n$pip install all-against-all\nfrom all_against_all import all_against_all\nimport operator\n\nlist_ = [1, 2, 3, 4]\n\n\ne = all_against_all(\n    func=operator.add, iterable=list_, ignore_exceptions=True, skip_own=True\n)\ne = list(e)\nfor ee in e:\n    print(ee)\n\n\n# [((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]\n# [((2, 1), 3), ((2, 3), 5), ((2, 4), 6)]\n# [((3, 1), 4), ((3, 2), 5), ((3, 4), 7)]\n# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7)]\n\n\ne = all_against_all(\n    func=operator.add, iterable=list_, ignore_exceptions=True, skip_own=False\n)\ne = list(e)\nfor ee in e:\n    print(ee)\n\n\n# [((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]\n# [((2, 1), 3), ((2, 3), 5), ((2, 4), 6)]\n# [((3, 1), 4), ((3, 2), 5), ((3, 4), 7)]\n# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7)]\n# [((1, 1), 2), ((1, 2), 3), ((1, 3), 4), ((1, 4), 5)]\n# [((2, 1), 3), ((2, 2), 4), ((2, 3), 5), ((2, 4), 6)]\n# [((3, 1), 4), ((3, 2), 5), ((3, 3), 6), ((3, 4), 7)]\n# [((4, 1), 5), ((4, 2), 6), ((4, 3), 7), ((4, 4), 8)]\n\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Each item of a list against all others",
    "version": "0.10",
    "split_keywords": [
        "list",
        "nested"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "fbee55aef9cb24d677c51fda3fb854bc",
                "sha256": "4ee482b0f1c69d2caf6597d370cc3ef07b78c4fcb2a243938bc9ab03f9589168"
            },
            "downloads": -1,
            "filename": "all_against_all-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fbee55aef9cb24d677c51fda3fb854bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4552,
            "upload_time": "2022-12-31T13:55:53",
            "upload_time_iso_8601": "2022-12-31T13:55:53.531876Z",
            "url": "https://files.pythonhosted.org/packages/37/9f/a63042944d1d757086ab2bab4f7031d3618db980416be8d35a22e4b9ad59/all_against_all-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "4c680d2d2706ceeb1b93951e24ed8cb6",
                "sha256": "0a21fb2517923a59f65e899d851342e908af3125b944f668e7a9b9e65ced29fb"
            },
            "downloads": -1,
            "filename": "all_against_all-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "4c680d2d2706ceeb1b93951e24ed8cb6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3262,
            "upload_time": "2022-12-31T13:55:54",
            "upload_time_iso_8601": "2022-12-31T13:55:54.817978Z",
            "url": "https://files.pythonhosted.org/packages/45/4f/5482b3b8ac1d2a8ca47afc2b58d0b93b7dc60bb1b6ed9e42774524ce0086/all_against_all-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-31 13:55:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "all_against_all",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "all-against-all"
}
        
Elapsed time: 0.02296s