🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

django-audit-events

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-audit-events

Log audit events in Django

0.3.7
PyPI
Maintainers
2

Django Audit Events

Build status Documentation status PyPI PyPI - Django version PyPI - Python version PyPI - License Total alerts Code quality

Extensible custom audit events for humans! This Django app allows you to easily create your own events in your project. Currently only works on PostgreSQL.

Let's have a look:

def awesome_view(request):
    foo_obj = Foo.objects.get(pk=1)
    # Do something with foo_obj...
    request.audit_context.create_event(
        foo_obj,
        something="done",
        bar="baz"
    )

This will create an audit event, including the request URL, logged-in user, remote IP address, and the following event content:

>>> event.content
{"something": "done", "bar: "baz"}

For more information about installation and usage, check out the documentation!

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