scrapli


Namescrapli JSON
Version 2024.7.30 PyPI version JSON
download
home_pageNone
SummaryFast, flexible, sync/async, Python 3.7+ screen scraping client specifically for network devices
upload_time2024-07-30 14:30:00
maintainerNone
docs_urlNone
authorNone
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.
            <p center><a href=""><img src=https://github.com/carlmontanari/scrapli/blob/main/scrapli.svg?sanitize=true/></a></p>

[![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli.svg)](https://pypi.org/project/scrapli)
[![PyPI version](https://badge.fury.io/py/scrapli.svg)](https://badge.fury.io/py/scrapli)
[![Weekly Build](https://github.com/carlmontanari/scrapli/workflows/Weekly%20Build/badge.svg)](https://github.com/carlmontanari/scrapli/actions?query=workflow%3A%22Weekly+Build%22)
[![Coverage](https://codecov.io/gh/carlmontanari/scrapli/branch/master/graph/badge.svg)](https://codecov.io/gh/carlmontanari/scrapli)
[![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
=======

---

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

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

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

---

scrapli -- scrap(e c)li --  is a python 3.7+ library focused on connecting to devices, specifically network devices
 (routers/switches/firewalls/etc.) via Telnet or SSH.

#### Key Features:

- __Easy__: It's easy to get going with 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! All of scrapli is built with speed in mind, but if you really 
  feel the need for speed, check out the `ssh2` transport plugin to take it to the next level!
- __Great Developer Experience__: scrapli 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 has lots of tests! Unit tests 
  cover the basics, regularly ran functional tests connect to virtual routers to ensure that everything works IRL! 
- __Pluggable__: scrapli provides a pluggable transport system -- don't like the currently available transports, 
  simply extend the base classes and add your own! Need additional device support? Create a simple "platform" in 
  [scrapli_community](https://github.com/scrapli/scrapli_community) to easily add new device support!
- __But wait, there's more!__: Have NETCONF devices in your environment, but love the speed and simplicity of 
  scrapli? You're in luck! Check out [scrapli_netconf](https://github.com/scrapli/scrapli_netconf)!
- __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.
- __Sounds great, but I am a Gopher__: For our Go loving friends out there, check out 
  [scrapligo](https://github.com/scrapli/scrapligo) for a similar experience, but in Go!


## Requirements

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

scrapli "core" has no requirements other than the Python standard library<sup>2</sup>.


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

<sup>2</sup> While Python 3.6 has been dropped, it *probably* still works, but requires the `dataclass` 
backport as well as third party `async_generator` library, Python 3.7+ has no external dependencies for scrapli "core"


## Installation

```
pip install scrapli
```

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



## A Simple Example

```python
from scrapli import Scrapli

device = {
   "host": "172.18.0.11",
   "auth_username": "scrapli",
   "auth_password": "scrapli",
   "auth_strict_key": False,
   "platform": "cisco_iosxe"
}

conn = Scrapli(**device)
conn.open()
print(conn.get_prompt())
```

<small>* Bunny artwork by Caroline Montanari, inspired by [@egonelbre](https://github.com/egonelbre/gophers). 
The bunny/rabbit is a nod to/inspired by the white rabbit in `Monty Python and the Holy Grail`, because there 
are enough snake logos already!</small>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "scrapli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "arista, automation, cisco, eos, iosxe, iosxr, juniper, junos, netconf, network, nxos, ssh, telnet",
    "author": null,
    "author_email": "Carl Montanari <carl.r.montanari@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/46/7e/23b1c464075b27808c233f88290f806c891f867b84ca05c1477b28f8a3b3/scrapli-2024.7.30.tar.gz",
    "platform": null,
    "description": "<p center><a href=\"\"><img src=https://github.com/carlmontanari/scrapli/blob/main/scrapli.svg?sanitize=true/></a></p>\n\n[![Supported Versions](https://img.shields.io/pypi/pyversions/scrapli.svg)](https://pypi.org/project/scrapli)\n[![PyPI version](https://badge.fury.io/py/scrapli.svg)](https://badge.fury.io/py/scrapli)\n[![Weekly Build](https://github.com/carlmontanari/scrapli/workflows/Weekly%20Build/badge.svg)](https://github.com/carlmontanari/scrapli/actions?query=workflow%3A%22Weekly+Build%22)\n[![Coverage](https://codecov.io/gh/carlmontanari/scrapli/branch/master/graph/badge.svg)](https://codecov.io/gh/carlmontanari/scrapli)\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\n=======\n\n---\n\n**Documentation**: <a href=\"https://carlmontanari.github.io/scrapli\" target=\"_blank\">https://carlmontanari.github.io/scrapli</a>\n\n**Source Code**: <a href=\"https://github.com/carlmontanari/scrapli\" target=\"_blank\">https://github.com/carlmontanari/scrapli</a>\n\n**Examples**: <a href=\"https://github.com/carlmontanari/scrapli/tree/master/examples\" target=\"_blank\">https://github.com/carlmontanari/scrapli/tree/master/examples</a>\n\n---\n\nscrapli -- scrap(e c)li --  is a python 3.7+ library focused on connecting to devices, specifically network devices\n (routers/switches/firewalls/etc.) via Telnet or SSH.\n\n#### Key Features:\n\n- __Easy__: It's easy to get going with scrapli -- check out the documentation and example links above, and you'll be \n  connecting to devices in no time.\n- __Fast__: Do you like to go fast? Of course you do! All of scrapli is built with speed in mind, but if you really \n  feel the need for speed, check out the `ssh2` transport plugin to take it to the next level!\n- __Great Developer Experience__: scrapli has great editor support thanks to being fully typed; that plus thorough \n  docs make developing with scrapli a breeze.\n- __Well Tested__: Perhaps out of paranoia, but regardless of the reason, scrapli 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- __Pluggable__: scrapli provides a pluggable transport system -- don't like the currently available transports, \n  simply extend the base classes and add your own! Need additional device support? Create a simple \"platform\" in \n  [scrapli_community](https://github.com/scrapli/scrapli_community) to easily add new device support!\n- __But wait, there's more!__: Have NETCONF devices in your environment, but love the speed and simplicity of \n  scrapli? You're in luck! Check out [scrapli_netconf](https://github.com/scrapli/scrapli_netconf)!\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- __Sounds great, but I am a Gopher__: For our Go loving friends out there, check out \n  [scrapligo](https://github.com/scrapli/scrapligo) for a similar experience, but in Go!\n\n\n## Requirements\n\nMacOS or \\*nix<sup>1</sup>, Python 3.7+\n\nscrapli \"core\" has no requirements other than the Python standard library<sup>2</sup>.\n\n\n<sup>1</sup> Although many parts of scrapli *do* run on Windows, Windows is not officially supported\n\n<sup>2</sup> While Python 3.6 has been dropped, it *probably* still works, but requires the `dataclass` \nbackport as well as third party `async_generator` library, Python 3.7+ has no external dependencies for scrapli \"core\"\n\n\n## Installation\n\n```\npip install scrapli\n```\n\nSee the [docs](https://carlmontanari.github.io/scrapli/user_guide/installation) for other installation methods/details.\n\n\n\n## A Simple Example\n\n```python\nfrom scrapli import Scrapli\n\ndevice = {\n   \"host\": \"172.18.0.11\",\n   \"auth_username\": \"scrapli\",\n   \"auth_password\": \"scrapli\",\n   \"auth_strict_key\": False,\n   \"platform\": \"cisco_iosxe\"\n}\n\nconn = Scrapli(**device)\nconn.open()\nprint(conn.get_prompt())\n```\n\n<small>* Bunny artwork by Caroline Montanari, inspired by [@egonelbre](https://github.com/egonelbre/gophers). \nThe bunny/rabbit is a nod to/inspired by the white rabbit in `Monty Python and the Holy Grail`, because there \nare enough snake logos already!</small>\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+ screen scraping client specifically for network devices",
    "version": "2024.7.30",
    "project_urls": {
        "Changelog": "https://carlmontanari.github.io/scrapli/changelog",
        "Docs": "https://carlmontanari.github.io/scrapli/",
        "Homepage": "https://github.com/carlmontanari/scrapli"
    },
    "split_keywords": [
        "arista",
        " automation",
        " cisco",
        " eos",
        " iosxe",
        " iosxr",
        " juniper",
        " junos",
        " netconf",
        " network",
        " nxos",
        " ssh",
        " telnet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d713be91f8cde034654b16fe2f4e80fa7799454ff146cb33b7cfd6c702cb839e",
                "md5": "005f7d825dfa15194c1e6f3282147b77",
                "sha256": "88c90caf9c64733887645247ca7975d0a15b63a000679ac6de495dfba01be606"
            },
            "downloads": -1,
            "filename": "scrapli-2024.7.30-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "005f7d825dfa15194c1e6f3282147b77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 145444,
            "upload_time": "2024-07-30T14:29:58",
            "upload_time_iso_8601": "2024-07-30T14:29:58.021070Z",
            "url": "https://files.pythonhosted.org/packages/d7/13/be91f8cde034654b16fe2f4e80fa7799454ff146cb33b7cfd6c702cb839e/scrapli-2024.7.30-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "467e23b1c464075b27808c233f88290f806c891f867b84ca05c1477b28f8a3b3",
                "md5": "77e7891afc426fbb536ec364830557cd",
                "sha256": "95cee35c58be4306c2401e0b21f8edacd25d5c2ee47f938db7df15d41424f44b"
            },
            "downloads": -1,
            "filename": "scrapli-2024.7.30.tar.gz",
            "has_sig": false,
            "md5_digest": "77e7891afc426fbb536ec364830557cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 104515,
            "upload_time": "2024-07-30T14:30:00",
            "upload_time_iso_8601": "2024-07-30T14:30:00.067032Z",
            "url": "https://files.pythonhosted.org/packages/46/7e/23b1c464075b27808c233f88290f806c891f867b84ca05c1477b28f8a3b3/scrapli-2024.7.30.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-30 14:30:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "carlmontanari",
    "github_project": "scrapli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "scrapli"
}
        
Elapsed time: 4.41764s