{ "info": { "author": "Kevin Tewouda", "author_email": "lewoudar@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Terminals" ], "description": "# click-params\n\n[![Pypi version](https://img.shields.io/pypi/v/click_params.svg)](https://pypi.org/project/click_params/)\n[![Build Status](https://travis-ci.com/lewoudar/click_params.svg?branch=master)](https://travis-ci.com/lewoudar/click_params)\n[![Windows Build Status](https://img.shields.io/appveyor/ci/lewoudar/click-params/master.svg?label=Windows)](https://ci.appveyor.com/project/lewoudar/click-params)\n[![Coverage Status](https://codecov.io/gh/lewoudar/click_params/branch/master/graphs/badge.svg?branch=master)](https://codecov.io/gh/lewoudar/click_params)\n[![Documentation Status](https://readthedocs.org/projects/click_params/badge/?version=latest)](https://click-params.readthedocs.io/en/latest/?badge=latest)\n[![License Apache 2](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\nA bunch of useful click parameter types.\n\n## Why?\n\nI often find myself wanting to use a click parameter able to handle list of strings, so I decide to put this in a library\nand I ended adding more parameter types that can be useful for various scripts including network, mathematics and so on.\n\n\n## Installation\n\n```bash\npip install click-params\n```\n\nclick-params starts working from **python 3.6**. It has a few dependencies:\n- [click](https://click.palletsprojects.com/en/7.x/) >= 7.0\n- [validators](https://validators.readthedocs.io/en/latest/)\n\n## Usage\n\n```python\nimport click\nfrom click_params import Ipv4AddressListParamType\n\n@click.command()\n@click.option('-a', '--addresses', help='list of ipv4 addresses', prompt='list of ipv4 addresses to reserve',\n type=Ipv4AddressListParamType())\ndef pool(addresses):\n click.echo('reserved ips:')\n for ip in addresses:\n click.echo(ip)\n```\n\n```bash\n$ pool --addresses='192.168.1.1,192.168.1.14'\nreserved ips:\n192.168.1.1\n192.168.1.14\n```\n\nYou can change the default separator \",\" by passing it when initializing the parameter type.\n\n## Documentation\n\nDocumentation is available at https://click-params.readthedocs.io/en/latest/.\n\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/lewoudar/click_params", "keywords": "click params validators network", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "click-params", "package_url": "https://pypi.org/project/click-params/", "platform": "", "project_url": "https://pypi.org/project/click-params/", "project_urls": { "Homepage": "https://github.com/lewoudar/click_params" }, "release_url": "https://pypi.org/project/click-params/0.1.0/", "requires_dist": [ "click (>=7.0)", "validators" ], "requires_python": ">=3.6", "summary": "A bunch of useful click parameter types", "version": "0.1.0" }, "last_serial": 5564607, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8133ad932ca3835749492bdae13896b2", "sha256": "623b77c657a6e9f4ad6bfda7fa472aa3647dff1d391da4aa274060fe06f7d411" }, "downloads": -1, "filename": "click_params-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8133ad932ca3835749492bdae13896b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8532, "upload_time": "2019-07-21T21:02:50", "url": "https://files.pythonhosted.org/packages/96/42/52802f3bfac3ec73f782372d5da410a7fc16d923dbb154081199cba7186e/click_params-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "abd2ec6e0c576148ae9f5d7cf4d9e3ba", "sha256": "bca3ffb96296adb700cd9136e8f5b6d641f9e4c3aec2795b83c8394ef3e0b8f2" }, "downloads": -1, "filename": "click-params-0.1.0.tar.gz", "has_sig": false, "md5_digest": "abd2ec6e0c576148ae9f5d7cf4d9e3ba", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6183, "upload_time": "2019-07-21T21:02:52", "url": "https://files.pythonhosted.org/packages/24/94/d917eea281d6fd87e8008293b778072f6311418254344b8d4de6bccce29a/click-params-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8133ad932ca3835749492bdae13896b2", "sha256": "623b77c657a6e9f4ad6bfda7fa472aa3647dff1d391da4aa274060fe06f7d411" }, "downloads": -1, "filename": "click_params-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8133ad932ca3835749492bdae13896b2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8532, "upload_time": "2019-07-21T21:02:50", "url": "https://files.pythonhosted.org/packages/96/42/52802f3bfac3ec73f782372d5da410a7fc16d923dbb154081199cba7186e/click_params-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "abd2ec6e0c576148ae9f5d7cf4d9e3ba", "sha256": "bca3ffb96296adb700cd9136e8f5b6d641f9e4c3aec2795b83c8394ef3e0b8f2" }, "downloads": -1, "filename": "click-params-0.1.0.tar.gz", "has_sig": false, "md5_digest": "abd2ec6e0c576148ae9f5d7cf4d9e3ba", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6183, "upload_time": "2019-07-21T21:02:52", "url": "https://files.pythonhosted.org/packages/24/94/d917eea281d6fd87e8008293b778072f6311418254344b8d4de6bccce29a/click-params-0.1.0.tar.gz" } ] }