pyats-genie-command-parse


Namepyats-genie-command-parse JSON
Version 1.3.10 PyPI version JSON
download
home_pageNone
SummaryRun genie parsers directly.
upload_time2024-03-27 20:59:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2020 - 2023 Benjamin Trachtenberg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords pyats genie cisco ios ios-xr nxos parse wrapper
VCS
bugtrack_url
requirements pyats genie
Travis-CI No Travis.
coveralls test coverage No coveralls.
            | BRANCH | STATUS |
|---|---|
| master | [![Unit-Testing, Coverage, Linting](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml/badge.svg?branch=master)](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml) |
| develop | [![Unit-Testing, Coverage, Linting](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml/badge.svg?branch=develop)](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml) |

[![Downloads](https://pepy.tech/badge/pyats-genie-command-parse)](https://pepy.tech/project/pyats-genie-command-parse)
[![Supported Versions](https://img.shields.io/pypi/pyversions/pyats-genie-command-parse.svg)](https://pypi.org/project/pyats-genie-command-parse)


# pyats-genie-command-parse
This is a library to be able to parse NOS command output using the available
[Genie parsers](https://developer.cisco.com/docs/genie-docs/), it seperates out 
needing to create a testbed.yml, and allows you to just get the output, and parse the 
output with [Genie parsers](https://developer.cisco.com/docs/genie-docs/). You can find the 
[Genie Parse Source here](https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser)

# Line 55 in pyats_genie_command_parse.py
```python
 supported_nos = {'aireos',
                  'apic',
                  'asa',
                  'bigip',
                  'cheetah',
                  'comware',
                  'dnac',
                  'gaia',
                  'ios',
                  'iosxe',
                  'iosxr',
                  'ironware',
                  'junos',
                  'linux',
                  'nxos',
                  'sros',
                  'viptela'}
```

# Some options to get the data
1. You could use [netmiko](https://ktbyers.github.io/netmiko/) to get the command output
   from devices and then parse using the string parser.

2. You could use [Cisco Network Services Orchestrator "NSO"](https://developer.cisco.com/docs/nso/)
   to get the command output from devices and then parse using the string parser.

3. Use your imagination, as long as you can get the output data in a string format the string parser
   will work.

4. If you prefer you could store the data in a text file, and then using the file parser, you can also
   parse the output data.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyats-genie-command-parse",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "\"Benjamin P. Trachtenberg\" <e_ben_75-python@yahoo.com>",
    "keywords": "pyATS, genie, cisco, ios, ios-xr, nxos, parse, wrapper",
    "author": null,
    "author_email": "\"Benjamin P. Trachtenberg\" <e_ben_75-python@yahoo.com>, Brett Gianpetro <e_ben_75-python@yahoo.com>",
    "download_url": "https://files.pythonhosted.org/packages/c8/7b/171088ed0e047732909a7b80cbc2305dc2e5d5a23c6dc3ec9c36b7a73ef5/pyats-genie-command-parse-1.3.10.tar.gz",
    "platform": null,
    "description": "| BRANCH | STATUS |\n|---|---|\n| master | [![Unit-Testing, Coverage, Linting](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml/badge.svg?branch=master)](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml) |\n| develop | [![Unit-Testing, Coverage, Linting](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml/badge.svg?branch=develop)](https://github.com/btr1975/pyats-genie-command-parse/actions/workflows/test-coverage-lint.yml) |\n\n[![Downloads](https://pepy.tech/badge/pyats-genie-command-parse)](https://pepy.tech/project/pyats-genie-command-parse)\n[![Supported Versions](https://img.shields.io/pypi/pyversions/pyats-genie-command-parse.svg)](https://pypi.org/project/pyats-genie-command-parse)\n\n\n# pyats-genie-command-parse\nThis is a library to be able to parse NOS command output using the available\n[Genie parsers](https://developer.cisco.com/docs/genie-docs/), it seperates out \nneeding to create a testbed.yml, and allows you to just get the output, and parse the \noutput with [Genie parsers](https://developer.cisco.com/docs/genie-docs/). You can find the \n[Genie Parse Source here](https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser)\n\n# Line 55 in pyats_genie_command_parse.py\n```python\n supported_nos = {'aireos',\n                  'apic',\n                  'asa',\n                  'bigip',\n                  'cheetah',\n                  'comware',\n                  'dnac',\n                  'gaia',\n                  'ios',\n                  'iosxe',\n                  'iosxr',\n                  'ironware',\n                  'junos',\n                  'linux',\n                  'nxos',\n                  'sros',\n                  'viptela'}\n```\n\n# Some options to get the data\n1. You could use [netmiko](https://ktbyers.github.io/netmiko/) to get the command output\n   from devices and then parse using the string parser.\n\n2. You could use [Cisco Network Services Orchestrator \"NSO\"](https://developer.cisco.com/docs/nso/)\n   to get the command output from devices and then parse using the string parser.\n\n3. Use your imagination, as long as you can get the output data in a string format the string parser\n   will work.\n\n4. If you prefer you could store the data in a text file, and then using the file parser, you can also\n   parse the output data.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2020 - 2023 Benjamin Trachtenberg  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Run genie parsers directly.",
    "version": "1.3.10",
    "project_urls": {
        "Documentation": "https://pyats-genie-command-parse.readthedocs.io/en/latest/",
        "Source": "https://github.com/btr1975/pyats-genie-command-parse",
        "Tracker": "https://github.com/btr1975/pyats-genie-command-parse/issues"
    },
    "split_keywords": [
        "pyats",
        " genie",
        " cisco",
        " ios",
        " ios-xr",
        " nxos",
        " parse",
        " wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86d4f4d35d926838107eca3f02cd6c188b1e9451d349a0fc43d334657b075412",
                "md5": "e1979dea90ce633a86a87231be1840a1",
                "sha256": "ba231ba7c4aec6161b19c1c25f55eab7f14696146ddd6eb5c9861ad0a4559f89"
            },
            "downloads": -1,
            "filename": "pyats_genie_command_parse-1.3.10-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e1979dea90ce633a86a87231be1840a1",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.8",
            "size": 6318,
            "upload_time": "2024-03-27T20:59:30",
            "upload_time_iso_8601": "2024-03-27T20:59:30.461420Z",
            "url": "https://files.pythonhosted.org/packages/86/d4/f4d35d926838107eca3f02cd6c188b1e9451d349a0fc43d334657b075412/pyats_genie_command_parse-1.3.10-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c87b171088ed0e047732909a7b80cbc2305dc2e5d5a23c6dc3ec9c36b7a73ef5",
                "md5": "c5834becec503d45ddc80f161b416430",
                "sha256": "7c0fc141dcd3d2496735d1e9945fa4224b2cefa1cf0bb5dee0953310e65e930d"
            },
            "downloads": -1,
            "filename": "pyats-genie-command-parse-1.3.10.tar.gz",
            "has_sig": false,
            "md5_digest": "c5834becec503d45ddc80f161b416430",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5970,
            "upload_time": "2024-03-27T20:59:31",
            "upload_time_iso_8601": "2024-03-27T20:59:31.712018Z",
            "url": "https://files.pythonhosted.org/packages/c8/7b/171088ed0e047732909a7b80cbc2305dc2e5d5a23c6dc3ec9c36b7a73ef5/pyats-genie-command-parse-1.3.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-27 20:59:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "btr1975",
    "github_project": "pyats-genie-command-parse",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pyats",
            "specs": [
                [
                    "==",
                    "24.3"
                ]
            ]
        },
        {
            "name": "genie",
            "specs": [
                [
                    "==",
                    "24.3"
                ]
            ]
        }
    ],
    "lcname": "pyats-genie-command-parse"
}
        
Elapsed time: 0.19989s