{ "info": { "author": "Jamison Emilio & Todd Albiston", "author_email": "foxtrot711@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Jamaddr Python Package\n\nThis package Created by Jamison Emilio and packaged by Todd Albiston\n\n## Installation Python3.6 and above\n```markdown\npip3 install jamaddr \n```\nfor python 2.7.12 and above see jamaddr27 https://github.com/talbiston/jamaddr27\n\n## Description:\nPython Package adds functions to convert IP address or subnet masks to bits and bits back to IP address.\n\n\n```python\nfrom jamaddr import JamAddr\nipbits = JamAddr.ip_to_bits(\"192.168.0.23\")\nipbits\n\nreturns = '11000000101010000000000000010111'\n```\n\n```python\nfrom jamaddr import JamAddr\nbitsip = JamAddr.bits_to_ip(\"11000000101010000000000000010111\")\nbitsip\n\nreturns = '192.168.0.23'\n```\n\nOf course you could also enter a subnet mask to convert to bits then do the same with its corresponding IP, then\nwork out what the network ID or Broadcast IPs would be or use your imagination on what other use cases could be.\n\n```python\nfrom jamaddr import JamAddr\n\ndef network_id(ip_cidr):\n\n ip, cidr = ip_cidr.split('/')\n ip_bits = JamAddr.ip_to_bits(ip)[:int(cidr)] + '0' * (32 - int(cidr))\n return '{}/{}'.format(JamAddr.bits_to_ip(ip_bits), cidr)\n\nnetworkID = network_id(\"192.168.0.23/28\")\nprint(networkID)\n\nreturns = 192.168.0.16/28\n```\n\nThis example above is already included as a function in this package so you could just do the following, but you get the point. \n\n```python\nfrom jamaddr import JamAddr\n\nnetworkID = JamAddr.network_id(\"192.168.0.23/28\")\nprint(networkID)\n\nreturns = 192.168.0.16/28\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/talbiston/jamaddr.git", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "jamaddr", "package_url": "https://pypi.org/project/jamaddr/", "platform": "", "project_url": "https://pypi.org/project/jamaddr/", "project_urls": { "Homepage": "https://github.com/talbiston/jamaddr.git" }, "release_url": "https://pypi.org/project/jamaddr/0.5/", "requires_dist": null, "requires_python": "", "summary": "IP Subnet package", "version": "0.5" }, "last_serial": 3919067, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b97169159349bb9f4d66ebe75806ea34", "sha256": "cddea0e148694ce15c1a7befc16cd6d568dd43c0004da495b5cf836e294125b6" }, "downloads": -1, "filename": "jamaddr-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "b97169159349bb9f4d66ebe75806ea34", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2334, "upload_time": "2018-05-31T22:25:18", "url": "https://files.pythonhosted.org/packages/d9/9a/98d2a894aa320c780394e4ac2c0dde6105f2c224cef33372f9952bdf85e5/jamaddr-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07a2da8343970cc6ab74174aa8398138", "sha256": "3ce66b940e93d1760d9026dab5326ee9dc2e6a44e260f128b71e18eed4a295ef" }, "downloads": -1, "filename": "jamaddr-0.1.tar.gz", "has_sig": false, "md5_digest": "07a2da8343970cc6ab74174aa8398138", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1780, "upload_time": "2018-05-31T22:25:20", "url": "https://files.pythonhosted.org/packages/7f/d9/e0df8057c2d6fc5d3bfc75dfd557faa0a634807fa0a233d764f6fbff7950/jamaddr-0.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5a5f90d0ae11d9c58ac8535e79348fd0", "sha256": "01ab2f9da8fce69b7fad4e1aadc3bb303f709e64870a7eb1d07beeccd4660833" }, "downloads": -1, "filename": "jamaddr-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5a5f90d0ae11d9c58ac8535e79348fd0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2530, "upload_time": "2018-05-31T23:43:51", "url": "https://files.pythonhosted.org/packages/1f/cb/d282d7cac1334cc021b544e3e275b658c5d1489b8c073f00d40b499871ca/jamaddr-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85dd1deb73ecfe92981919b0f7a509e1", "sha256": "79158743e8989f39404a8455731a74c7810188f4f1f6ba7c8b5147f251082e87" }, "downloads": -1, "filename": "jamaddr-0.3.tar.gz", "has_sig": false, "md5_digest": "85dd1deb73ecfe92981919b0f7a509e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2047, "upload_time": "2018-05-31T23:43:52", "url": "https://files.pythonhosted.org/packages/40/5b/f4a4391dfe5c881cad572f694477507e182fee76ac85ca99f166032d1def/jamaddr-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "fbc0726e0ea71ef212d374eac066eeaf", "sha256": "0520fd10b242cd671cf9312732d3b07b98f19ae80c8ce02fc35f6b6e2baaa2ab" }, "downloads": -1, "filename": "jamaddr-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "fbc0726e0ea71ef212d374eac066eeaf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2942, "upload_time": "2018-06-01T00:37:53", "url": "https://files.pythonhosted.org/packages/c1/2e/5df2a51cf1e753a15dc15e3195efb9675621112c57f877773d37858e124e/jamaddr-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "058a462fd3630d2f8a408bea46bd263c", "sha256": "474f04f18d493672c608d548ecb05b5952ed45dbf0e964fbcb6af7eb522149f0" }, "downloads": -1, "filename": "jamaddr-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "058a462fd3630d2f8a408bea46bd263c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2556, "upload_time": "2018-05-31T23:47:10", "url": "https://files.pythonhosted.org/packages/5e/11/7ec0a3d16d50e939bdd8e857dd6c8f64198530560daadc4505e23afdedf3/jamaddr-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cfbf2ecaf8c79e18ee2d5a1bbf617d0", "sha256": "2f8fe8d1a14908bbb5f577a7a77837cd204e80b8d2403e2cca00c69140e525fc" }, "downloads": -1, "filename": "jamaddr-0.4.tar.gz", "has_sig": false, "md5_digest": "6cfbf2ecaf8c79e18ee2d5a1bbf617d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2125, "upload_time": "2018-05-31T23:47:11", "url": "https://files.pythonhosted.org/packages/4d/69/796fbc200f8e380dda2c93686202264e8e9a20c350cb4a772315a6976541/jamaddr-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "a8567fe65885e0523c21d3ef1e2fc821", "sha256": "dc1729e605aa3fa4478c3a641c19bff75eca20fb884da48ca2baaf1dd8cdb4ae" }, "downloads": -1, "filename": "jamaddr-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "a8567fe65885e0523c21d3ef1e2fc821", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2927, "upload_time": "2018-06-01T00:43:06", "url": "https://files.pythonhosted.org/packages/c7/0b/772c018c351a31ff188ec4def63a5f2dae09d5fab1dd0415ce5778cd1e7e/jamaddr-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7dd88dab2c44002c00102f85e04177e1", "sha256": "6e8aef1e1f127bb94e3177c7f2ad3857937dacc6c11555c707e03579f328db03" }, "downloads": -1, "filename": "jamaddr-0.5.tar.gz", "has_sig": false, "md5_digest": "7dd88dab2c44002c00102f85e04177e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2492, "upload_time": "2018-06-01T00:43:07", "url": "https://files.pythonhosted.org/packages/20/40/9d07706859af20623b40b3c5acfa2df2ece1cf43b3b48949d3e333d324c2/jamaddr-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a8567fe65885e0523c21d3ef1e2fc821", "sha256": "dc1729e605aa3fa4478c3a641c19bff75eca20fb884da48ca2baaf1dd8cdb4ae" }, "downloads": -1, "filename": "jamaddr-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "a8567fe65885e0523c21d3ef1e2fc821", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2927, "upload_time": "2018-06-01T00:43:06", "url": "https://files.pythonhosted.org/packages/c7/0b/772c018c351a31ff188ec4def63a5f2dae09d5fab1dd0415ce5778cd1e7e/jamaddr-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7dd88dab2c44002c00102f85e04177e1", "sha256": "6e8aef1e1f127bb94e3177c7f2ad3857937dacc6c11555c707e03579f328db03" }, "downloads": -1, "filename": "jamaddr-0.5.tar.gz", "has_sig": false, "md5_digest": "7dd88dab2c44002c00102f85e04177e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2492, "upload_time": "2018-06-01T00:43:07", "url": "https://files.pythonhosted.org/packages/20/40/9d07706859af20623b40b3c5acfa2df2ece1cf43b3b48949d3e333d324c2/jamaddr-0.5.tar.gz" } ] }