Personal tools
Skip to content. | Skip to navigation
scrapli-cfg
scrapli_community Documentation: https:/scrapli.github.io/scrapli_community Source Code: https:/github.com/scrapli/scrapli_community This is the scrapli_community repository for scrapli. If you would like to use scrapli, but the platform(s) that you work with are not supported in the "core" scrapli platforms, you have come to the right place! This library is intended to be a place for scrapli users to add additional platform support to scrapli. Please see the main scrapli repo for much more information about the main project. 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 thoro
DEPRECATED: the Phynix/yamlloader project provide an improved version of this library with unit tests, performance improvements (by providing access to the C implementation of PyYAML) and is more actively developed. You should use it! This module provide a loader and a dumper for PyYAML allowing to keep items order when loading a file (by putting them in OrderedDict objects) and to manage OrderedDict objects when dumping to a file. The loader is based on stackoverflow topic (thanks to Eric Naeseth): http:/stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-mappings-as-ordereddicts#answer-5121963 Self promotion: I use it a lot with clg, which allows to generate command-line definition from a configuration file, for keeping order of subcommands, options and arguments in the help message! Loader usage import yaml import yamlordereddictloader data = yaml.load(open('myfile.yml'), Loader=yamlordereddictloader.Loader) No
Flake8 is a wrapper around PyFlakes, pycodestyle, and Ned's McCabe script. It runs all the tools by launching the single flake8 script, and displays the warnings in a per-file, merged output. It also adds a few features: files that contain "# flake8: noqa" are skipped, lines that contain a "# noqa" comment at the end will not issue warnings, Git and Mercurial hooks are included, a McCabe complexity checker is included, and it is extendable through flake8.extension entry points.
Flake8 plugin for checking order of imports in Python code.
flake8-polyfill is a package that provides some compatibility helpers for Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.
Check the PEP-8 naming conventions. This module provides a plugin for flake8, the Python code checker. (It replaces the plugin flint-naming for the flint checker.)
Python 3.4 introduced official support for enumerations. This is a backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4. An enumeration is a set of symbolic names (members) bound to unique, constant values. Within an enumeration, the members can be compared by identity, and the enumeration itself can be iterated over. This module defines two enumeration classes that can be used to define unique sets of names and values: Enum and IntEnum. It also defines one decorator, unique, that ensures only unique member names are present in an enumeration.
ipaddress provides the capabilities to create, manipulate and operate on IPv4 and IPv6 addresses and networks. The functions and classes in this module make it straightforward to handle various tasks related to IP addresses, including checking whether or not two hosts are on the same subnet, iterating over all hosts in a particular subnet, checking whether or not a string represents a valid IP address or network definition, and so on.
High-level wrapper around a subset of the OpenSSL library, includes among others * SSL.Connection objects, wrapping the methods of Python's portable sockets * Callbacks written in Python * Extensive error-handling mechanism, mirroring OpenSSL's error codes