Skip to main content

Backport module for sys.audit and sys.addaudithook from Python 3.8

Project description

Documentation Status Build status

Backport module of sys.audit and sys.addaudithook from Python 3.8.

Note: This module does not backport any of the built-in audit events.


pip install sysaudit

Quick Usage

sysaudit can be used as a drop-in replacement for sys.audit and sys.addaudithook.

import sysaudit

def hook(event, args):
    print("Event:", event, args)


sysaudit.audit("event_name", 1, 2, dict(key="value"))
# Event: event_name (1, 2, {'key': 'value'})

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sysaudit-0.3.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distributions

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page