spanning-cidr


Namespanning-cidr JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/moskrc/spanning-cidr/
SummaryFunction that accepts a sequence of IP addresses returning a single subnet that is large enough to span the lower and upper bound IP addresses with a possible overlap on either end.
upload_time2020-07-15 08:30:26
maintainer
docs_urlNone
authorVitalii Shishorin
requires_python>=3.7,<4.0
licenseMIT
keywords networking systems administration cidr ip ipv4
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Spanning Cidr

Function that accepts a sequence of IP addresses returning a single subnet that is large enough to span the lower and upper bound IP addresses with a possible overlap on either end.

### Installation

Run `pip install spanning-cidr`

### How To Use

```Python
from spanning_cidr import spanning_cidr

spanning_cidr(['192.168.1.1','192.168.1.2', '192.168.1.3', '192.168.1.4'])
>> '192.168.1.0/29'

spanning_cidr(['192.168.2.10', '192.168.1.10'])
>> '192.168.0.0/22'
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/moskrc/spanning-cidr/",
    "name": "spanning-cidr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "Networking,Systems Administration,CIDR,IP,IPv4",
    "author": "Vitalii Shishorin",
    "author_email": "moskrc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/bf/55/1b8ab0d4ef2d06a804e22dbb57decf72cd7558dfd0f40a552a86fb4e2474/spanning-cidr-0.1.4.tar.gz",
    "platform": "",
    "description": "## Spanning Cidr\n\nFunction that accepts a sequence of IP addresses returning a single subnet that is large enough to span the lower and upper bound IP addresses with a possible overlap on either end.\n\n### Installation\n\nRun `pip install spanning-cidr`\n\n### How To Use\n\n```Python\nfrom spanning_cidr import spanning_cidr\n\nspanning_cidr(['192.168.1.1','192.168.1.2', '192.168.1.3', '192.168.1.4'])\n>> '192.168.1.0/29'\n\nspanning_cidr(['192.168.2.10', '192.168.1.10'])\n>> '192.168.0.0/22'\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Function that accepts a sequence of IP addresses returning a single subnet that is large enough to span the lower and upper bound IP addresses with a possible overlap on either end.",
    "version": "0.1.4",
    "split_keywords": [
        "networking",
        "systems administration",
        "cidr",
        "ip",
        "ipv4"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5cda0dd1924cc00b8154043c42fb07a9",
                "sha256": "bf00281398b7eda061dc315c13c28f9b691400700c198cccab6142353e62f2e8"
            },
            "downloads": -1,
            "filename": "spanning_cidr-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5cda0dd1924cc00b8154043c42fb07a9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 2899,
            "upload_time": "2020-07-15T08:30:27",
            "upload_time_iso_8601": "2020-07-15T08:30:27.766814Z",
            "url": "https://files.pythonhosted.org/packages/d4/ef/deac35ad5202f1d5ffcd683039fa61c4b7d72db8bd5c1071e0c0d38cf4fd/spanning_cidr-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ba12b158d55a1c58ffeb1c456fcecd14",
                "sha256": "97cb809c6a5ee6cd457b31dc23897169932c64ac6c3bdee023f0c14a94f91ce3"
            },
            "downloads": -1,
            "filename": "spanning-cidr-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ba12b158d55a1c58ffeb1c456fcecd14",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 2450,
            "upload_time": "2020-07-15T08:30:26",
            "upload_time_iso_8601": "2020-07-15T08:30:26.673384Z",
            "url": "https://files.pythonhosted.org/packages/bf/55/1b8ab0d4ef2d06a804e22dbb57decf72cd7558dfd0f40a552a86fb4e2474/spanning-cidr-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-07-15 08:30:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "moskrc",
    "error": "Could not fetch GitHub repository",
    "lcname": "spanning-cidr"
}
        
Elapsed time: 0.13058s