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

How to install PyFortiAPI via python pip




PyFortiAPI - Python Wrapper for FortiGate API, it belongs to Classifiers:

- Intended Audience :: System Administrators
- Topic :: System
- Topic :: System :: Networking
- Topic :: System :: Networking :: Firewalls
- Topic :: System :: Systems Administration

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



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_PyFortiAPI_env

- Active the virtual environment

test_PyFortiAPI_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_PyFortiAPI_env

- Active the virtual environment

source test_PyFortiAPI_env/bin/active


Step 2: OK, now, let flow below content to start the installation PyFortiAPI

To install PyFortiAPI on Windows(CMD):

py -m pip install PyFortiAPI

To install PyFortiAPI on Unix/macOs:

pip install PyFortiAPI


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

Example:

pip install PyFortiAPI==0.0.1


Please see the version list below table:

VersionReleased dateCommand
PyFortiAPI 0.3.02021-10-11T08:24:04Windows:

py -m pip install PyFortiAPI==0.3.0

Unix/macOs:

pip install PyFortiAPI==0.3.0

PyFortiAPI 0.2.12021-01-20T04:45:21Windows:

py -m pip install PyFortiAPI==0.2.1

Unix/macOs:

pip install PyFortiAPI==0.2.1

PyFortiAPI 0.2.02019-10-29T01:19:45Windows:

py -m pip install PyFortiAPI==0.2.0

Unix/macOs:

pip install PyFortiAPI==0.2.0

PyFortiAPI 0.1.12019-10-29T01:12:34Windows:

py -m pip install PyFortiAPI==0.1.1

Unix/macOs:

pip install PyFortiAPI==0.1.1

PyFortiAPI 0.1.02019-01-31T00:23:12Windows:

py -m pip install PyFortiAPI==0.1.0

Unix/macOs:

pip install PyFortiAPI==0.1.0

PyFortiAPI 0.0.82018-11-06T03:48:00Windows:

py -m pip install PyFortiAPI==0.0.8

Unix/macOs:

pip install PyFortiAPI==0.0.8

PyFortiAPI 0.0.72018-03-17T02:06:31Windows:

py -m pip install PyFortiAPI==0.0.7

Unix/macOs:

pip install PyFortiAPI==0.0.7

PyFortiAPI 0.0.62018-03-17T01:59:13Windows:

py -m pip install PyFortiAPI==0.0.6

Unix/macOs:

pip install PyFortiAPI==0.0.6

PyFortiAPI 0.0.52018-02-21T06:08:42Windows:

py -m pip install PyFortiAPI==0.0.5

Unix/macOs:

pip install PyFortiAPI==0.0.5

PyFortiAPI 0.0.42017-09-19T04:44:31Windows:

py -m pip install PyFortiAPI==0.0.4

Unix/macOs:

pip install PyFortiAPI==0.0.4

PyFortiAPI 0.0.32017-09-14T13:24:47Windows:

py -m pip install PyFortiAPI==0.0.3

Unix/macOs:

pip install PyFortiAPI==0.0.3

PyFortiAPI 0.0.22017-09-14T12:54:01Windows:

py -m pip install PyFortiAPI==0.0.2

Unix/macOs:

pip install PyFortiAPI==0.0.2

PyFortiAPI 0.0.12018-02-21T06:08:40Windows:

py -m pip install PyFortiAPI==0.0.1

Unix/macOs:

pip install PyFortiAPI==0.0.1


Step 4: Otherwise, you can install PyFortiAPI from local archives:

Download the distribution file from PyFortiAPI-0.3.0.tar.gz or the specific PyFortiAPI version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_PyFortiAPI_downloaded_file>

On Unix/macOs:

pip install <path_to_PyFortiAPI_downloaded_file>


List distribution:


Project link:

- Homepage