Saravanan666/pypi-org huggingface dataset:
Package: wagtail-2fa
This Django app adds two factor authentication to Wagtail. Behind the scenes
it usedjango-otpwhich supports Time-based One-Time Passwords (TOTP). This
allows you to use various apps like Authy, Google Authenticator, or
1Password.Installationpipinstallwagtail-2faThen add the following lines to theINSTALLED_APPSlist in your Django
settings:INSTALLED_APPS=[# ...'wagtail_2fa','django_otp','django_otp.plugins.otp_totp',# ...]Next add the required middleware to theMIDDLEWARE. It should come
after the AuthenticationMiddleware:MIDDLEWARE=[# .. other middleware# 'django.contrib.auth.middleware.AuthenticationMiddleware','wagtail_2fa.middleware.VerifyUserMiddleware',# 'wagtail.core.middleware.SiteMiddleware',# .. other middleware]Migrate your database:pythonmanage.pymigrateSettingsThe following settings are available (Set via your Django settings):WAGTAIL_2FA_REQUIRED(defaultFalse): When set to True all
staff, superuser and other users with access to the Wagtail Admin site
are forced to login using two factor authentication.WAGTAIL_2FA_OTP_TOTP_NAME(default:False): The issuer name to
identify which site is which in your authenticator app. If not set andWAGTAIL_SITE_NAMEis defined it uses this. setsOTP_TOTP_ISSUERunder the hood.Making 2FA optionalWith the defaultVerifyUserMiddlewaremiddleware, 2FA is enabled for every user.
To make 2FA optional, use theVerifyUserPermissionsMiddlewaremiddleware instead.To do so, use theVerifyUserPermissionsMiddlewaremiddleware instead of theVerifyUserMiddlewarein your Django settings:MIDDLEWARE=[# ...# 'wagtail_2fa.middleware.VerifyUserMiddleware','wagtail_2fa.middleware.VerifyUserPermissionsMiddleware',# ...]When this middleware is used, a checkbox is added to the group permissions
and 2FA can be enabled or disabled per group.2FA is always enabled for superusers, regardless of the middleware used.SandboxFirst create a new virtualenv with Python 3.8 and activate it. Then run
the following commands:makesandboxYou can then visithttp://localhost:8000/admin/and login with the following
credentials:E-mail:superuser@example.comPassword:testing
Package: wagtail-accessibility
wagtail-accessibility✅ Accessibility content checks for Wagtail websites. Try it out on ourstatic demo page!InstallingInstall using pip:pipinstallwagtail-accessibilityThen addwagtailaccessibilityto yourINSTALLED_APPS. It works with Wagtail 4.1 and upwards.UsingThis plugin, when added to your template, will addtota11yto all page previews.
Tota11y is an accessibility visualization toolkit.To use it, simply include this in your template, and from now on all page previews will include it.{% load wagtailaccessibility_tags %}
{% tota11y %}Jinja2This plugin also contains a jinja2 implementation, to use it, include
the following in your config.{'BACKEND':'django.template.backends.jinja2.Jinja2','OPTIONS':{'extensions':[# […]'wagtailaccessibility.jinja2tags.tota11y',],},}The template tag can then be used like so:{{ tota11y() }}
Package: wagtailadminfontawesome
AddFontawesome5to your Wagtail project's admin.Installpip install wagtail-admin-fontawesomethan addwagtailadminfontawesometo your installed apps.UsageModelAdminUse icons on ModelAdmin menu, just setmenu_iconwith your favorite free icon (solid or brand) ofFontawesome listclass ModelPageAdmin(ModelAdmin):
    ...
    menu_icon = 'fa-rocket'
    ...
Package: wagtailadminintercom
Add an Intercom widget to your Wagtail admin.InstallingInstall using pip:$pipinstallwagailadminintercomAdd it to yourINSTALLED_APPSbeforewagtail.wagtailadmin:INSTALLED_APPS=[# ...'wagailadminintercom','wagtail.wagtailadmin',# ...]ConfiguringAddWAGTAILADMIN_INTERCOM_APP_IDandWAGTAILADMIN_INTERCOM_SECRET_KEYsettings to your settings file:WAGTAILADMIN_INTERCOM_APP_ID='abc123'WAGTAILADMIN_INTERCOM_SECRET_KEY='983th8fj98hgh98dj09gj08g4w'By default, identity verification is enabled using user IDs.
This can be overridden using theWAGTAILADMIN_INTERCOM_IDENTITY_VERIFICATIONsetting:WAGTAILADMIN_INTERCOM_IDENTITY_VERIFICATION='email'This setting can take three possible values:'email':Identity verification using email addresses.'id':Default. Identity verification via user IDs.None:Disable identity verification.The users email address is taken from theemailattribute on the user model by default.
If this is incorrect,
it can be overridden using theWAGTAILADMIN_INTERCOM_EMAIL_ATTRIBUTEsetting.
SetWAGTAILADMIN_INTERCOM_EMAIL_ATTRIBUTEtoNoneto disable sending users emails.By default, the widget will only appear whenDEBUG is Falseto prevent the widget appearing during development.
To force the widget to show or hide itself,
set theWAGTAILADMIN_INTERCOM_ENABLEDsetting:WAGTAILADMIN_INTERCOM_ENABLED=TrueThat is it! You should now see the widget appear in the Wagtail admin.
Package: wagtail-admin-preview
Wagtail Admin Preview TabQuick StartAddwagtail_admin_previewto yourINSTALLED_APPSsettings file like this::INSTALLED_APPS=[...,'wagtail_admin_preview',]Start the development server and you will find thepreviewtab after thecontenttab in page editing viewPurposeThe preview feature in wagtail admin requires you to open the page in another tab to preview.
This module simply adds another tab which shows you a preview of the latest draft saved without
requiring you to go open up another tab.The default preview button is kept as is and the only addition is the preview tab so this has a
very minimal footprint on your project.DependenciesThis module requires:1. Python >= 3.7 and2. wagtail >= 3.0
Package: wagtail-advanced-form-builder
# Wagtail Advanced Form Builder![Form fields](./docs/screenshots/waf-form-fields.png)# VersionsThis package supports Wagtail 2 and 4. There is currently no support for Wagtail 3.### Version 1.X.XIs for use with Wagtail version 4.X.X### Version 0.X.XIs for use with Wagtail version 2.X.X# AboutWagtail Advanced Form Builder is an extension on top of Wagtail’s in-built Form Builder. It provides the ability to
create forms with conditional logic.# DocumentationThe documentation for using and developing with Wagtail Advanced Form Builder can be found athttps://wagtail-advanced-form-builder.readthedocs.io/en/latest/# FeaturesSupport for the following fields:Single line fieldSelect dropdown fieldEmail fieldHidden fieldMulti line fieldMulti select fieldNumber fieldRadio fieldCheckbox fieldMultiple checkbox fieldInline HTML field…More fields to come…Conditional show hide actions on each field type includingIs equal toIs not equal toGreater thanGreater than or equal toLess thanLess than or equal toContainsStarts withEnds withIs blankIs not blankMultiple conditions can be added for each field# Getting HelpPlease report bugs or issues using the [Issue Tracker](https://github.com/octavenz/wagtail-advanced-form-builder/issues)# AuthorsRichard Blake ([Octave](https://octave.nz))# LicenseThis project is licensed under the BSD License - see the [LICENSE file](./LICENCE) for details
Package: wagtailagenda
Wagtail AgendaAn aganda app for Wagtail.This app is designed to be used in 2 cases:The agenda of an organisation, like a club or an association, with
an archive for past activitiesThe programme of an convention, with no archive and all activities
can be seen on the agenda independently of the actual hour and dateWith this app, you can:Have one or more agandaOne or more activities by agendaEach agenda can have an archive: If enabled, past activities can
only be seen on the archiveEach activity have a locationEach location can have description, address, floor, the list of
nearby public transport stops and imagesEach aganda provide an ICS online agendaStatusThe dev of this app just started.Todo: Everything.Install on your Wagtail websiteTBDInstall for devTBDLicenceLGPL-3.0-onlyAuthorSébastien Gendreseb@k-7.ch
Package: wagtail-ai
Wagtail AIGet help with your content using AI superpowers.Wagtail AI integrates Wagtail with AI's APIs (think ChatGPT) to help you write and correct your content.Right now, it can:Finish what you've started - write some text and tell Wagtail AI to finish it off for youCorrect your spelling/grammarLet you add your own custom promptsWork with multiple LLM providers including local models, OpenAI, Mistral, Claude and many othershttps://user-images.githubusercontent.com/27112/223072938-8cb5ccff-4835-489a-8be4-cca85001885e.mp4Requirements & CostsWagtail AI supportsmany different LLMs, with OpenAI models available by default.To use these, you'll need an OpenAI account and an API key. There'll also be some cost involved. For the OpenAI API used here, OpenAI charges $0.002 for 1,000 tokens (a word is about 1.3 tokens). Every token sent to the API, and every token we get back counts, so you can expect using 'correction' on 1,000 word paragraph to cost roughly:(1,000 * 1.3) + (35 * 1.3) (for the initial prompt) tokens sent to the API+ (1,000 * 1.3) tokens received from the API= 2,645 tokens = $0.0053LinksDocumentationChangelogContributingDiscussionsSecuritySupported VersionsWagtail 5.2Django 4.2Python 3.11
Package: wagtail-all-in-one-accessibility
All in One AccessibilityAll in One Accessibility widget improves wagtail website ADA compliance and browser experience for ADA, WCAG 2.1, Section 508, Australian DDA, European EAA EN 301 549, UK Equality Act (EA), Israeli Standard 5568, California Unruh, Ontario AODA, Canada ACA, German BITV, and France RGAA Standards.2 Minute installationScreen Reader, dynamic widget color and position, supports multiple languages (40 languages)Reduces the risk of time-consuming accessibility lawsuits.Use apps to connect to external services and manage data flowsIt uses the accessibility interface which handles UI and design related adjustments. All in One Accessibility app enhances your wagtail website accessibility to people with hearing or vision impairments, motor impaired, color blind, dyslexia, cognitive & learning impairments, seizure and epileptic, and ADHD problems. It uses the accessibility interface which handles UI and design related adjustments.all-in-one-accessibility-introduction- introduction of All in One Accessibility widget .InstallationRunpip install wagtail-all-in-one-accessibilityAddwagtail.contrib.modeladmininsettings.INSTALLED_APPSAddwagtail_all_in_one_accessibilityinsettings.INSTALLED_APPSAddwagtail_all_in_one_accessibility.context_processors.admin_AIOAinsettings.TEMPLATES context_processorsAdd<script id="aioa-adawidget" src="{{ AIOA_URL }}"></script>put this line in your base.html footerRunpython manage.py migrateRunpython manage.py runserverfor Restart your application serverUsageSettings.INSTALLED_APPSJust addwagtail_all_in_one_accessibilityandwagtail.contrib.modeladmin,in to your setting.INSTALLED_APPS:INSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','wagtail.contrib.modeladmin','wagtail_all_in_one_accessibility',]Settings.TEMPLATESJust addwagtail_all_in_one_accessibility.context_processors.admin_AIOAin your setting.TEMPLATES:TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'APP_DIRS':True,'OPTIONS':{'context_processors':['wagtail_all_in_one_accessibility.context_processors.admin_AIOA',],},},]Base.htmlJust add this tag in your base.html footer(your main template of wagtail website)<script id="aioa-adawidget" src="{{ AIOA_URL }}"></script>:<footer><scriptid="aioa-adawidget"src="{{ AIOA_URL }}"></script></footer>MigrateMigrate your apppythonmanage.pymigrateRestartRestart your app server with this command and check the admin panel the model is ready to usepythonmanage.pyrunserver
Package: wagtail-altstreamfield
Wagtail AlternateStreamFieldThis project provides an alternate implementation of Wagtail's StreamField.
This was created to resolve issues with performance for more complicated block structures.Basic Installation and UsageTo install use pip:pip install wagtail-altstreamfieldAdd "altstreamfield" to your Django Project'sINSTALLED_APPSlist.Create some custom blocks and awagtail.core.models.Pagesubclass like the following:#filename: [yourapp]/models.pyfromdjango.dbimportmodelsfromwagtail.core.modelsimportPagefromwagtail.admin.edit_handlersimportFieldPanel,StreamFieldPanelfromaltstreamfield.edit_handlersimportAltStreamFieldPanelfromaltstreamfield.fieldsimportAltStreamFieldfromaltstreamfield.blocksimport(StreamBlock,StructBlock,BooleanField,CharField,ChoiceField,DocumentChooserField,ImageChooserField,IntegerField,RichTextField,StreamBlockField,TextField,)# Create some custom blocksHEADING_TYPE_CHOICES=(('h1','H1'),('h2','H2'),('h3','H3'),('h4','H4'),('h5','H5'),('h6','H6'),)classHeading(StructBlock):heading_type=ChoiceField(choices=HEADING_TYPE_CHOICES,required=True)text=CharField()classMeta:icon='title'classParagraph(StructBlock):text=RichTextField()classMeta:icon='pilcrow'classDocumentLink(StructBlock):title=CharField()document=DocumentChooserField()classMeta:icon='doc-empty'classSimpleStreamBlock(StreamBlock):heading=Heading()paragraph=Paragraph()document=DocumentLink()# Create your models here.classHomePage(Page):body=AltStreamField(SimpleStreamBlock)content_panels=Page.content_panels+[AltStreamFieldPanel('body',classname='full'),]If you are creating a large number of blocks it is a good idea to separate the blocks into a separate module or modules.
Package: wagtailannotatedimage
Allows users to combine a Wagtail images with custom annotation data. Annotations are entered in the admin by
clicking points on an image, annotation data is then stored with relative x,y coordinates and optional extra form data.RequirementsWagtail >= 2.7Django >= 2.0InstallingInstall using pypipipinstallwagtailannotatedimageUsingExtend the BaseAnnotationForm to define what data should be stored with annotations.
AnnotationsField stores the annotations data as json, converting to a dict on retrieval.fromdjangoimportformsfromdjango.dbimportmodelsfromwagtail.wagtailcore.modelsimportPagefromwagtailannotatedimage.edit_handlersimportAnnotatedImagePanelfromwagtailannotatedimage.fieldsimportAnnotationsFieldfromwagtailannotatedimage.formsimportBaseAnnotationFormclassAnnotationForm(BaseAnnotationForm):title=forms.CharField()about=forms.TextField()classTestPage(Page):image=models.ForeignKey('wagtailimages.Image',blank=True,null=True,on_delete=models.SET_NULL,related_name="+")annotations=AnnotationsField(blank=True)content_panels=Page.content_panels+[# First parameter - name of the image field# Second parameter - name of the annotation field# annotation_form - optional, the form used for annotations if you need to store data for each pointAnnotatedImagePanel('image','annotations',annotation_form=AnnotationForm(),heading='Annotated Image')]<divclass='image-container'>{%imagepage.image('width-500')%}{%forannotationinpage.annotations%}<divclass='annotation'style="left:{{annotation.x*100}}%; top:{{annotation.y*100}}%;"><h3>{{annotation.fields.title}}</h3><p>{{annotation.fields.about}}</p></div>{%endfor%}</div>.image-container{position:relative;}.image-container>img{width:100%;height:auto;}.annotation{position:absolute;}
Package: wagtail-annotations
Allows users to combine a Wagtail images with custom annotation data. Annotations are entered in the admin by
clicking points on an image, annotation data is then stored with relative x,y coordinates and optional extra form data.RequirementsWagtail >= 2.7Django >= 2.0InstallingInstall using pypi and addwagtail-annotationsto yourINSTALLED_APPSpipinstallwagtail-annotationsUsingExtend the BaseAnnotationForm to define what data should be stored with annotations.
AnnotationsField stores the annotations data as json, converting to a dict on retrieval.fromdjangoimportformsfromdjango.dbimportmodelsfromwagtail.wagtailcore.modelsimportPagefromwagtail_annotations.edit_handlersimportAnnotatedImagePanelfromwagtail_annotations.fieldsimportAnnotationsFieldfromwagtail_annotations.formsimportBaseAnnotationFormclassAnnotationForm(BaseAnnotationForm):title=forms.CharField()about=forms.TextField()classTestPage(Page):image=models.ForeignKey('wagtailimages.Image',blank=True,null=True,on_delete=models.SET_NULL,related_name="+")annotations=AnnotationsField(blank=True)content_panels=Page.content_panels+[# First parameter - name of the image field# Second parameter - name of the annotation field# annotation_form - optional, the form used for annotations if you need to store data for each pointAnnotatedImagePanel('image','annotations',annotation_form=AnnotationForm(),heading='Annotated Image')]<divclass='image-container'>{%imagepage.image('width-500')%}{%forannotationinpage.annotations%}<divclass='annotation'style="left:{{annotation.x*100}}%; top:{{annotation.y*100}}%;"><h3>{{annotation.fields.title}}</h3><p>{{annotation.fields.about}}</p></div>{%endfor%}</div>.image-container{position:relative;}.image-container>img{width:100%;height:auto;}.annotation{position:absolute;}DevelopingYou can use the included test app to develop:>npminstall&&npmrunbuild>pipinstall-e.>exportDJANGO_SETTINGS_MODULE=settings>django-adminmigrate>django-admincreatesuperuser...>django-adminrunserverThere’s an Dockerfile that includes chromerdriver for the tests, you can build and run it locally if you don’t have chromedriver installed:>dockerbuild-fDockerfile.test-tannotation-test.>dockerrunannotation-test>dockerrun-eWAGTAIL_VERSION=27-eDJANGO_VERSIONS='30,31'annotation-test
Package: wagtail-app-pages
This module provides full MVC support for wagtail pages. Using it, it’s possible to extend routing for a page by using
url configs and views. It addresses the same problem solved by wagtail’s own RoutablePageMixin, without breaking clean
MVC principles.Free software: MIT licenseDocumentation:https://wagtail-app-pages.readthedocs.io.FeaturesAdd URL endpoints to wagtail pages by simply providing a url configUse regular django views instead of routing methods in the page modelEnrich (class based) views and request objects, so views always have access to the parent pageAdds areverse()method to pages, so we can do reverse lookups with respect to the page itselfProvides a template tag to reverse urls within the same page (automatically detecting parent page if available)Full url conf support, including django 2.0’s newpath()urlsFull support for app page revisions, explore older versions of the app page[![Build Status](https://api.travis-ci.com/mwesterhof/wagtail_app_pages.svg?branch=master)](https://travis-ci.com/mwesterhof/wagtail_app_pages)History0.3.5correct dependancy issue0.3.4target wagtail<=5.0,>=5.20.3.3fix requirements0.3.2Wagtail support for 5.0, dropping support for 30.3.1Wagtail support up to 4.20.3.0Release targeting exclusively Wagtail 3x and 4x versions0.2.21Wagtail support up to 4.00.2.20Wagtail 2.14 supportWagtail 2.15 support0.2.19Wagtail 2.12 supportWagtail 2.13 support0.2.17Wagtail 2.11 support0.2.16 (2020-09-08)Wagtail 2.10 support0.2.15 (2020-06-17)Wagtail 2.9 support0.2.14 (2020-02-03)Wagtail 2.8 support0.2.13 (2019-11-13)Wagtail 2.7 support0.2.12 (2019-10-01)Re-integrating multi-site fix0.2.11 (2019-09-11)Correctly update wagtail 2.6 support in setup.py0.2.10 (2019-09-02)Wagtail 2.6 support0.2.9 (2019-08-12)fix issue regarding url resolving in multi-site scenarios0.2.8 (2019-06-03)Wagtail 2.5 support0.2.7 (2019-01-21)Wagtail 2.4 support0.2.6 (2018-11-06)update requirements0.2.5 (2018-08-06)ensure that parent page will also be available as “page” in the context0.2.4 (2018-07-26Support for app page revisions0.2.3 (2018-05-29)Django 1.11 LTS support (issue #1)0.2.2 (2018-04-19)add context processor to provide parent_page to context0.2.1 (2018-04-10)fix templatetags missing in dist0.2.0 (2018-03-30)change to beta0.1.0 (2018-03-15)First release on PyPI.
Package: wagtail-asciinema
Implementsasciinema-playerembedding block.Requirements (tested)Python 3.5+Wagtail 1.9+Django 1.10InstallationInstall the library with pip:$pipinstallwagtail-asciinemaAddwagtail_asciinemato your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'wagtail_asciinema',]Downloadasciinema-playersources from it’srelease
pageand
then place it in your STATIC directory.AddAsciinemaBlockto your StreamField:fromwagtail_asciinema.blocksimportAsciinemaBlockasciinema=AsciinemaBlock(classname='full')You can add a method to determine if you need to include asciinema code
into your static/js blocks:fromwagtail.wagtailcore.modelsimportPageclassArticlePage(Page):@propertydefhas_asciinema(self):forstream_childinself.content:ifstream_child.block.name=='asciinema':returnTruereturnFalseAnd then add asciinema on your page on demand:{% block extra_css %}
  {% if self.has_asciinema %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}frontend/asciinema/v2.4.1/asciinema-player.css">
  {% endif %}
{% endblock %}
{% block extra_js %}
  {% if self.has_asciinema %}
    <script src="{{ STATIC_URL }}frontend/asciinema/v2.4.1/asciinema-player.js"></script>
  {% endif %}
{% endblock %}
Package: wagtail-association-panel
wagtail-association-panelPlease bear with us while we prepare more detailed documentation.Compatibilitywagtail-association-panel' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallwagtail-association-panelIf you use functional that requires an app (such as tags), addwagtail_association_panelto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'wagtail_association_panel'# ...]
Package: wagtailatomicadmin
This is an amended version of the Wagtail admin UI that makes it easier for users more easily visualises nested items and corrects a number of minor styling issues. Changes:Much improved UI for nested StreamFieldsConsistency of UI presentation between inline panels, streamfield panels, multipanels etc.Always visible help textConsistent alignment of titles, fields and help textConsistent alignment of success text, breadcrumb and titleSeparation of meta data and actions in editor footerConforms AA to WCAGStyling added todeleteandunpublishactions in dropdown menu![Screenshot](screenshot.png)Installpip install wagtailatomicadminThen addwagtailatomicadminto your installed apps. Make sure to place itbeforewagtail.wagtailadminso Django will give it precedence when searching for files.
Package: wagtail-attachments
wagtail-attachmentsA Wagtail app for managing attachments to ClusterableModels. Please bear with us while we prepare more detailed documentation.Compatibilitywagtail-attachments' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallwagtail-attachmentsAddwagtail_attachmentsto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'wagtail_attachments'# ...]
Package: wagtail-audio-embed
Wagtail-Audio-EmbedWagtail-Audio-Embed allows you to use links to sound files using the embed
feature of the draftail editor.It uses the default audio tag to play the audio file:SeeWagtail-Audio-Embed on PyPifor binaries and additional information.Quick startInstall using pip:pipinstallwagtail-audio-embedAdd "wagtailaudioembed" to your INSTALLED_APPS setting:INSTALLED_APPS=[...'wagtailaudioembed',]Register the embed finder class in your settingsWAGTAILEMBEDS_FINDERS=[{"class":"wagtailaudioembed.embed.AudioEmbedFinder",}]Restart your application and start embedding links to Vorbis files.ReferencesAdvanced tutorial: How to write reusable appsWagtail docs - Embedded contentPackaging Python ProjectsMozilla Developer Network : The Embed Audio element