Python SDK for Windows
For developers to utilize the AAPM Python SDK, the necessary Python module is available in compressed file format named "aapm_python_sdk-1.0.0.tar.gz" under the directory "libs/python" within the installation folder structure. The AAPM SDK Python module should be installed using pip (Python Install Packager), the package manager. The Python version utilized during SDK development is Python 3.9. It's worth noting that the Python SDK does not include gRPC libraries; instead, they are designated as required libraries within the installation package.
c:\kron> py -m pip install .\libs\aapm_python_sdk-1.0.0.tar.gz
Once the installation is complete, you can list the installed Python packages with the following command. As seen below, the 'python-sdk' and 'grpc' modules are available in the system.
A sample code can be written using a code editor as follows:
The code snippet related to the SDK call here can be easily identified as similar to other SDKs. The primary classes utilized are still the PasswordManager and Response classes. In scenarios where access to the AAPM Agent via the gRPC port using the Python SDK is not feasible, the SDK will attempt to directly connect to Kron PAM. To achieve this, the relevant address must be passed to the httpAddress method.