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.

Installation

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.addaudithook(hook)

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.

Files for sysaudit, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size sysaudit-0.3.0-cp27-cp27m-macosx_10_15_x86_64.whl (43.2 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27m-manylinux1_i686.manylinux_2_12_i686.whl (82.0 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27m-manylinux1_x86_64.manylinux_2_12_x86_64.whl (83.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27m-manylinux2010_i686.manylinux_2_12_i686.whl (82.0 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (83.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_i686.manylinux1_i686.whl (81.9 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_i686.manylinux2010_i686.whl (81.9 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_x86_64.manylinux1_x86_64.whl (83.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (83.6 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp35-cp35m-macosx_10_15_x86_64.whl (43.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_i686.manylinux1_i686.whl (89.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_i686.manylinux2010_i686.whl (89.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_x86_64.manylinux1_x86_64.whl (91.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (91.7 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp36-cp36m-macosx_10_15_x86_64.whl (44.6 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp36-cp36m-manylinux1_i686.manylinux_2_12_i686.whl (91.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp36-cp36m-manylinux2010_i686.manylinux_2_12_i686.whl (91.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp36-cp36m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (94.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux1_x86_64.whl (94.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp37-cp37m-macosx_10_15_x86_64.whl (44.7 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp37-cp37m-manylinux1_i686.manylinux_2_12_i686.whl (94.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp37-cp37m-manylinux1_x86_64.manylinux_2_12_x86_64.whl (95.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp37-cp37m-manylinux2010_i686.manylinux_2_12_i686.whl (94.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp37-cp37m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (95.8 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp38-cp38-macosx_10_15_x86_64.whl (44.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp38-cp38-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (102.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp38-cp38-manylinux_2_12_i686.manylinux1_i686.whl (100.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (100.7 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux1_x86_64.whl (102.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl (44.9 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp39-cp39-manylinux1_x86_64.manylinux_2_12_x86_64.whl (100.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp39-cp39-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (100.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp39-cp39-manylinux_2_12_i686.manylinux1_i686.whl (98.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size sysaudit-0.3.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (98.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp27-pypy_73-macosx_10_15_x86_64.whl (40.0 kB) File type Wheel Python version pp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp27-pypy_73-manylinux_2_12_x86_64.manylinux1_x86_64.whl (42.2 kB) File type Wheel Python version pp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp27-pypy_73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (42.2 kB) File type Wheel Python version pp27 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp36-pypy36_pp73-macosx_10_15_x86_64.whl (40.1 kB) File type Wheel Python version pp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux1_x86_64.whl (42.3 kB) File type Wheel Python version pp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (42.3 kB) File type Wheel Python version pp36 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp37-pypy37_pp73-macosx_10_15_x86_64.whl (40.1 kB) File type Wheel Python version pp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp37-pypy37_pp73-manylinux1_x86_64.manylinux_2_12_x86_64.whl (42.3 kB) File type Wheel Python version pp37 Upload date Hashes View
Filename, size sysaudit-0.3.0-pp37-pypy37_pp73-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (42.3 kB) File type Wheel Python version pp37 Upload date Hashes View
Filename, size sysaudit-0.3.0.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page