ipcalc


Nameipcalc JSON
Version 1.99.0 PyPI version JSON
download
home_pagehttps://github.com/tehmaze/ipcalc/
SummaryIP subnet calculator
upload_time2016-01-19 18:30:55
maintainerNone
docs_urlNone
authorWijnand Modderman-Lenstra
requires_pythonNone
licenseUNKNOWN
keywords
VCS
bugtrack_url
requirements six
Travis-CI
coveralls test coverage No coveralls.
            About
=====

This module allows you to perform IP subnet calculations, there is support for
both IPv4 and IPv6 CIDR notation.

Example Usage
=============

::

    >>> import ipcalc
    >>> for x in ipcalc.Network('172.16.42.0/30'):
    ...     print str(x)
    ...
    172.16.42.1
    172.16.42.2
    >>> subnet = ipcalc.Network('2001:beef:babe::/48')
    >>> print str(subnet.network())
    2001:beef:babe:0000:0000:0000:0000:0000
    >>> print str(subnet.netmask())
    ffff:ffff:ffff:0000:0000:0000:0000:0000
    >>> '192.168.42.23' in Network('192.168.42.0/24')
    True
    >>> long(IP('fe80::213:ceff:fee8:c937'))
    338288524927261089654168587652869703991L

Bugs/Features
=============

You can issue a ticket in GitHub: https://github.com/tehmaze/ipcalc/issues

Documentation
=============

Documentation is available from http://ipcalc.rtfd.org/
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tehmaze/ipcalc/",
    "name": "ipcalc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Wijnand Modderman-Lenstra",
    "author_email": "maze@pyth0n.org",
    "download_url": "https://files.pythonhosted.org/packages/8f/14/bb4034c87b4b2a47b381a52051138c3aeb87515a498185e275d40585deeb/ipcalc-1.99.0.tar.gz",
    "platform": "UNKNOWN",
    "description": "About\n=====\n\nThis module allows you to perform IP subnet calculations, there is support for\nboth IPv4 and IPv6 CIDR notation.\n\nExample Usage\n=============\n\n::\n\n    >>> import ipcalc\n    >>> for x in ipcalc.Network('172.16.42.0/30'):\n    ...     print str(x)\n    ...\n    172.16.42.1\n    172.16.42.2\n    >>> subnet = ipcalc.Network('2001:beef:babe::/48')\n    >>> print str(subnet.network())\n    2001:beef:babe:0000:0000:0000:0000:0000\n    >>> print str(subnet.netmask())\n    ffff:ffff:ffff:0000:0000:0000:0000:0000\n    >>> '192.168.42.23' in Network('192.168.42.0/24')\n    True\n    >>> long(IP('fe80::213:ceff:fee8:c937'))\n    338288524927261089654168587652869703991L\n\nBugs/Features\n=============\n\nYou can issue a ticket in GitHub: https://github.com/tehmaze/ipcalc/issues\n\nDocumentation\n=============\n\nDocumentation is available from http://ipcalc.rtfd.org/",
    "bugtrack_url": null,
    "license": "UNKNOWN",
    "summary": "IP subnet calculator",
    "version": "1.99.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8a3fb7a11b68b94ef2e18d81309c591c",
                "sha256": "17b9d85859ef70e1996426a723d3891f6b99dd0e283986ea92c37a06601725d9"
            },
            "downloads": -1,
            "filename": "ipcalc-1.99.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8a3fb7a11b68b94ef2e18d81309c591c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9827,
            "upload_time": "2016-01-19T18:30:55",
            "upload_time_iso_8601": "2016-01-19T18:30:55.445073Z",
            "url": "https://files.pythonhosted.org/packages/8f/14/bb4034c87b4b2a47b381a52051138c3aeb87515a498185e275d40585deeb/ipcalc-1.99.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-01-19 18:30:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "tehmaze",
    "github_project": "ipcalc",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "six",
            "specs": []
        }
    ],
    "lcname": "ipcalc"
}
        
Elapsed time: 0.01249s