scrapli-netconf


Namescrapli-netconf JSON
Version 2024.1.30 PyPI version JSON
download
home_page
SummaryFast, flexible, sync/async, Python 3.7+ NETCONF client built on scrapli
upload_time2024-01-29 02:28:38
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2021 Carl Montanari 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 arista automation cisco eos iosxe iosxr juniper junos netconf network nxos ssh telnet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli-netconf.svg)](https://pypi.org/project/scrapli-netconf)
[![PyPI version](https://badge.fury.io/py/scrapli-netconf.svg)](https://badge.fury.io/py/scrapli-netconf)
[![Weekly Build](https://github.com/scrapli/scrapli_netconf/workflows/Weekly%20Build/badge.svg)](https://github.com/scrapli/scrapli_netconf/actions?query=workflow%3A%22Weekly+Build%22)
[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-blueviolet.svg)](https://opensource.org/licenses/MIT)

scrapli_netconf
===============

---

**Documentation**: <a href="https://scrapli.github.io/scrapli_netconf" target="_blank">https://scrapli.github.io/scrapli_netconf</a>

**Source Code**: <a href="https://github.com/scrapli/scrapli_netconf" target="_blank">https://github.com/scrapli/scrapli_netconf</a>

**Examples**: <a href="https://github.com/scrapli/scrapli_netconf/tree/master/examples" target="_blank">https://github.com/scrapli/scrapli_netconf/tree/master/examples</a>

---

scrapli_netconf is a NETCONF driver built on top of scrapli, giving you all the scrapli behaviour you know and love, 
but for NETCONF connections.


#### Key Features:

- __Easy__: Just like scrapli, scrapli_netconf is easy to get going with, and looks and feels just like "normal" 
  scrapli -- check out the documentation and example links above, and you'll be connecting to devices in no time.
- __Fast__: Do you like to go fast? Of course you do! scrapli_netconf supports all of the ssh transports that 
  scrapli core supports; check out the `ssh2` transport if you've got the need for speed!
- __Great Developer Experience__: scrapli_netconf has great editor support thanks to being fully typed; that plus 
  thorough docs make developing with scrapli a breeze.
- __Well Tested__: Perhaps out of paranoia, but regardless of the reason, scrapli_netconf has lots of tests! Unit tests 
  cover the basics, regularly ran functional tests connect to virtual routers to ensure that everything works IRL! 
- __Concurrency on Easy Mode__: [Nornir's](https://github.com/nornir-automation/nornir) 
  [scrapli plugin](https://github.com/scrapli/nornir_scrapli) gives you all the normal benefits of scrapli __plus__ 
  all the great features of Nornir.


## Requirements

MacOS or \*nix<sup>1</sup>, Python 3.7+

scrapli_netconf's only requirements are `scrapli`, of course, and `lxml`.

<sup>1</sup> Although many parts of scrapli *do* run on Windows, Windows is not officially supported


## Installation

```
pip install scrapli_netconf
```

See the [docs](https://scrapli.github.io/scrapli_netconf/user_guide/installation) for other installation methods/details.



## A Simple Example

```python
from scrapli_netconf.driver import NetconfDriver

my_device = {
    "host": "172.18.0.13",
    "auth_username": "scrapli",
    "auth_password": "scrapli",
    "auth_strict_key": False,
    "port": 830
}

conn = NetconfDriver(**my_device)
conn.open()
response = conn.get_config(source="running")
print(response.result)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "scrapli-netconf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "arista,automation,cisco,eos,iosxe,iosxr,juniper,junos,netconf,network,nxos,ssh,telnet",
    "author": "",
    "author_email": "Carl Montanari <carl.r.montanari@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2c/1b/28122d8713c27cc0281d320e7cf2ed21b52ced2a89536b9fc5d0707de82a/scrapli_netconf-2024.1.30.tar.gz",
    "platform": null,
    "description": "[![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli-netconf.svg)](https://pypi.org/project/scrapli-netconf)\n[![PyPI version](https://badge.fury.io/py/scrapli-netconf.svg)](https://badge.fury.io/py/scrapli-netconf)\n[![Weekly Build](https://github.com/scrapli/scrapli_netconf/workflows/Weekly%20Build/badge.svg)](https://github.com/scrapli/scrapli_netconf/actions?query=workflow%3A%22Weekly+Build%22)\n[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blueviolet.svg)](https://opensource.org/licenses/MIT)\n\nscrapli_netconf\n===============\n\n---\n\n**Documentation**: <a href=\"https://scrapli.github.io/scrapli_netconf\" target=\"_blank\">https://scrapli.github.io/scrapli_netconf</a>\n\n**Source Code**: <a href=\"https://github.com/scrapli/scrapli_netconf\" target=\"_blank\">https://github.com/scrapli/scrapli_netconf</a>\n\n**Examples**: <a href=\"https://github.com/scrapli/scrapli_netconf/tree/master/examples\" target=\"_blank\">https://github.com/scrapli/scrapli_netconf/tree/master/examples</a>\n\n---\n\nscrapli_netconf is a NETCONF driver built on top of scrapli, giving you all the scrapli behaviour you know and love, \nbut for NETCONF connections.\n\n\n#### Key Features:\n\n- __Easy__: Just like scrapli, scrapli_netconf is easy to get going with, and looks and feels just like \"normal\" \n  scrapli -- check out the documentation and example links above, and you'll be connecting to devices in no time.\n- __Fast__: Do you like to go fast? Of course you do! scrapli_netconf supports all of the ssh transports that \n  scrapli core supports; check out the `ssh2` transport if you've got the need for speed!\n- __Great Developer Experience__: scrapli_netconf has great editor support thanks to being fully typed; that plus \n  thorough docs make developing with scrapli a breeze.\n- __Well Tested__: Perhaps out of paranoia, but regardless of the reason, scrapli_netconf has lots of tests! Unit tests \n  cover the basics, regularly ran functional tests connect to virtual routers to ensure that everything works IRL! \n- __Concurrency on Easy Mode__: [Nornir's](https://github.com/nornir-automation/nornir) \n  [scrapli plugin](https://github.com/scrapli/nornir_scrapli) gives you all the normal benefits of scrapli __plus__ \n  all the great features of Nornir.\n\n\n## Requirements\n\nMacOS or \\*nix<sup>1</sup>, Python 3.7+\n\nscrapli_netconf's only requirements are `scrapli`, of course, and `lxml`.\n\n<sup>1</sup> Although many parts of scrapli *do* run on Windows, Windows is not officially supported\n\n\n## Installation\n\n```\npip install scrapli_netconf\n```\n\nSee the [docs](https://scrapli.github.io/scrapli_netconf/user_guide/installation) for other installation methods/details.\n\n\n\n## A Simple Example\n\n```python\nfrom scrapli_netconf.driver import NetconfDriver\n\nmy_device = {\n    \"host\": \"172.18.0.13\",\n    \"auth_username\": \"scrapli\",\n    \"auth_password\": \"scrapli\",\n    \"auth_strict_key\": False,\n    \"port\": 830\n}\n\nconn = NetconfDriver(**my_device)\nconn.open()\nresponse = conn.get_config(source=\"running\")\nprint(response.result)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2021 Carl Montanari  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": "Fast, flexible, sync/async, Python 3.7+ NETCONF client built on scrapli",
    "version": "2024.1.30",
    "project_urls": {
        "Changelog": "https://scrapli.github.io/scrapli_netconf/changelog/",
        "Docs": "https://scrapli.github.io/scrapli_netconf/",
        "Homepage": "https://github.com/scrapli/scrapli_netconf"
    },
    "split_keywords": [
        "arista",
        "automation",
        "cisco",
        "eos",
        "iosxe",
        "iosxr",
        "juniper",
        "junos",
        "netconf",
        "network",
        "nxos",
        "ssh",
        "telnet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74c73f9f719de2210cb506dadf84e2c82ae57488ae79d9e0ddae25c9f92460a7",
                "md5": "63a45baee703303531bede9db1743508",
                "sha256": "4b5e0af204b6d0a816824a266c912beba3987502f9ad40a8f0bb03ad48cd8794"
            },
            "downloads": -1,
            "filename": "scrapli_netconf-2024.1.30-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63a45baee703303531bede9db1743508",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 37521,
            "upload_time": "2024-01-29T02:28:36",
            "upload_time_iso_8601": "2024-01-29T02:28:36.354063Z",
            "url": "https://files.pythonhosted.org/packages/74/c7/3f9f719de2210cb506dadf84e2c82ae57488ae79d9e0ddae25c9f92460a7/scrapli_netconf-2024.1.30-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c1b28122d8713c27cc0281d320e7cf2ed21b52ced2a89536b9fc5d0707de82a",
                "md5": "a6b5dfa0efb930712187d514f64f5103",
                "sha256": "c319a6ec6f144e8a645800534e8bfe8e3573a831bce2cc0c398d20c62b28cf45"
            },
            "downloads": -1,
            "filename": "scrapli_netconf-2024.1.30.tar.gz",
            "has_sig": false,
            "md5_digest": "a6b5dfa0efb930712187d514f64f5103",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 31083,
            "upload_time": "2024-01-29T02:28:38",
            "upload_time_iso_8601": "2024-01-29T02:28:38.364899Z",
            "url": "https://files.pythonhosted.org/packages/2c/1b/28122d8713c27cc0281d320e7cf2ed21b52ced2a89536b9fc5d0707de82a/scrapli_netconf-2024.1.30.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-29 02:28:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "scrapli",
    "github_project": "scrapli_netconf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "scrapli-netconf"
}
        
Elapsed time: 0.17857s