more-more-itertools


Namemore-more-itertools JSON
Version 0.1.20250811 PyPI version JSON
download
home_pageNone
SummaryAdditions to more-itertools: at_least_n() and at_most_n()
upload_time2025-08-11 05:23:07
maintainerNone
docs_urlNone
authorDutcho
requires_python>=3.12
licenseNone
keywords itertools more-itertools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Intro
Though `more-itertools` contains *many* functions, it can never be 'complete'.

Below extensions were proposed, but not (yet) added to `more-itertools`.
Module `more-more-itertools` acts as their abode until they get added to `more-itertools`.

# Functions
`at_least_n(iterable, n, too_short=None)`

Validate that `iterable` has *at least* `n` items and return them if it does. 
If it has *fewer* than `n` items, call function `too_short` with its item-count.

Suggested for addition to `more-itertools` as [#1053](https://github.com/more-itertools/more-itertools/issues/1053) on 9 Aug 2025.

`at_most_n(iterable, n, too_long=None)`

Validate that `iterable` has *at most* `n` items and return them if it does.
If it has *more* than `n` items, call function `too_long` with the number `n + 1`.

Suggested for addition to `more-itertools` as [#1053](https://github.com/more-itertools/more-itertools/issues/1053) on 9 Aug 2025.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "more-more-itertools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "itertools, more-itertools",
    "author": "Dutcho",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/25/4d/2abc5471d44d7b6dffcc1b3259b43098ae817400bd1bd75003faf9d28dd0/more_more_itertools-0.1.20250811.tar.gz",
    "platform": null,
    "description": "# Intro\r\nThough `more-itertools` contains *many* functions, it can never be 'complete'.\r\n\r\nBelow extensions were proposed, but not (yet) added to `more-itertools`.\r\nModule `more-more-itertools` acts as their abode until they get added to `more-itertools`.\r\n\r\n# Functions\r\n`at_least_n(iterable, n, too_short=None)`\r\n\r\nValidate that `iterable` has *at least* `n` items and return them if it does. \r\nIf it has *fewer* than `n` items, call function `too_short` with its item-count.\r\n\r\nSuggested for addition to `more-itertools` as [#1053](https://github.com/more-itertools/more-itertools/issues/1053) on 9 Aug 2025.\r\n\r\n`at_most_n(iterable, n, too_long=None)`\r\n\r\nValidate that `iterable` has *at most* `n` items and return them if it does.\r\nIf it has *more* than `n` items, call function `too_long` with the number `n + 1`.\r\n\r\nSuggested for addition to `more-itertools` as [#1053](https://github.com/more-itertools/more-itertools/issues/1053) on 9 Aug 2025.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Additions to more-itertools: at_least_n() and at_most_n()",
    "version": "0.1.20250811",
    "project_urls": {
        "homepage": "https://github.com/Dutcho/more-more-itertools",
        "repository": "https://github.com/Dutcho/more-more-itertools"
    },
    "split_keywords": [
        "itertools",
        " more-itertools"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "254d2abc5471d44d7b6dffcc1b3259b43098ae817400bd1bd75003faf9d28dd0",
                "md5": "d43c9dd3db0807931bd4d3be9d812dd9",
                "sha256": "e1c35df5b840e63fd4a4e7884b1a6ecb4e002d0616568ac84f20238f01faa1c1"
            },
            "downloads": -1,
            "filename": "more_more_itertools-0.1.20250811.tar.gz",
            "has_sig": false,
            "md5_digest": "d43c9dd3db0807931bd4d3be9d812dd9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 2910,
            "upload_time": "2025-08-11T05:23:07",
            "upload_time_iso_8601": "2025-08-11T05:23:07.038094Z",
            "url": "https://files.pythonhosted.org/packages/25/4d/2abc5471d44d7b6dffcc1b3259b43098ae817400bd1bd75003faf9d28dd0/more_more_itertools-0.1.20250811.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-11 05:23:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Dutcho",
    "github_project": "more-more-itertools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "more-more-itertools"
}
        
Elapsed time: 2.04598s