Skip to main content

Python package for interacting with IP Fabric

Project description

IPFabric

IPFabric is a Python module for connecting to and communicating against an IP Fabric instance.

About

Founded in 2015, IP Fabric develops network infrastructure visibility and analytics solution to help enterprise network and security teams with network assurance and automation across multi-domain heterogeneous environments. From in-depth discovery, through graph visualization, to packet walks and complete network history, IP Fabric enables to confidently replace manual tasks necessary to handle growing network complexity driven by relentless digital transformation.

Installation

pip install ipfabric

To run examples please specify the extras option during install:

pip install ipfabric -E examples

Introduction

Please take a look at API Programmability - Part 1: The Basics for instructions on creating an API token.

Most of the methods and features can be located in Examples to show how to use this package. Another great introduction to this package can be found at API Programmability - Part 2: Python

Diagrams

Diagramming in IP Fabric version v4.3 and above has been moved to it's own package. The diagramming included in this package will work for version >= v4.0 and < v4.3.

pip install ipfabric-diagrams

Authentication

Basic

Please take a look at basic.py for basic authentication examples

Environment

The easiest way to use this package is with a .env file. You can copy the sample and edit it with your environment variables.

cp sample.env .env

This contains the following variables which can also be set as environment variables instead of a .env file.

IPF_URL="https://demo3.ipfabric.io"
IPF_TOKEN=TOKEN
IPF_VERIFY=true

IPF_DEV is an internal variable only, do not set to True.

Development

IPFabric uses poetry for the python packaging module. Install poetry globally:

pip install poetry

To install a virtual environment run the following command in the root of this directory.

poetry install

To test and build:

poetry run pytest
poetry build

GitHub Actions will publish and release. Make sure to tag your commits:

  • ci: Changes to our CI configuration files and scripts
  • docs: No changes just documentation
  • test: Added test cases
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
  • feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
  • BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning). A BREAKING CHANGE can be part of commits of any type.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipfabric-0.8.6.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipfabric-0.8.6-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file ipfabric-0.8.6.tar.gz.

File metadata

  • Download URL: ipfabric-0.8.6.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.2.0 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for ipfabric-0.8.6.tar.gz
Algorithm Hash digest
SHA256 266097a8781fddf07e6be7c0c517f9511a9a233e978fbd4cd24e6a761da1e7c3
MD5 62067ee9f415c5c0825c8b4daf99f682
BLAKE2b-256 600506363e44b9a3f80159016ddb01b07bb8f21ec7971b6410eb58d771005e04

See more details on using hashes here.

File details

Details for the file ipfabric-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: ipfabric-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.2.0 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for ipfabric-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce4aec66ae3bd16771249741483a7cd986245afa93d1fbcf62b6bfb9a16194a
MD5 e484059008da7a25443ed87091885ada
BLAKE2b-256 7f898c4e24b980610bd6eca4f8486bb28bc7921cf5b77f2b4269cdc13f9a8a7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page