{ "info": { "author": "Robin Schneider", "author_email": "ypid@riseup.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: DFSG approved", "License :: OSI Approved :: GNU Affero General Public License v3", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: System :: Systems Administration", "Topic :: Text Processing" ], "description": "hlc\n===\n\n|Build Status| |Version| |License| |Python versions| |dev status| |pypi monthly downloads|\n\n.. |Build Status| image:: https://travis-ci.org/ypid/hlc.svg\n :target: https://travis-ci.org/ypid/hlc\n\n.. |Version| image:: https://img.shields.io/pypi/v/hlc.svg\n :target: https://pypi.python.org/pypi/hlc\n\n.. |License| image:: https://img.shields.io/pypi/l/hlc.svg\n :target: https://pypi.python.org/pypi/hlc\n\n.. |Python versions| image:: https://img.shields.io/pypi/pyversions/hlc.svg\n :target: https://pypi.python.org/pypi/hlc\n\n.. |dev status| image:: https://img.shields.io/pypi/status/hlc.svg\n :target: https://pypi.python.org/pypi/hlc\n\n.. |pypi monthly downloads| image:: https://img.shields.io/pypi/dm/hlc.svg\n :target: https://pypi.python.org/pypi/hlc\n\n| **h**\\ ost **l**\\ ist **c**\\ onveter supporting hosts(5), ethers(5) and other formats.\n\nPython script which can convert different types of host or workstation lists. Refer\nto the Synopsis_ for currently supported input and output formats.\n\nIf you need support for another input/output format it should be pretty\nstraight forward to add it.\n\nRefer to the Makefile_ and the test_data_ for usage examples.\n\nSynopsis\n--------\n\n.. code-block:: text\n\n usage: hlc [-h] [-V] [-d] [-v] [-q]\n [-f {paedml_linux,json,ms_dhcp,linuxmuster_net}] [-o OUTPUT_FILE]\n [-t {paedml_linux,json,ethers,hosts}] [-e EXTRA_VARS]\n [-I IGNORE_FQDN_REGEX] [-r RENAME_CSV_FILE]\n input_file [input_file ...]\n\n The host list converter (hlc).\n\n positional arguments:\n input_file File path to the input file to process. '-' will read\n from STDIN.\n\n optional arguments:\n -h, --help show this help message and exit\n -V, --version show program's version number and exit\n -d, --debug Write debugging and higher to STDOUT|STDERR.\n -v, --verbose Write information and higher to STDOUT|STDERR.\n -q, --quiet, --silent\n Only write errors and higher to STDOUT|STDERR.\n -f {paedml_linux,json,ms_dhcp,linuxmuster_net}, --input-format {paedml_linux,json,ms_dhcp,linuxmuster_net}, --from {paedml_linux,json,ms_dhcp,linuxmuster_net}\n Format of the input file. Default: json.\n -o OUTPUT_FILE, --output-file OUTPUT_FILE\n Where to write the output file. '-' will read from\n STDIN. If not given, no final output will be produced.\n -t {paedml_linux,json,ethers,hosts}, --output-format {paedml_linux,json,ethers,hosts}, --to {paedml_linux,json,ethers,hosts}\n Format of the output file. Default: json.\n -e EXTRA_VARS, --extra-vars EXTRA_VARS\n Set additional variables as key=value to change the\n behavior of how different input/output formats are\n processed.\n -I IGNORE_FQDN_REGEX, --ignore-fqdn-regex IGNORE_FQDN_REGEX\n Regular expression checked against the input FQDNs. If\n the regular expression matches, the FQDN will not be\n exported.\n -r RENAME_CSV_FILE, --rename-csv-file RENAME_CSV_FILE\n Allows you to do mass rename via a provided CSV file.\n It is based on substation using regular expressions.\n The first column is a case insensitive search pattern,\n the second one the replacement string.\n\nInstall\n-------\n\nYou can install hlc by invoking the following commands:\n\n.. code-block:: bash\n\n gpg --recv-keys 'C505 B5C9 3B0D B3D3 38A1 B600 5FE9 2C12 EE88 E1F0'\n mkdir --parent /tmp/hlc && cd /tmp/hlc\n wget -r -nd -l 1 https://pypi.python.org/pypi/hlc --accept-regex '^https://(test)?pypi.python.org/packages/.*\\.whl.*'\n current_release=\"$(find . -type f -name '*.whl' | sort | tail -n 1)\"\n gpg -v \"${current_release}.asc\" && pip3 install \"${current_release}\"\n\nRefer to `Verifying PyPI and Conda Packages`_ for more details.\n\nOr if you feel lazy and agree that `pip/issues/1035 `_\nshould be fixed you can also install hlc like this:\n\n.. code-block:: bash\n\n pip3 install hlc\n\nSupersedes\n----------\n\n* parse_windows_dhcp_leases_csv_\n\nAuthors\n-------\n\n* `Robin Schneider `_\n\nLicense\n-------\n\n`GNU Affero General Public License v3 (AGPL-3.0)`_\n\n.. _GNU Affero General Public License v3 (AGPL-3.0): https://tldrlegal.com/license/gnu-affero-general-public-license-v3-%28agpl-3.0%29\n.. _parse_windows_dhcp_leases_csv: https://github.com/hamcos/deployment-scripts/tree/master/parse_windows_dhcp_leases_csv\n.. _Makefile: https://github.com/ypid/hlc/blob/master/Makefile\n.. _test_data: https://github.com/ypid/hlc/tree/master/tests/data\n.. _Verifying PyPI and Conda Packages: stuartmumford.uk/blog/verifying-pypi-and-conda-packages.html", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ypid/hlc", "keywords": "workstations host list converter ethers mac-address", "license": "AGPL-3.0", "maintainer": "", "maintainer_email": "", "name": "hlc", "package_url": "https://pypi.org/project/hlc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hlc/", "project_urls": { "Homepage": "https://github.com/ypid/hlc" }, "release_url": "https://pypi.org/project/hlc/0.3.0/", "requires_dist": [ "netaddr (>=0.7.18)", "nose; extra == 'test'", "nose2; extra == 'test'", "tox; extra == 'test'" ], "requires_python": "", "summary": "Host list converter supporting hosts(5), ethers(5) and other formats", "version": "0.3.0" }, "last_serial": 2377322, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "2347b76a185c85097d6f842966a6f16f", "sha256": "65bb7a64abf23c3e36b7a51247f884e2f24e333fee657b1c27571106b03d00d3" }, "downloads": -1, "filename": "hlc-0.3.0-py3-none-any.whl", "has_sig": true, "md5_digest": "2347b76a185c85097d6f842966a6f16f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13404, "upload_time": "2016-10-03T11:35:31", "url": "https://files.pythonhosted.org/packages/c9/a4/b96126b9a9285945e0bd2592670674a199df3be88244bfb7c58d75a7b311/hlc-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "774f5d738b162eca012ae6eb13b99acc", "sha256": "3c31cb8807078479913a15ea82ce743f45aba8ef67a4ae4b44aee60369b1bf8f" }, "downloads": -1, "filename": "hlc-0.3.0.tar.gz", "has_sig": true, "md5_digest": "774f5d738b162eca012ae6eb13b99acc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26810, "upload_time": "2016-10-03T11:35:34", "url": "https://files.pythonhosted.org/packages/72/84/6b9eb772843b1302ae3d71baf21bcb2cfedc172d190e24893ed378f29c75/hlc-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2347b76a185c85097d6f842966a6f16f", "sha256": "65bb7a64abf23c3e36b7a51247f884e2f24e333fee657b1c27571106b03d00d3" }, "downloads": -1, "filename": "hlc-0.3.0-py3-none-any.whl", "has_sig": true, "md5_digest": "2347b76a185c85097d6f842966a6f16f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13404, "upload_time": "2016-10-03T11:35:31", "url": "https://files.pythonhosted.org/packages/c9/a4/b96126b9a9285945e0bd2592670674a199df3be88244bfb7c58d75a7b311/hlc-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "774f5d738b162eca012ae6eb13b99acc", "sha256": "3c31cb8807078479913a15ea82ce743f45aba8ef67a4ae4b44aee60369b1bf8f" }, "downloads": -1, "filename": "hlc-0.3.0.tar.gz", "has_sig": true, "md5_digest": "774f5d738b162eca012ae6eb13b99acc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26810, "upload_time": "2016-10-03T11:35:34", "url": "https://files.pythonhosted.org/packages/72/84/6b9eb772843b1302ae3d71baf21bcb2cfedc172d190e24893ed378f29c75/hlc-0.3.0.tar.gz" } ] }