rangeutils


Namerangeutils JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/Hom-Wang/rangeutils
SummaryUtilities for manipulating and converting Python ranges and boolean lists
upload_time2024-11-07 12:59:34
maintainerNone
docs_urlNone
authorkris.wang
requires_python<4.0,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rangeutils

`rangeutils` is a Python package that provides utilities for converting, manipulating, and processing Python `range` objects and boolean lists. This package includes a variety of functions to convert between boolean lists and ranges, merge adjacent ranges, find complementary ranges, and trim ranges based on specific conditions.

## Features

- **Convert lists to ranges**: Convert `[start, end]` lists to Python range objects, with optional handling for `None` values.
- **Boolean list to ranges**: Converts a boolean list to a list of range objects representing `True` or `1` sequences.
- **Ranges to boolean list**: Converts a list of ranges back to a boolean list of specified length.
- **Flip ranges**: Generate complementary ranges that are not covered by input ranges.
- **Fill ranges**: Fill ranges that are within a specified gap size.
- **Trim ranges**: Perform trimming on ranges based on length, percentage, or a specified trimming size.

## Installation

You can install `rangeutils` using pip:

```bash
pip install rangeutils

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Hom-Wang/rangeutils",
    "name": "rangeutils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "kris.wang",
    "author_email": "wenhom.wang@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8d/69/a392e90ad6afa6d61472393cfa894c9446867e9cfc2cd80e4b22b32589dd/rangeutils-0.1.3.tar.gz",
    "platform": null,
    "description": "# rangeutils\n\n`rangeutils` is a Python package that provides utilities for converting, manipulating, and processing Python `range` objects and boolean lists. This package includes a variety of functions to convert between boolean lists and ranges, merge adjacent ranges, find complementary ranges, and trim ranges based on specific conditions.\n\n## Features\n\n- **Convert lists to ranges**: Convert `[start, end]` lists to Python range objects, with optional handling for `None` values.\n- **Boolean list to ranges**: Converts a boolean list to a list of range objects representing `True` or `1` sequences.\n- **Ranges to boolean list**: Converts a list of ranges back to a boolean list of specified length.\n- **Flip ranges**: Generate complementary ranges that are not covered by input ranges.\n- **Fill ranges**: Fill ranges that are within a specified gap size.\n- **Trim ranges**: Perform trimming on ranges based on length, percentage, or a specified trimming size.\n\n## Installation\n\nYou can install `rangeutils` using pip:\n\n```bash\npip install rangeutils\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Utilities for manipulating and converting Python ranges and boolean lists",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/Hom-Wang/rangeutils",
        "Repository": "https://github.com/Hom-Wang/rangeutils"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d9798ffe6963848c660ae2d35587511676c8febdc06193dc62854ccfd932af9",
                "md5": "d4d51795fcaa4bf1326060a9e206191a",
                "sha256": "a5531fd48c6f8ea03f9df6138bc8014d663e9c3ceac8f21352950e117db8b69f"
            },
            "downloads": -1,
            "filename": "rangeutils-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d4d51795fcaa4bf1326060a9e206191a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 4562,
            "upload_time": "2024-11-07T12:59:33",
            "upload_time_iso_8601": "2024-11-07T12:59:33.281398Z",
            "url": "https://files.pythonhosted.org/packages/6d/97/98ffe6963848c660ae2d35587511676c8febdc06193dc62854ccfd932af9/rangeutils-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d69a392e90ad6afa6d61472393cfa894c9446867e9cfc2cd80e4b22b32589dd",
                "md5": "268777aaa2c062d7a91e299063bdb033",
                "sha256": "bb35eb840fb7a754a3afaa9db59369887d137339d891e031f41c08c68374306b"
            },
            "downloads": -1,
            "filename": "rangeutils-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "268777aaa2c062d7a91e299063bdb033",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 5128,
            "upload_time": "2024-11-07T12:59:34",
            "upload_time_iso_8601": "2024-11-07T12:59:34.544757Z",
            "url": "https://files.pythonhosted.org/packages/8d/69/a392e90ad6afa6d61472393cfa894c9446867e9cfc2cd80e4b22b32589dd/rangeutils-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-07 12:59:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Hom-Wang",
    "github_project": "rangeutils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "rangeutils"
}
        
Elapsed time: 1.69406s