fakenos


Namefakenos JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummaryFake Network Operating System
upload_time2024-05-23 11:03:14
maintainerDenis Mulyalin
docs_urlNone
authorDenis Mulyalin
requires_python<3.13,>=3.8
licenseMIT
keywords networkautomation testing ssh
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Downloads][pepy-downloads-badge]][pepy-downloads-link]
[![PyPI][pypi-latest-release-badge]][pypi-latest-release-link]
[![PyPI versions][pypi-pyversion-badge]][pypi-pyversion-link]
[![GitHub Discussion][github-discussions-badge]][github-discussions-link]
[![Code style: black][black-badge]][black-link]
[![Tests][github-tests-badge]][github-tests-link]

# Fake Network Operating Systems - FakeNOS

> "Reality is merely an illusion, albeit a very persistent one."
>
> ~ Albert Einstein

FakeNOS created to simulate Network Operating Systems interactions.

[Documentation](https://fakenos.github.io/fakenos/)

## Why?

Crucial aspect of writing applications or scripts for Network Automation is 
testing, often testing done using physical or virtual instances of network
appliances running certain version of Network Operating System (NOS). That
approach, while gives best integration results, in many cases carries a lot
of overhead to setup, run and tear down as well as putting significant burden
on compute and storage resource utilization.

Other approach is to mock underlying libraries methods to fool applications
under testing into believing that it is getting output from real devices. That
approach works very well for unit testing, but fails to simulate such aspects
as connection establishment and handling.

FakeNOS positions itself somewhere in the middle between full integration testing
and testing that mocks device interactions. FakeNOS allows to create NOS plugins
to produce pre-defined output to test applications behavior while running servers 
to establish connections with.

## What?

FakeNOS can:

- Run thousands of servers to stress test applications
- Simulate Network Operating Systems Command Line Interface (CLI) interactions
- Provide high-level API to create custom NOS plugins
- Run in docker container to simplify integration with your infrastructure
- Make use of FakeNOS CLI tool for quick run and prototype simulations
- Works on Windows, MAC and Linux under major Python version

## How?

Send input and get the output - this is how we interact with many 
Network Operating Systems, FakeNOS allows to pre-define the output 
to sent in response to certain input commands, making it ideal for
isolated feature testing.

FakeNOS is a micro-kernel framework that can be extended using plugins. 
The core is kept small and optimized while most of the functionality 
offloaded to plugins.

FakeNOS has these pluggable systems:

- Server Plugins - plugins responsible for running various servers to connect with
- Shell Plugins - plugins to simulate command line interface shell
- NOS plugins - plugins to simulate Network Operating System commands

## What not?

FakeNOS is a simulator, it does not emulate any of Network Control, Data 
or Management planes, it merely takes the commands as input and responds
with predefined output.

## FakeNOS inspired by and borrowed from

- [sshim](https://pythonhosted.org/sshim/) - library for testing and debugging SSH automation clients
- [PythonSSHServerTutorial](https://github.com/ramonmeza/PythonSSHServerTutorial) - tutorial on creating paramiko based SSH server
- [fake-switches](https://github.com/internap/fake-switches) - pluggable switch/router command-line simulator
- [ncs-netsim](https://developer.cisco.com/docs/nso/guides/#!the-network-simulator) - tool to simulate a network of devices
- [cisshgo](https://github.com/tbotnz/cisshgo) - concurrent SSH server to emulate network equipment for testing purposes
- [scrapli-replay](https://pypi.org/project/scrapli-replay/) - tools to enable fdeasy testing of SSH programs and to create semi-interactive SSH servers


[github-discussions-link]:     https://github.com/fakenos/fakenos/discussions
[github-discussions-badge]:    https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
[black-badge]:                 https://img.shields.io/badge/code%20style-black-000000.svg
[black-link]:                  https://github.com/psf/black
[pypi-pyversion-link]:         https://pypi.python.org/pypi/fakenos/
[pypi-pyversion-badge]:        https://img.shields.io/pypi/pyversions/fakenos.svg
[pepy-downloads-link]:         https://pepy.tech/project/fakenos
[pepy-downloads-badge]:        https://pepy.tech/badge/fakenos
[github-tests-badge]:          https://github.com/fakenos/fakenos/actions/workflows/main.yml/badge.svg
[github-tests-link]:           https://github.com/fakenos/fakenos/actions
[pypi-latest-release-badge]:   https://img.shields.io/pypi/v/fakenos.svg
[pypi-latest-release-link]:    https://pypi.python.org/pypi/fakenos

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fakenos",
    "maintainer": "Denis Mulyalin",
    "docs_url": null,
    "requires_python": "<3.13,>=3.8",
    "maintainer_email": "d.mulyalin@gmail.com",
    "keywords": "NetworkAutomation, Testing, SSH",
    "author": "Denis Mulyalin",
    "author_email": "d.mulyalin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/be/7c/3f382aef2624754c7f67bdc3c40f072f55ca709ff7ee064b9c032683935e/fakenos-1.0.1.tar.gz",
    "platform": null,
    "description": "[![Downloads][pepy-downloads-badge]][pepy-downloads-link]\n[![PyPI][pypi-latest-release-badge]][pypi-latest-release-link]\n[![PyPI versions][pypi-pyversion-badge]][pypi-pyversion-link]\n[![GitHub Discussion][github-discussions-badge]][github-discussions-link]\n[![Code style: black][black-badge]][black-link]\n[![Tests][github-tests-badge]][github-tests-link]\n\n# Fake Network Operating Systems - FakeNOS\n\n> \"Reality is merely an illusion, albeit a very persistent one.\"\n>\n> ~ Albert Einstein\n\nFakeNOS created to simulate Network Operating Systems interactions.\n\n[Documentation](https://fakenos.github.io/fakenos/)\n\n## Why?\n\nCrucial aspect of writing applications or scripts for Network Automation is \ntesting, often testing done using physical or virtual instances of network\nappliances running certain version of Network Operating System (NOS). That\napproach, while gives best integration results, in many cases carries a lot\nof overhead to setup, run and tear down as well as putting significant burden\non compute and storage resource utilization.\n\nOther approach is to mock underlying libraries methods to fool applications\nunder testing into believing that it is getting output from real devices. That\napproach works very well for unit testing, but fails to simulate such aspects\nas connection establishment and handling.\n\nFakeNOS positions itself somewhere in the middle between full integration testing\nand testing that mocks device interactions. FakeNOS allows to create NOS plugins\nto produce pre-defined output to test applications behavior while running servers \nto establish connections with.\n\n## What?\n\nFakeNOS can:\n\n- Run thousands of servers to stress test applications\n- Simulate Network Operating Systems Command Line Interface (CLI) interactions\n- Provide high-level API to create custom NOS plugins\n- Run in docker container to simplify integration with your infrastructure\n- Make use of FakeNOS CLI tool for quick run and prototype simulations\n- Works on Windows, MAC and Linux under major Python version\n\n## How?\n\nSend input and get the output - this is how we interact with many \nNetwork Operating Systems, FakeNOS allows to pre-define the output \nto sent in response to certain input commands, making it ideal for\nisolated feature testing.\n\nFakeNOS is a micro-kernel framework that can be extended using plugins. \nThe core is kept small and optimized while most of the functionality \noffloaded to plugins.\n\nFakeNOS has these pluggable systems:\n\n- Server Plugins - plugins responsible for running various servers to connect with\n- Shell Plugins - plugins to simulate command line interface shell\n- NOS plugins - plugins to simulate Network Operating System commands\n\n## What not?\n\nFakeNOS is a simulator, it does not emulate any of Network Control, Data \nor Management planes, it merely takes the commands as input and responds\nwith predefined output.\n\n## FakeNOS inspired by and borrowed from\n\n- [sshim](https://pythonhosted.org/sshim/) - library for testing and debugging SSH automation clients\n- [PythonSSHServerTutorial](https://github.com/ramonmeza/PythonSSHServerTutorial) - tutorial on creating paramiko based SSH server\n- [fake-switches](https://github.com/internap/fake-switches) - pluggable switch/router command-line simulator\n- [ncs-netsim](https://developer.cisco.com/docs/nso/guides/#!the-network-simulator) - tool to simulate a network of devices\n- [cisshgo](https://github.com/tbotnz/cisshgo) - concurrent SSH server to emulate network equipment for testing purposes\n- [scrapli-replay](https://pypi.org/project/scrapli-replay/) - tools to enable fdeasy testing of SSH programs and to create semi-interactive SSH servers\n\n\n[github-discussions-link]:     https://github.com/fakenos/fakenos/discussions\n[github-discussions-badge]:    https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github\n[black-badge]:                 https://img.shields.io/badge/code%20style-black-000000.svg\n[black-link]:                  https://github.com/psf/black\n[pypi-pyversion-link]:         https://pypi.python.org/pypi/fakenos/\n[pypi-pyversion-badge]:        https://img.shields.io/pypi/pyversions/fakenos.svg\n[pepy-downloads-link]:         https://pepy.tech/project/fakenos\n[pepy-downloads-badge]:        https://pepy.tech/badge/fakenos\n[github-tests-badge]:          https://github.com/fakenos/fakenos/actions/workflows/main.yml/badge.svg\n[github-tests-link]:           https://github.com/fakenos/fakenos/actions\n[pypi-latest-release-badge]:   https://img.shields.io/pypi/v/fakenos.svg\n[pypi-latest-release-link]:    https://pypi.python.org/pypi/fakenos\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fake Network Operating System",
    "version": "1.0.1",
    "project_urls": null,
    "split_keywords": [
        "networkautomation",
        " testing",
        " ssh"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3da265c391d3b672825ad6ebae5c5dfd6dfd85a216b51ea31dc51699d7c2486",
                "md5": "d2921ff086955292ee224982991abe7f",
                "sha256": "bb22e532f01b8d2150f8d323824a08ce6621816e288e2f954aa6c98d8d7e03f0"
            },
            "downloads": -1,
            "filename": "fakenos-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d2921ff086955292ee224982991abe7f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.8",
            "size": 370886,
            "upload_time": "2024-05-23T11:03:12",
            "upload_time_iso_8601": "2024-05-23T11:03:12.753518Z",
            "url": "https://files.pythonhosted.org/packages/b3/da/265c391d3b672825ad6ebae5c5dfd6dfd85a216b51ea31dc51699d7c2486/fakenos-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be7c3f382aef2624754c7f67bdc3c40f072f55ca709ff7ee064b9c032683935e",
                "md5": "3fb8d1c9fa49f37345533f96580d6915",
                "sha256": "471210154fe8c6cc5900cf170bec9ba1211e16dbb36d2074c412a185b179195b"
            },
            "downloads": -1,
            "filename": "fakenos-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3fb8d1c9fa49f37345533f96580d6915",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.8",
            "size": 343367,
            "upload_time": "2024-05-23T11:03:14",
            "upload_time_iso_8601": "2024-05-23T11:03:14.373035Z",
            "url": "https://files.pythonhosted.org/packages/be/7c/3f382aef2624754c7f67bdc3c40f072f55ca709ff7ee064b9c032683935e/fakenos-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-23 11:03:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "fakenos"
}
        
Elapsed time: 0.33069s