Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sysaudit

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sysaudit

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

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

sysaudit

.. image:: https://readthedocs.org/projects/sysaudit/badge/?version=latest :target: https://sysaudit.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

.. image:: https://github.com/brettlangdon/sysaudit/workflows/Build/badge.svg?branch=main&event=push :target: https://github.com/brettlangdon/sysaudit/actions?query=branch%3Amain+workflow%3ABuild+event%3Apush :alt: Build status

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

.. code-block:: bash

pip install sysaudit

Quick Usage

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

.. code-block:: 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'})

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc