pyats-genie-command-parse


Namepyats-genie-command-parse JSON
Version 1.3.11 PyPI version JSON
download
home_pageNone
SummaryRun genie parsers directly.
upload_time2024-08-17 15:41:13
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/7e/4a/895241142ffebf113ceb7e37ea1d05cae41ed1e71e33168e4114177fe773/pyats_genie_command_parse-1.3.11.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.11",
    "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": "8ebd0042d53a3d98eb56c22f801f1b7cb35487d66734ee6046b87c826515dfc2",
                "md5": "240d32d6ee1c65a25d9356acef5349db",
                "sha256": "37fcde807b89967a24d843aefb7581e403617f99186ea5b5d1763f62c2953ee7"
            },
            "downloads": -1,
            "filename": "pyats_genie_command_parse-1.3.11-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "240d32d6ee1c65a25d9356acef5349db",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.8",
            "size": 6317,
            "upload_time": "2024-08-17T15:41:11",
            "upload_time_iso_8601": "2024-08-17T15:41:11.715795Z",
            "url": "https://files.pythonhosted.org/packages/8e/bd/0042d53a3d98eb56c22f801f1b7cb35487d66734ee6046b87c826515dfc2/pyats_genie_command_parse-1.3.11-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e4a895241142ffebf113ceb7e37ea1d05cae41ed1e71e33168e4114177fe773",
                "md5": "08d8620a1863bea56f4bd85f599ca4df",
                "sha256": "053df0ba1d5b4519f065f54b3453e3aa6b5f180739038686770f6ddec8adf365"
            },
            "downloads": -1,
            "filename": "pyats_genie_command_parse-1.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "08d8620a1863bea56f4bd85f599ca4df",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6004,
            "upload_time": "2024-08-17T15:41:13",
            "upload_time_iso_8601": "2024-08-17T15:41:13.341524Z",
            "url": "https://files.pythonhosted.org/packages/7e/4a/895241142ffebf113ceb7e37ea1d05cae41ed1e71e33168e4114177fe773/pyats_genie_command_parse-1.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-17 15:41:13",
    "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.7"
                ]
            ]
        },
        {
            "name": "genie",
            "specs": [
                [
                    "==",
                    "24.7"
                ]
            ]
        }
    ],
    "lcname": "pyats-genie-command-parse"
}
        
Elapsed time: 4.36995s