Fortinet white logo
Fortinet white logo
2024.10.0

How to build FortiNDR Cloud Client Library

How to build FortiNDR Cloud Client Library

The FortiNDR Cloud Client Library is written in Python version 3. Its source code can be found at FNC-Python-Library. In this section, we will review the functionalities of the FNC-Python-Library and how it can be used.

The Client Library can be built in two different formats, as a pip file or as whl file. This section shows how the library can be built and installed for any of these formats.

Build and install as a pip package

To build, run the following command:

python3 setup.py sdist

To install, run the following command:

pip install dist/com.fortinet.fndrc.integrations.python_client-x.x.x.*.tar.gz

To install to specific directory, run the following command:

pip install --target <directory> dist/com.fortinet.fndrc.integrations.python_client-x.x.x.*.tar.gz

Build and install as a wheel package

To build, run the following command:

python3 setup.py bdist_wheel

To install, run the following command:

pip install dist/com.fortinet.fndrc.integrations.python_client-x.x.x-py3-none-any.whl

To install to specific directory, run the following command:

pip install --target <directory> dist/com.fortinet.fndrc.integrations.python_client-x.x.x-py3-none-any.whl

How to build FortiNDR Cloud Client Library

How to build FortiNDR Cloud Client Library

The FortiNDR Cloud Client Library is written in Python version 3. Its source code can be found at FNC-Python-Library. In this section, we will review the functionalities of the FNC-Python-Library and how it can be used.

The Client Library can be built in two different formats, as a pip file or as whl file. This section shows how the library can be built and installed for any of these formats.

Build and install as a pip package

To build, run the following command:

python3 setup.py sdist

To install, run the following command:

pip install dist/com.fortinet.fndrc.integrations.python_client-x.x.x.*.tar.gz

To install to specific directory, run the following command:

pip install --target <directory> dist/com.fortinet.fndrc.integrations.python_client-x.x.x.*.tar.gz

Build and install as a wheel package

To build, run the following command:

python3 setup.py bdist_wheel

To install, run the following command:

pip install dist/com.fortinet.fndrc.integrations.python_client-x.x.x-py3-none-any.whl

To install to specific directory, run the following command:

pip install --target <directory> dist/com.fortinet.fndrc.integrations.python_client-x.x.x-py3-none-any.whl