May 2018
Intermediate to advanced
380 pages
9h 37m
English
The core part of this PEP is the introduction of two APIs that enable sysadmins to integrate Python into their security setup. The key factor is that these APIs don't impose certain restrictions on how the systems should be configured, or their behavior:
The following code shows how the PEP defines the API in the C code underlying Python. The new Python APIs for audit hooks are shown in audit_hook_api.py:
# Add an auditing hook sys.addaudithook(hook: ...