Setting Up AP Python on Linux in a Development Environment
The steps to set up the AP Python on a Linux platform in a development environment are described in the section.
Verifying prerequisites
Ensure that the following prerequisites are met:
- Python 3, version from 3.7 to 3.11, must be installed on the machine.
- Latest version of pip, the Python package manager, must be installed.
Extracting the AP Python installation package
Note:
<arch>can bex86-64orarm64.
To set up the AP Python on the Linux platform in development environment.
Download the
ApplicationProtector_Linux-ALL-64_<arch>_PY-<py_version>_<version>.tgzfile to any location on the machine where you want to install the protector.Extract the AP Python installation package using the following command.
tar –xvf ApplicationProtector_Linux-ALL-64_<arch>_PY-<py_version>_<version>.tgzThe following setup files are extracted:
Note: Here,
<arch>can bex64orarm64.LogforwarderSetup_Linux_<arch>_<version>.shRPAgentSetup_Linux_<arch>_<version>.shAPPythonSetup_Linux_<arch>_<version>.shAPPythonDevSetup_Linux_<arch>_<version>.tar
Installing AP Python in a Development Environment
Note: Here,
<arch>can bex64orarm64.
Run the following script to install AP Python in a development environment.
pip install APPythonDevSetup_Linux_<arch>_<version>.tarThis installs the AP Python in the development environment on the Linux platform. The default installation directory for the Linux platform is
/usr/local/lib/python<version>/site-packages.Verify that the following directories are created in the AP Python site-packages installation directory:
- appython
- mocks
- pypepprovider
To verify the version of the AP Python, run the following command:
pip listThe name and version of the installed AP Python package are displayed on the console.
appython-dev 10.0.0+xFor information on how to use the AP Python APIs in a development environment, refer to Using AP Python in a development environment.
Perform the following steps to access the AP Python Pydoc, which contains the API documentation.
Run the following command to extract the AP Python setup file:
tar –xvf APPythonDevSetup_Linux_<arch>_<version>.tarThe
appython_dev-<version>directory is extracted.Navigate to the
appython_dev-<version>\docs\directory.Open the
index.htmlfile in a browser to access the AP Python Pydoc.
If you are setting up the AP Python in a virtual Linux environment, then convert the
appython_dev-<version>\docs\directory to a zip file and download it locally. You can then open the index.html file in a browser to access the AP Python Pydoc.
Uninstalling AP Python from the Development Environment
To uninstall the AP Python from the development environment:
Login to the machine where AP Python is installed.
Uninstall the AP Python by running the following command.
pip uninstall appython-dev
Feedback
Was this page helpful?