Browse Source

remove README.md

pull/6/head
Brett Langdon 5 years ago
parent
commit
3cf0893a78
Signed by: brettlangdon GPG Key ID: A70042D88B95AA2B
1 changed files with 0 additions and 32 deletions
  1. +0
    -32
      README.md

+ 0
- 32
README.md View File

@ -1,32 +0,0 @@
sysaudit
========
Backport module of [sys.audit](https://docs.python.org/3.8/library/sys.html#sys.audit)
and [sys.addaudithook](https://docs.python.org/3.8/library/sys.html#sys.addaudithook)
from Python 3.8.
**Note:** This module does _not_ backport any of the built-in
[audit events](https://docs.python.org/3.8/library/audit_events.html#audit-events).
## Installation
```
pip install sysaudit
```
## Usage
`sysaudit` can be used as a drop-in replacement for `sys.audit` and `sys.addaudithook`.
``` python
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'})
```

Loading…
Cancel
Save