I'm currently planning to analyze csv-reports from our ActiveDirectory and configuration files from our switches with Python.
I'm thinking of having seperate modules for each type of data (csv, txt). But I would like to avoid writing much of the testing and reporting capabilities from scratch.
Is there a python-module or tool, that can help me with this?
Especially I'm looking for a solution to analyze generic text-files. Something to write rules like this: if there is this regex-match, there has to be this match before this match, otherwise report an error.
USE-Cases:
- Analyze switchconfig and report an error when a port is in a given vlan but has no mac-acl applied.
- Look for users in a csv where the Street attribute doesn't match the given string.