Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install fortigate-api via python pip




fortigate-api - Python package to configure Fortigate (Fortios) devices using REST API, it belongs to Classifiers:

- Development Status :: 5 - Production/Stable
- Intended Audience :: Developers
- Intended Audience :: System Administrators
- Intended Audience :: Telecommunications Industry
- License :: OSI Approved
- Natural Language :: English
- Programming Language :: Python :: 3.8
- Topic :: System
- Topic :: System :: Networking
- Topic :: System :: Networking :: Firewalls

When you know about this project and you want to new install fortigate-api to support your project or you get trouble as ModuleNotFoundError: No module named "fortigate-api" or ImportError: cannot import name "fortigate-api" in your project, let follow this tutorial to install fortigate-api



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_fortigate-api_env

- Active the virtual environment

test_fortigate-api_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_fortigate-api_env

- Active the virtual environment

source test_fortigate-api_env/bin/active


Step 2: OK, now, let flow below content to start the installation fortigate-api

To install fortigate-api on Windows(CMD):

py -m pip install fortigate-api

To install fortigate-api on Unix/macOs:

pip install fortigate-api


Step 3: If you want to install a specific fortigate-api version, add ==<fortigate-api version> to the end command line

Example:

pip install fortigate-api==0.1.1


Please see the version list below table:

VersionReleased dateCommand
fortigate-api 0.2.52022-06-16T05:04:19Windows:

py -m pip install fortigate-api==0.2.5

Unix/macOs:

pip install fortigate-api==0.2.5

fortigate-api 0.2.22022-05-23T14:53:58Windows:

py -m pip install fortigate-api==0.2.2

Unix/macOs:

pip install fortigate-api==0.2.2

fortigate-api 0.2.12022-05-21T20:46:53Windows:

py -m pip install fortigate-api==0.2.1

Unix/macOs:

pip install fortigate-api==0.2.1

fortigate-api 0.1.12022-04-17T19:21:29Windows:

py -m pip install fortigate-api==0.1.1

Unix/macOs:

pip install fortigate-api==0.1.1


Step 4: Otherwise, you can install fortigate-api from local archives:

Download the distribution file from fortigate_api-0.2.5.tar.gz or the specific fortigate-api version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_fortigate-api_downloaded_file>

On Unix/macOs:

pip install <path_to_fortigate-api_downloaded_file>


List distribution:

- fortigate_api-0.1.1.tar.gz (python version >=3.8)
- fortigate_api-0.2.1.tar.gz (python version >=3.8)
- fortigate_api-0.2.2.tar.gz (python version >=3.8)
- fortigate_api-0.2.5.tar.gz (python version >=3.8)
- fortigate_api-0.2.6.tar.gz (python version >=3.8)
- fortigate_api-1.0.1.tar.gz (python version >=3.8)


Project link:

- Homepage
- Download