Infapy is the Informatica Intelligent Cloud Services Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Informatica CDI, Informatica Cloud Administrator, Informatica Cloud Monitor, Informatica CAI etc. You can find the latest, most up to date, documentation here at our doc site , including a list of services that are supported.
$ pip install infapy
After installing infapy
>>> import infapy
>>> infapy.encrypt()
Enter your user name: myInfaUser
Enter your password: myInfaPasswd
infa_access_key_id = gAAAAABhT2AUGrFWcXKs0-hCER85DEqHZh2ClRI0xc0gjOtFcWi_1esa9AkZt4k58Y5r2yEVl3sUF9oezTGE1tyF2knFXUX3Og==
infa_secret_access_key = gAAAAABhT2AUZ70m68HbSX2Lc3Xa-VQjObWUi2wCSXTiXMtLIVapDxrfKNS5bBffu1N334jmqql7LYer_r-mcjj4EwoS8U44Xg==
Next, set up credentials (in e.g. ~/.infa/credentials
):
For Windows, set it up in C:\Users\userName\.infa\credentials
For Linux, set it up in ~/.infa/credentials
[default]
infa_access_key_id = YOUR_KEY
infa_secret_access_key = YOUR_SECRET
[dev]
infa_access_key_id = YOUR_KEY
infa_secret_access_key = YOUR_SECRET
Then, set up a default region (in e.g. ~/.infa/config
):
For Windows, set it up in C:\Users\userName\.infa\config
For Linux, set it up in ~/.infa/config
[default]
region = us
[dev]
region = em
Then, from a Python interpreter:
>>> import infapy
>>> infaHandler = infapy.connect()
or
>>> infaHandler = infapy.connect(profile="dev")
>>> v3 = infaHandler.v3()
>>> securityLogs = v3.getSecurityLogs().getSecurityLogsForLastOneDay()
>>> print(securityLogs)
We use GitHub issues for tracking bugs and feature requests and might have limited bandwidth to address them. Please use these community resources for getting help:
- Ask a question on Stack Overflow and tag it with infapy
- If it turns out that you may have found a bug, please open an issue
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests.
Infapy was made generally available on 25-Sep-2021 and is currently in the full support phase of the availability life cycle.