Skip to main content

wagtail-neuralyzer

Pairs with django-neuralyzer, with wagtail support.

Install

pip install wagtail-neuralyzer

Register a model to have neuralyze action

Add wagtail_neuralyzer to your INSTALLED_APP:

INSTALLED_APP = [
    ...
    "django_neuralyzer",
    "wagtail_neuralyzer",
    ...
]

Add item action

Add the NeuralyzeSnippetViewSetMixin to your snippet class:

from wagtail_neuralyzer.views import NeuralyzeSnippetViewSetMixin
from wagtail_neuralyzer.views import NeuralyzeView

from my_app.neuralyzers import PersonNeuralyzer

# Create a new view that handle url and action as well as neuralyzer class
class OperatorNeuralyzeView(NeuralyzeView):
    neuralyzer_class = OperatorNeuralyzer


# inherit NeuralyzeSnippetViewSetMixin to register new url and neuralyze view
class PersonSnippetViewSet(NeuralyzeSnippetViewSetMixin, SnippetViewSet):
    model = Person
    neuralyze_view_class = OperatorNeuralyzeView
    ...

and finally register the new action:

from wagtail import hooks
from wagtail_neuralyzer.menu_item import NeuralyzeMenuItem

@hooks.register("register_snippet_action_menu_item")
def register_anonymize_menu_item(model):
    if model == Person:
        return NeuralyzeMenuItem()

And Tada, your model should have an "Anonymize" action together with save/delete/publish/...

Add bulk action

You can also add bulk action to the index view by registering wagtail hook

from wagtail import hooks

from wagtail_neuralyzer.action import NeuralyzeBulkAction

from my_app.models import Person
from my_app.neuralyzers import StudentNeuralyzer

@hooks.register("register_bulk_action")
class PersonNeuralyzerBulkAction(NeuralyzeBulkAction):
    models = [Person] # specify model here
    neuralyzer_class = PersonNeuralyzer # and neuralyzer to use here

Metadata

Release files for wagtail-neuralyzer 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-neuralyzer 0.2.6
File Size Uploaded Provenance
wagtail_neuralyzer-0.2.6.tar.gz 9.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-neuralyzer 0.2.6
File Interpreter ABI Platform
wagtail_neuralyzer-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / wagtail_neuralyzer-0.2.6.tar.gz

Download URL wagtail_neuralyzer-0.2.6.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
51caf8fd344bf199278b2cfc4b1273a1b531eb275e2b53c2224268b12594a67e
BLAKE2b-256 checksum
How to use checksums
f4943651e281f7c52a9ff506456439dbea5aae29201a6da0c4c322fd8508c46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / wagtail_neuralyzer-0.2.6-py3-none-any.whl

Download URL wagtail_neuralyzer-0.2.6-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ffb42c13bfccd190067295cb07589c94d7a85b52dc12550f6b73a5787562d5
BLAKE2b-256 checksum
How to use checksums
40218856044663496429a87e0b70ed48097fb2b0b52c9537c82d1ef274f2e9b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for wagtail-neuralyzer 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page