py-cli-interaction


Namepy-cli-interaction JSON
Version 0.3 PyPI version JSON
download
home_page
SummaryA library for CLI interaction
upload_time2022-12-06 09:53:08
maintainer
docs_urlNone
authordavidliyutong
requires_python>=3.7
licenseMIT Licence
keywords python cli interaction
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python CLI Interaction Library

![Upload Python Package](https://github.com/davidliyutong/py-cli-interaction/workflows/Upload%20Python%20Package/badge.svg)
[![Pypi](https://img.shields.io/pypi/v/py-cli-interaction.svg)](https://pypi.org/project/py-cli-interaction/)

## Introduction

This library is created for simplify `INPUT`/`OUTPUT` procedure when generating `YAML`/`JSON` configurations for daemon services.

## Get Started

`TODO: complete this example`

You can follow this example.

```python
resolution_sel = must_parse_cli_sel("Select color resolution", self.__COLOR_RESOLUTION_CANDIDATES__,
                                                default_value=self.__COLOR_RESOLUTION_DEFAULT_SEL__)
fps_sel = must_parse_cli_sel("Select color fps", self.__COLOR_FPS_CANDIDATES__, default_value=self.__COLOR_FPS_DEFAULT_SEL__)
format_sel = must_parse_cli_sel("Select color format", self.__COLOR_FORMAT_CANDIDATES__,
                                            default_value=self.__COLOR_FORMAT_DEFAULT_SEL__)
exposure_sel = must_parse_cli_int("Set exposure [ 0 - 10000 ], -1 for auto exposure", min=-1, max=10001, default_value=-1)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "py-cli-interaction",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python,CLI,interaction",
    "author": "davidliyutong",
    "author_email": "davidliyutong@sjtu.edu.cn",
    "download_url": "https://files.pythonhosted.org/packages/eb/48/d9bd4c63b3cae5122731fde0d24c7afe99fe54b0afae48b56c922b7d9ed5/py-cli-interaction-0.3.tar.gz",
    "platform": null,
    "description": "# Python CLI Interaction Library\n\n![Upload Python Package](https://github.com/davidliyutong/py-cli-interaction/workflows/Upload%20Python%20Package/badge.svg)\n[![Pypi](https://img.shields.io/pypi/v/py-cli-interaction.svg)](https://pypi.org/project/py-cli-interaction/)\n\n## Introduction\n\nThis library is created for simplify `INPUT`/`OUTPUT` procedure when generating `YAML`/`JSON` configurations for daemon services.\n\n## Get Started\n\n`TODO: complete this example`\n\nYou can follow this example.\n\n```python\nresolution_sel = must_parse_cli_sel(\"Select color resolution\", self.__COLOR_RESOLUTION_CANDIDATES__,\n                                                default_value=self.__COLOR_RESOLUTION_DEFAULT_SEL__)\nfps_sel = must_parse_cli_sel(\"Select color fps\", self.__COLOR_FPS_CANDIDATES__, default_value=self.__COLOR_FPS_DEFAULT_SEL__)\nformat_sel = must_parse_cli_sel(\"Select color format\", self.__COLOR_FORMAT_CANDIDATES__,\n                                            default_value=self.__COLOR_FORMAT_DEFAULT_SEL__)\nexposure_sel = must_parse_cli_int(\"Set exposure [ 0 - 10000 ], -1 for auto exposure\", min=-1, max=10001, default_value=-1)\n```\n",
    "bugtrack_url": null,
    "license": "MIT Licence",
    "summary": "A library for CLI interaction",
    "version": "0.3",
    "split_keywords": [
        "python",
        "cli",
        "interaction"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "7d9c90255b1818e20f7c50092c064865",
                "sha256": "485f9ced12af97324c01bde818e9f523f31e04fb908e26ecfa409bc559f19f4b"
            },
            "downloads": -1,
            "filename": "py_cli_interaction-0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7d9c90255b1818e20f7c50092c064865",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3769,
            "upload_time": "2022-12-06T09:53:07",
            "upload_time_iso_8601": "2022-12-06T09:53:07.591371Z",
            "url": "https://files.pythonhosted.org/packages/a1/ab/715dd7d46992b376da87161bc1cd7f7b4390486ec66aac33847ea1c1db49/py_cli_interaction-0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "76219b544d7c407029ff0f66a94747c7",
                "sha256": "c822daec6810b238a97b87682a053bbc2e196e01bbe5cabafe75146e7bc2ee37"
            },
            "downloads": -1,
            "filename": "py-cli-interaction-0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "76219b544d7c407029ff0f66a94747c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3106,
            "upload_time": "2022-12-06T09:53:08",
            "upload_time_iso_8601": "2022-12-06T09:53:08.671947Z",
            "url": "https://files.pythonhosted.org/packages/eb/48/d9bd4c63b3cae5122731fde0d24c7afe99fe54b0afae48b56c922b7d9ed5/py-cli-interaction-0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-06 09:53:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "py-cli-interaction"
}
        
Elapsed time: 0.02220s