{ "info": { "author": "StorPool OpenStack development team", "author_email": "openstack-dev@storpool.com", "bugtrack_url": null, "classifiers": [], "description": "# netplan - a Python library for parsing the netplan configuration data.\n\n## Description\n\nThis module parses the YAML configuration files describing the system's\nnetwork configuration in the format used by the netplan.io package.\nThe main parser is the \"netplan.parser.Parser\" class (also exported as\n\"netplan.Parser\"); its \"parse()\" method returns a data structure of\nthe \"netplan.config.NetPlan\" class (also exported as \"netplan.NetPlan\").\n\n## Example usage\n\n import netplan\n\n p = netplan.Parser()\n data = p.parse()\n for iface, cfg in data.items():\n print('{section}/{name}'.format(section=cfg.section, name=iface)\n\n p = netplan.Parser()\n data = p.parse(exclude=['set-mtu.yaml'])\n fix = {'version': 2}\n for iface, cfg in data.get_all_interfaces(['br-enp4s0']).data.items():\n if cfg.get('mtu') != 9000:\n if cfg.section not in fix:\n fix[cfg.section] = {}\n fix[cfg.section][iface] = {'mtu': 9000}\n fix = {'network': fix}\n with open('/etc/netplan/set-mtu.yaml', mode='w') as f:\n print(yaml.dump(fix), file=f, end='')\n\n## The netplan-parser tool\n\nThe three types of queries - parse the interface data, get all related\ninterfaces, and get only the physical related interfaces - are also\navailable via the command-line `netplan-parser` tool:\n\n # Show the configuration of all interfaces in YAML format\n netplan-parser show\n\n # Show the configuration of the specified interfaces in JSON format\n netplan-parser -f json show eno1 eno2.617\n\n # List the names of the interfaces related to the specified one\n netplan-parser -f names related eno2.617\n\n # Show the configuration of the physical interfaces related to\n # the specified ones\n netplan-parser --format=json physical eno2.617 br1-eno1\n\n## Contact\n\nThe `netplan` Python library was written by Peter Pentchev as part of\nthe [OpenStack development][openstack-dev] team at [StorPool][storpool].\n\n[openstack-dev]: mailto:openstack-dev@storpool.com\n[storpool]: https://storpool.com/\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/storpool/netplan", "keywords": "netplan", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "netplan", "package_url": "https://pypi.org/project/netplan/", "platform": "", "project_url": "https://pypi.org/project/netplan/", "project_urls": { "Homepage": "https://github.com/storpool/netplan" }, "release_url": "https://pypi.org/project/netplan/0.3.3/", "requires_dist": [ "PyYAML", "typing ; python_version < \"3\"" ], "requires_python": "", "summary": "A library for parsing the netplan configuration data", "version": "0.3.3" }, "last_serial": 5704518, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "3309a43c3d0635af9d276860fab7e3b9", "sha256": "d1839f1c65b44c0c1a4fab60052f5b46a2cef469750f44d809c02c3a7a8c7c14" }, "downloads": -1, "filename": "netplan-0.3.0-py2-none-any.whl", "has_sig": true, "md5_digest": "3309a43c3d0635af9d276860fab7e3b9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11974, "upload_time": "2018-08-01T11:20:44", "url": "https://files.pythonhosted.org/packages/3e/5b/85bb6dcffbf978ae5f3a9490f3b03a63f414e032b249302d238eaf38d521/netplan-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4ec104c3504d235318b0ed06a97b525", "sha256": "b829f3002b43b1ef1514213a6d651590fc0cdf4b3e7633724b4d8d673d358e6d" }, "downloads": -1, "filename": "netplan-0.3.0-py3-none-any.whl", "has_sig": true, "md5_digest": "e4ec104c3504d235318b0ed06a97b525", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11974, "upload_time": "2018-08-01T11:20:45", "url": "https://files.pythonhosted.org/packages/48/62/052a32246aa9ad735745947cae1e1b3bbe6c006be78b69d6edac482dbc20/netplan-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f52ab7b4823da266d99e93cc20a1e5a9", "sha256": "5bace0e1a4cb0ab2056f45cc740f77e4f4c199bee7363cb28128a6db71c11fc4" }, "downloads": -1, "filename": "netplan-0.3.0.tar.gz", "has_sig": true, "md5_digest": "f52ab7b4823da266d99e93cc20a1e5a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6891, "upload_time": "2018-08-01T11:20:47", "url": "https://files.pythonhosted.org/packages/92/31/9e59ae295c40003be643e0a57897fc71c53ecfa9c9ed9359bd6c04b4bd93/netplan-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "156b9d2969f0473de50a455d662cdd1f", "sha256": "90c1e095ae65d48fe30283fe4403f475c155534c0695eb6e29cbf95a5874b359" }, "downloads": -1, "filename": "netplan-0.3.1-py3-none-any.whl", "has_sig": true, "md5_digest": "156b9d2969f0473de50a455d662cdd1f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10959, "upload_time": "2019-08-20T16:31:07", "url": "https://files.pythonhosted.org/packages/7f/6a/2aad3a124f4d98051eb4c76d8d4e48366d5c5226b0b582799f2e253e97c3/netplan-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f419b2825bc18cce10c3f19fb9caadca", "sha256": "6c2257d0f260c30cc028fbfeffe240640b25cf52e42e01dbcc069ce37079828f" }, "downloads": -1, "filename": "netplan-0.3.1.tar.gz", "has_sig": true, "md5_digest": "f419b2825bc18cce10c3f19fb9caadca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12443, "upload_time": "2019-08-20T16:31:09", "url": "https://files.pythonhosted.org/packages/2c/c5/afc9a7f1e88e81a0142a8e7ddd550fbe090cda7be5d17342b62c99828a7f/netplan-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "b39f9ebfee7072cc544220ac9d1de7bb", "sha256": "55e8cc50c3d004cfd000ecf9d0b4859684111b9a37e084d7886490424fbe11a6" }, "downloads": -1, "filename": "netplan-0.3.2-py2-none-any.whl", "has_sig": true, "md5_digest": "b39f9ebfee7072cc544220ac9d1de7bb", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10981, "upload_time": "2019-08-20T16:48:20", "url": "https://files.pythonhosted.org/packages/1d/b3/04d94066c17df939c83221815539af23eebd771dffb7c8272e2678d67640/netplan-0.3.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f779ff614e1c7267630c7d46604897cd", "sha256": "3dd4582abd356856869b5c9bcadf7545d691ef024dd260af857f241028e9304f" }, "downloads": -1, "filename": "netplan-0.3.2-py3-none-any.whl", "has_sig": true, "md5_digest": "f779ff614e1c7267630c7d46604897cd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10979, "upload_time": "2019-08-20T16:48:22", "url": "https://files.pythonhosted.org/packages/a4/ef/5fc00b3731e5c80216d249c3a62c2e96bff7dff2ebea8b1981ec9f1c4ca8/netplan-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74a2cb696dd884dd2b8ae0750e855d64", "sha256": "14c6b2f9f5b16cdb1a788bc99b39c773ba9426fdbc6c9d1ce745320f7ef49522" }, "downloads": -1, "filename": "netplan-0.3.2.tar.gz", "has_sig": true, "md5_digest": "74a2cb696dd884dd2b8ae0750e855d64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12490, "upload_time": "2019-08-20T16:48:24", "url": "https://files.pythonhosted.org/packages/8c/69/4f98789d37efde70b3a6889675f0703ec6c836ddc124d4f56e2a42a59855/netplan-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "58a1ea34b22a0ae98664588688900205", "sha256": "46d3c9c28d5044dd51035555db0fc7dcec1a373d86bc6b358e57aec8a58a6847" }, "downloads": -1, "filename": "netplan-0.3.3-py2-none-any.whl", "has_sig": true, "md5_digest": "58a1ea34b22a0ae98664588688900205", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10985, "upload_time": "2019-08-20T17:06:56", "url": "https://files.pythonhosted.org/packages/07/8f/4c83bcdc63bb04ec0931afd8fbeff07d893c5dcadd6b86e83f7c717c90d7/netplan-0.3.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c9c8085bd3d0376eca8234a80dbd718", "sha256": "4a0c08243ef26a3816bd3aecacebd4b57865f8e80e727c9198b1b7b66e65c4ce" }, "downloads": -1, "filename": "netplan-0.3.3-py3-none-any.whl", "has_sig": true, "md5_digest": "9c9c8085bd3d0376eca8234a80dbd718", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10985, "upload_time": "2019-08-20T17:06:58", "url": "https://files.pythonhosted.org/packages/a2/61/3d64b6422f5c44f00aba0ade39cb4b96707bcdcab740b9c7e2a9bb777298/netplan-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e903c62bdcdc89a56bab324c2b0d87d3", "sha256": "a7ba8377d9fde05cb1a446f0082c0f4011ca74537e1647e4e9c227b893c031b1" }, "downloads": -1, "filename": "netplan-0.3.3.tar.gz", "has_sig": true, "md5_digest": "e903c62bdcdc89a56bab324c2b0d87d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12765, "upload_time": "2019-08-20T17:07:00", "url": "https://files.pythonhosted.org/packages/36/46/284e325e534b615f591fcf2b61381f67c82fce01de110be3f3fdb8db08a7/netplan-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58a1ea34b22a0ae98664588688900205", "sha256": "46d3c9c28d5044dd51035555db0fc7dcec1a373d86bc6b358e57aec8a58a6847" }, "downloads": -1, "filename": "netplan-0.3.3-py2-none-any.whl", "has_sig": true, "md5_digest": "58a1ea34b22a0ae98664588688900205", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10985, "upload_time": "2019-08-20T17:06:56", "url": "https://files.pythonhosted.org/packages/07/8f/4c83bcdc63bb04ec0931afd8fbeff07d893c5dcadd6b86e83f7c717c90d7/netplan-0.3.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c9c8085bd3d0376eca8234a80dbd718", "sha256": "4a0c08243ef26a3816bd3aecacebd4b57865f8e80e727c9198b1b7b66e65c4ce" }, "downloads": -1, "filename": "netplan-0.3.3-py3-none-any.whl", "has_sig": true, "md5_digest": "9c9c8085bd3d0376eca8234a80dbd718", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10985, "upload_time": "2019-08-20T17:06:58", "url": "https://files.pythonhosted.org/packages/a2/61/3d64b6422f5c44f00aba0ade39cb4b96707bcdcab740b9c7e2a9bb777298/netplan-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e903c62bdcdc89a56bab324c2b0d87d3", "sha256": "a7ba8377d9fde05cb1a446f0082c0f4011ca74537e1647e4e9c227b893c031b1" }, "downloads": -1, "filename": "netplan-0.3.3.tar.gz", "has_sig": true, "md5_digest": "e903c62bdcdc89a56bab324c2b0d87d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12765, "upload_time": "2019-08-20T17:07:00", "url": "https://files.pythonhosted.org/packages/36/46/284e325e534b615f591fcf2b61381f67c82fce01de110be3f3fdb8db08a7/netplan-0.3.3.tar.gz" } ] }