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.

Source Distribution

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

Uploaded Source

Built Distributions

sysaudit-0.3.0-pp37-pypy37_pp73-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (42.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp37-pypy37_pp73-manylinux1_x86_64.manylinux_2_12_x86_64.whl (42.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp37-pypy37_pp73-macosx_10_15_x86_64.whl (40.1 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

sysaudit-0.3.0-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (42.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux1_x86_64.whl (42.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp36-pypy36_pp73-macosx_10_15_x86_64.whl (40.1 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

sysaudit-0.3.0-pp27-pypy_73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (42.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp27-pypy_73-manylinux_2_12_x86_64.manylinux1_x86_64.whl (42.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-pp27-pypy_73-macosx_10_15_x86_64.whl (40.0 kB view hashes)

Uploaded PyPy macOS 10.15+ x86-64

sysaudit-0.3.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (98.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp39-cp39-manylinux_2_12_i686.manylinux1_i686.whl (98.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp39-cp39-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (100.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp39-cp39-manylinux1_x86_64.manylinux_2_12_x86_64.whl (100.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp39-cp39-macosx_10_15_x86_64.whl (44.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

sysaudit-0.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux1_x86_64.whl (102.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (100.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp38-cp38-manylinux_2_12_i686.manylinux1_i686.whl (100.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp38-cp38-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (102.0 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp38-cp38-macosx_10_15_x86_64.whl (44.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

sysaudit-0.3.0-cp37-cp37m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (95.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp37-cp37m-manylinux2010_i686.manylinux_2_12_i686.whl (94.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp37-cp37m-manylinux1_x86_64.manylinux_2_12_x86_64.whl (95.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp37-cp37m-manylinux1_i686.manylinux_2_12_i686.whl (94.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp37-cp37m-macosx_10_15_x86_64.whl (44.7 kB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

sysaudit-0.3.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux1_x86_64.whl (94.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp36-cp36m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (94.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp36-cp36m-manylinux2010_i686.manylinux_2_12_i686.whl (91.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp36-cp36m-manylinux1_i686.manylinux_2_12_i686.whl (91.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp36-cp36m-macosx_10_15_x86_64.whl (44.6 kB view hashes)

Uploaded CPython 3.6m macOS 10.15+ x86-64

sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (91.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_x86_64.manylinux1_x86_64.whl (91.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_i686.manylinux2010_i686.whl (89.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp35-cp35m-manylinux_2_12_i686.manylinux1_i686.whl (89.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp35-cp35m-macosx_10_15_x86_64.whl (43.7 kB view hashes)

Uploaded CPython 3.5m macOS 10.15+ x86-64

sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (83.6 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_x86_64.manylinux1_x86_64.whl (83.6 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_i686.manylinux2010_i686.whl (81.9 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp27-cp27mu-manylinux_2_12_i686.manylinux1_i686.whl (81.9 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp27-cp27m-manylinux2010_x86_64.manylinux_2_12_x86_64.whl (83.6 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp27-cp27m-manylinux2010_i686.manylinux_2_12_i686.whl (82.0 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp27-cp27m-manylinux1_x86_64.manylinux_2_12_x86_64.whl (83.6 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

sysaudit-0.3.0-cp27-cp27m-manylinux1_i686.manylinux_2_12_i686.whl (82.0 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ i686

sysaudit-0.3.0-cp27-cp27m-macosx_10_15_x86_64.whl (43.2 kB view hashes)

Uploaded CPython 2.7m macOS 10.15+ x86-64

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