Saravanan666/pypi-org huggingface dataset:
Package: wagtail-quick-create
Wagtail Quick CreateWagtail Quick Create offers shortcut links to create objects from models specified in your settings file.A panel is added to the admin home, offering a type:Clicking a create link will offer a parent selection for the new itemNote on parent pagesWagtailquickcreate needs theparent_page_typesset on the model you wish to include so it can successfully provide the parent page selection. If this isn't specified, you will likely see every page offered as a parent, this will not work as it's looking up pages usingwagtail.core.models.Pageand this core wagtail class hasis_creatable = FalseConfigurationInstall using pip:pipinstallwagtail-quick-createAfter installing the module, addwagtailquickcreateto your installed apps in your settings file:INSTALLED_APPS=[...'wagtailquickcreate',]Also add the models you would like to create quick links for to your settings file as'your_app_name.YourModelName':EG:WAGTAIL_QUICK_CREATE_PAGE_TYPES=['news.NewsPage','events.EventPage']If you want the Quick Create links panel toreplacethe wagtail summary panel, you can set this by adding the following to your settingsWAGTAIL_QUICK_CREATE_REPLACE_SUMMARY_PANEL=TrueIf you would like to offer image and or document links, this can also be done by specifying the following in your settings:WAGTAIL_QUICK_CREATE_DOCUMENTS=TrueWAGTAIL_QUICK_CREATE_IMAGES=TrueContributingWe are happy to receive pull requests for bug fixes, improvements and new features. SeeCONTRIBUTING.mdfor more information.Credits/AuthorsConcept created by Kate Statton - NYPR@katestatton
Package: wagtail-rangefilter
Wagtail RangefilterIntegratesdjango-admin-rangefilterinto Wagtail's ModelAdminLinksDocumentationChangelogContributingSupported versionsPython 3.8, 3.9, 3.10, 3.11Django 3.2, 4.2Wagtail 4.1, 5.1, 5.2, 6.0 (with external packagewagtail-modeladmin)InstallationNOTE:Starting with wagtail 5.0 you can install and use the external packagewagtail-modeladmin, with 6.0+ you have to use it.pipinstallwagtail-rangefilterAdd this to your installed django applications:INSTALLED_APPS=[...,'wagtail_rangefilter','rangefilter',...,]Example usage# Starting with Wagtail 6.0, the external package "wagtail-modeladmin" is required:# from wagtail_modeladmin.options import ModelAdminfromwagtail.contrib.modeladmin.optionsimportModelAdminfromwagtail_rangefilter.filtersimportDateRangeFilter,DateTimeRangeFilterclassExampleAdmin(ModelAdmin):...list_filter=(("test_date",DateRangeFilter),("test_datetime",DateTimeRangeFilter),)...Developmentpipinstall-e'.[testing]'-URunning the testapptox-einteractiveAlternative:cptests/local.py.exampletests/local.py
pythonmanage.pyrunserver
Package: wagtail-react-streamfield
Drop-in replacement for the StreamField inWagtail.This work was funded thanks toa Kickstarter campaign!It relies onreact-streamfield,
a React package created for the occasion.This work is currently in beta phase and will in the end be merged in Wagtail.You should be careful and manually check that it works for your own StreamField
and report any bug you find.RequirementsWagtail 2.6 or above.Getting startedIt’s really easy to setup, like most NoriPyt packages:pip installwagtail-react-streamfieldAdd'wagtail_react_streamfield',to yourINSTALLED_APPSbefore'wagtail.admin','wagtail.images','wagtail.docs'&'wagtail.snippets'That’s it!Usagewagtail-react-streamfield has the same class API as the regular StreamField.
What changes:Metaattributes (or passed to __init__)closedSet toTrueto close all blocks of this type when loading the page.
Defaults toFalse.Screenshots
Package: wagtail-react-streamfield-django-3
Drop-in replacement for the StreamField inWagtail.This work was funded thanks toa Kickstarter campaign!It relies onreact-streamfield,
a React package created for the occasion.This work is currently in beta phase and will in the end be merged in Wagtail.You should be careful and manually check that it works for your own StreamField
and report any bug you find.RequirementsWagtail 2.6 or above.Getting startedIt’s really easy to setup, like most NoriPyt packages:pip installwagtail-react-streamfieldAdd'wagtail_react_streamfield',to yourINSTALLED_APPSbefore'wagtail.admin','wagtail.images','wagtail.docs'&'wagtail.snippets'That’s it!Usagewagtail-react-streamfield has the same class API as the regular StreamField.
What changes:Metaattributes (or passed to __init__)closedSet toTrueto close all blocks of this type when loading the page.
Defaults toFalse.Screenshots
Package: wagtail-readability
===============wagtail-readability===============A plugin to assist with readability in Wagtail's hallo.js.Installing==========Install using pip::pip install wagtail-readabilityIt works with Wagtail 1.0 and upwards.Using=====To use this plugin firstly you will need to add ``wagtailreadability`` to your installed apps.This will add an icon to all wagtail ``RichTextField`` s with an eye icon. Clicking on this icon will display the score of howreadable the text you have written is... image:: https://i.imgur.com/dgjvuI3.png
Package: wagtail-redactor
Wagtail Redactor========================Fork of [django-wysiwyg-redactor](https://github.com/douglasmiranda/django-wysiwyg-redactor), that works with WagtailCMS.## Requirements- wagtail>=1.5This package comes with [Codemirror](https://codemirror.net/)## What's inside- wagtail_redactor.fields.RedactorField - Django field- wagtail_redactor.blocks.RedactorFieldBlock - Wagtail StreamField block## Quick start* Install:```pip install -e git+https://github.com/diveru4i/wagtail-redactor.git#egg=wagtail_redactor```* Add "wagtail_redactor" to your INSTALLED_APPS```pythonINSTALLED_APPS = (...'wagtail_redactor',...)```*. Add url(r'^redactor/', include(wagtail_redactor.urls)), to urls.py```pythonimport wagtail_redactor.urlsurlpatterns = [# ...url(r'^redactor/', include(wagtail_redactor.urls)),# ...]```* Add default config in settings.py```pythonREDACTOR_OPTIONS = {'lang': 'en'}REDACTOR_UPLOAD = 'uploads/'FILE_UPLOAD_PERMISSIONS = 0644```* If you wish to use RedactorFieldBlock as part of a more complex StreamField block, you should add ```icon-redactor``` to it's Meta:```pythonclass MoreComplexBlock(blocks.StructBlock):title = blocks.CharBlock()text = RedactorFieldBlock(label=u'Text', required=False)class Meta:icon = 'pick icon-redactor'```## Documentation- [WagtailCMS](https://github.com/torchbox/wagtail)- [django-wysiwyg-redactor](https://github.com/douglasmiranda/django-wysiwyg-redactor)- [Imperavi Redactor](http://imperavi.com/redactor/)
Package: wagtail_redirect_importer
# Wagtail Redirect ImporterYour friendly neighborhood importer that lets you import redirects from
different tabular data formats, such as .csv and .xlsScreen1FeaturesBulk import redirects from the Wagtail adminSupports these formats:csvtsvxlsxlsxdfBasicallyall import formats supported by
tablibThe cli toolimport_redirectsfor powerusersRequirementsPython 3.5+Wagtail 2.7+InstallationInstall the library:pip install wagtail_redirect_importerAddwagtail_redirect_importerto yourINSTALLED_APPSin
Django settings.INSTALLED_APPS=(# ...'wagtail_redirect_importer',)ScreenshotsScreen1Step 1: Select data file and formatScreen2Step 2: Inspect data, configure header mapping and target site, then hit
importScreen3Step 3: After import is complete you get a summary with potential error
detailsCreditsdjango-import-export- Pieces of the admin code are heavily inspired by this library, it
also includes the modules for formats and temporary storage.tablib- Enables us to load
data from several data formats.LicenseWagtail-Redirect-Importer is released under theMIT
License.
Package: wagtail-redisearch
wagtail-redisearchA Django app to useRediSearchas a search
backend in Wagtail.RequirementsDjango >= 3.2Wagtail >= 2.15RediSearch v2UsageInstallwagtail-redisearchfrom PyPi.In yoursettings.pyadd"wagtail_redisearch"toINSTALLED_APPSand configure your search backend as follows:INSTALLED_APPS=["wagtail_redisearch",...]WAGTAILSEARCH_BACKENDS={"default":{"BACKEND":"wagtail_redisearch",# optional parameters"INDEX":"custom-index-name",# default: "wagtail""HOST":"127.0.0.1","PORT":6379,# you can add any option here to be used when initializing# a Redis client with redis-py.# e.g."retry_on_error":True}}For more information about what options you can pass to the Redis client, look at theofficial documentation.wagtail-redisearchimplements the interfaces described inBackends Rolling your own, thus usage in Wagtail requires no special adjustment.To configure search on your models, follow theofficial Wagtail documentation.ContributingTo contribute to this project you'll need RediSearch installed andpoetry.# install dependenciespoetryinstall# run testsmaketest# run tests with toxmaketest-all# to run a minimal Wagtail application to test things outmakerun
Package: wagtail-related
wagtailrelatedA module for Wagtail that finds related pages and tags for your pages.How to installInstall using pip:pip install wagtail-relatedSettingsIn your settings file, addwagtailrelatedtoINSTALLED_APPS:INSTALLED_APPS=[# ...'wagtailrelated',# ...]URL configurationInclude API url into yoururlpatterns:urlpatterns=[# ...url(r'^api/more-like-this',include('wagtailrelated.api.urls')),# ...Backend settingsAdd the following setting into your project:WAGTAIL_RELATED_BACKENDS={'default':{'BACKEND':'wagtailrelated.backends.elasticsearch5',}}Note that the module uses Elasticsearch to find related pages and relies on Wagtail's
built-in search backend. This means that you should have theWAGTAILSEARCH_BACKENDSsettingcomfigured withwagtail.search.backends.elasticsearch5in your project.Settings shown in this instruction will work fine,
if your Elasticsearch 5 backend exists under thedefaultkey.
If your project has multiple Wagtail search backends and your Elasticsearch 5 search backend
has different key, see how you need to modifyWAGTAIL_RELATED_BACKENDShere.How to useThe package provides an API to get related pages. See theAPI documentation.
Package: wagtail-reoako
About Wagtail ReoakoWagtail CMS plugin forreoako.nz. Contact the team at Reoako to get your API key.InstallationAdd wagtail_reoako to INSTALLED_APPSINSTALLED_APPS = [
     ...
     'wagtail_reoako',
     ...
 ]Add REOAKO API KEY to settings# Add Reoako settings
 REOAKO_API_KEY = '<your_api_key>' # Required. And client domains must be whitelisted
 REOAKO_API_DOMAIN = 'https://api.reoako.nz'Note, any environment domains and port numbers (including dev domains) must be whitelisted against your API key. e.g. if your developing locally onhttp://localhost:8000this must be whitelisted for your API key. Get in touch with the Reoako team to discuss.ConfigurationIf you're using the default Draftail Rich Text Area and have completed the installation steps, Reoako will now be available as a tool in the editor.If you have non standard Draftail editors defined and you'd like to add it as an additional feature, this can be defined like so:# Add Reoako to draftail editor.
    WAGTAILADMIN_RICH_TEXT_EDITORS = {
        'default': {
            'WIDGET': 'wagtail.admin.rich_text.DraftailRichTextArea',
            'OPTIONS': {
                'features': [
                    ...       
                    'reoako',
                    ...
                ]
             }
        },
    }
Package: wagtail-rest-pack
wagtail-rest-packwagtail-rest-pack=====
Wagtail Rest PackWagtail app easing development of single page application with specific complex needs. And for fun.Deployment BackendPush your changesIncrement version in setup.cfgStart push.sh command, which pushes to repositoryDeployment FrontendIncrement version in package.jsonPush your changesrun "npm run build"run "npm run publish"
Package: wagtail-rest-polls
Wagtail PollsThis is a really simple polls app for Django and Wagtail. It has a REST interface for
front-end applications (like React) or you can render it in templates.InstallationRequirements:Django 3.xWagtail 2.xDjango rest framework 3.xStart by installing the packagepip install wagtail-pollsNext migrate the modelspython manage.py migrateAdd the polls app to your settingsINSTALLED_APPS = [
    ...
    'polls'
]Add the urls or endpoints tourls.pyfrom polls import endpoints as polls_endpoints

urlpatterns += path('polls/', include(poll_router))-- and/or --from polls import urls as polls_urls

urlpatterns += path('polls/', include(polls_urls)) # adjust the url path to fit needsCreating a PollIn wagtail navigate to "Snippets" and select "Polls"You can then compelete the form and add choices as desired.Viewing resultsResults will be shown in the wagtail admin interface for each poll under the choicesAPI ReferenceGet all PollsGET /polls/Response{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "id": 1,
            "question": "Does this work?",
            "description": "Testing 1 2 3",
            "image": null,
            "choices": [
                {
                    "id": 2,
                    "sort_order": null,
                    "choice": "no",
                    "poll": 1
                },
                {
                    "id": 1,
                    "sort_order": null,
                    "choice": "yes",
                    "poll": 1
                }
            ]
        }
    ]
}Get PollGET /polls/${id}/ParameterTypeDescriptionidstringRequired. Id of Poll to fetchResponse{
    "id": 1,
    "question": "Does this work?",
    "description": "Testing 1 2 3",
    "image": null,
    "choices": [
        {
            "id": 2,
            "sort_order": null,
            "choice": "no",
            "poll": 1
        },
        {
            "id": 1,
            "sort_order": null,
            "choice": "yes",
            "poll": 1
        }
    ]
}Post VotePOST /polls/vote/ParameterTypeDescriptionpollintRequired. Id of pollchoiceintRequired. Id of choiceuserintoptional. Id of userResponse - returns a list of results for the poll{
    "results": [
        {
            "no": 2
        },
        {
            "yes": 2
        }
    ]
}LicenseMIT
Package: wagtail-resume
Wagtail resumeWagtail-resume is a reusable Wagtail page model designed to make the creation of your resume easy and quick.Feaures:Easy management of your resume in WagtailSearch engine optimized using HTML meta tags - make it easier to find your resume in GoogleFlexible section creation of projects, blog posts, etcEasy customizations of font, icons and background colorEasily reference other content on your Wagtail page as blog postsHTML based, no more sending of PDFs, just a url for sharingIn-site Weasyprint button for a PDF versionResponsive for mobile and tabletPreviewThe full resume example islive and accesible here.DependenciesWagtail-metadataIt uses wagtail-metadata for all meta & SEO fields.Wagtail-markdownWeasyprintUses Weasyprint to generate a PDF from the HTML page.InstallationInstall wagtail-resume with pip:pip install wagtail-resumeAdd the application and dependencies to installed Django applications:INSTALLED_APPS=[..."wagtailmetadata","wagtailmarkdown","wagtail_resume",...]Add the urls for generating a pdf using Weasyprint:path("resume/",include("wagtail_resume.urls")),Run the migrations.Getting startedImport and extend the BaseResumePage:# home/models.pyfromwagtail_resume.modelsimportBaseResumePageclassResumePage(BaseResumePage):passAfter adding the model you'll need to make a migrationpython manage.py makemigrations... and then apply itpython manage.py migrateHead over to the Wagtail admin and create your resume!Weasyprint generates PDFs using the absolute URL of a resume which consists of the hostname, port and path. Therefore don't forget to configure your site's host and path in the Wagtail admin interface which is located in settings -> sites. E.g when running the server locally the host should be localhost and the port should be 8000 (or whichever port you develop locally with).Default FieldsDefault resume fields:RoleProfile pictureSocial linksAboutWork ExperienceContributions (Opensource/projects)Writing (internal Wagtail pages or external URLs)Education (Degrees/Courses/Certificates)CustomizationWagtail-resume currently supports 4 customizations:Heading for a sectionIcon for a section (Fontawesome)Font styleBackground colorPDF generation button visibility (public, authenticated, disabled)The background-color should be specified in hex (e.g #FFFFFF) orcss supported colorsand the font should be available on Google fonts. The fonts supported are only the ones fromGoogle Fontsso make sure to check what fonts are available.
Package: wagtail-richer-text
wagtail-richer-textProvides a mechanism for extending rich text facilities in Wagtail. Please bear with us while we prepare more detailed documentation.Compatibilitywagtail-richer-text' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallwagtail-richer-textAddwagtail_richer_textto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'wagtail_richer_text'# ...]
Package: wagtail-rps-template
An app that customising the Wagtail Admin Interface for red pepper Customer.InstallationRecommended way to install ispip:pip install wagtail-rps-templateAddwagtail_rpstoINSTALLED_APPSin settings.py beforewagtail.adminINSTALLED_APPS = [
  "wagtail_rps",
  ...
]NotesPublishing to PyPI:python -m pip install -U wheel twine setuptools
python setup.py sdist
python setup.py bdist_wheel
twine upload --skip-existing dist/*
Package: wagtail-rss-feed-block
Wagtail RSS feedWagtail RSS feed is a Django app that provides custom content block that can be used with any Wagtail page model.This way you can load any RSS feed and display it on a any Wagtail page.Quick startInstall "wagtail_rss_feed_block" using pip$ pip install wagtail-rss-feed-blockAdd "wagtail_rss_feed_block" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "wagtail_rss_feed_block",
]Use RSSFeedBlock in your Wagtail Page model for example like this:from wagtail.models import Page
from wagtail.fields import StreamField
from wagtail_rss_feed_block.blocks import RSSFeedBlock

class BlogPage(Page):
    body = StreamField([
        ...
        ('rss_feed', RSSFeedBlock()),
        ...
    ])

    content_panels = [       
        FieldPanel('body'),
    ]Make and apply database migrations with new changes:$ python manage.py makemigrations
$ python manage.py migrateDevelopmentClone this repo:$ git clone git@github.com:LESPROJEKT/wagtail-rss-feed-block.gitUse pip to install this package from newly cloned repo folder to your local Django project ( -e argument stands for --editable and it's handy for local development. It will reload your Django project every time you make changes to wagtail-rss-feed-block.):$ pip install -e <path to repo folder>Now you can continue from step no. 2 of Quick start guide above.
Package: wagtail-sb-admin-interface
Wagtail Admin InterfaceCustomize the Wagtail admin interface from the admin itself.Inspired bydjango-admin-interface.RequirementsPython 3.9.0 or higherDjango 4.0.0 or higherWagtail 4.0.0 or higherInstallpipinstallwagtail-sb-admin-interfaceUsageAddwagtail.contrib.settings,wagtail.contrib.modeladmin,colorfieldandwagtail_sb_admin_interfaceto yourINSTALLED_APPSsettingsINSTALLED_APPS = [
  "wagtail_sb_admin_interface",
  # ...
  "wagtail.contrib.settings",
  "wagtail.contrib.modeladmin",
  "colorfield",
  # ...
]DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.
Package: wagtail-sb-blocks
Wagtail BlocksPackage with basic, adaptable and reusable blocks to build awesome sites with wagtail.RequirementsPython 3.8.1 or higherWagtail 3.0 or higherDjango 3.2 or higherInstallpipinstallwagtail-sb-blocksUsageAddwagtail_sb_blocksto yourINSTALLED_APPSsettingsINSTALLED_APPS=[# ..."wagtail_sb_blocks",# ...]In your stream blocks use blocks from this package to rapid development.fromwagtail.blocksimportStreamBlockfromwagtail_sb_blocks.blocksimportTitleBlock,ParagraphBlock,FigureBlock,ButtonBlockclassEnhancedHTMLBlock(StreamBlock):title=TitleBlock()paragraph=ParagraphBlock()figure=FigureBlock()button=ButtonBlock()DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.
Package: wagtail-sb-codefield
Wagtail CodeFieldUse CodeField fromdjango-sb-codefieldin Wagtail AdminRequirementsPython 3.8.1 or higher but lower than 4.0.0Django lower than 4.0.0Wagtail lower than 4.0.0django-sb-codefield lower than 1.0.0Installpipinstallwagtail-sb-codefieldUsageAddwagtail_sb_codefield,django_sb_codefieldandcodemirror2to yourINSTALLED_APPSsettingsINSTALLED_APPS = [
  # ...
  "codemirror2",
  "django_sb_codefield",
  "wagtail_sb_codefield",
]DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.
Package: wagtail-sb-fontawesome
Wagtail FontAwesomeUse FontAwesome icons in Wagtail admin.RequirementsPython 3.8.1 or higherDjango 4.0.0 or higherWagtail 4.0.0 or higherInstallpipinstallwagtail-sb-fontawesomeUsageAddwagtail_sb_fontawesometo yourINSTALLED_APPSsettingsINSTALLED_APPS = [
  # ...
  "wagtail_sb_fontawesome",
]DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.
Package: wagtail-sb-imageserializer
Wagtail Image SerializerWagtail package to render images with rendition in a single API Field.RequirementsPython 3.8.1 or higherWagtail 3.0 or higherDjango 3.2 or higherDjango Rest Framework 3.13 or higherInstallpipinstallwagtail-sb-imageserializerUsageAddwagtail.api.v2,rest_frameworkandwagtail_sb_imageserializerto yourINSTALLED_APPSsettingsINSTALLED_APPS = [
  # ...
  "wagtail.api.v2",
  "rest_framework",
  "wagtail_sb_imageserializer",
  # ...
]In your model specify theImageSerializerFieldas serializer for theAPIFieldrelated to the image field and add therenditionsparameter with the renditions you want to render.fromwagtail.modelsimportPagefromwagtail.apiimportAPIFieldfromwagtail_sb_imageserializer.fieldsimportImageSerializerFieldclassSamplePage(Page):image=ImageSerializerField()api_fields=[APIField("image",serializer=ImageSerializerField(renditions={"lazy":"fill-50x50","mobile":"fill-128x128","tablet":"fill-256x256","desktop":"fill-512x512",}),),]When yo require your page from the API, the image filed will looks like this{"id":1234567890,"meta":{"type":"wagtailimages.Image","title":"Image title","alt":"Image alt text"},"original":{"width":123456788890,"height":123456788890,"download_url":"https://your-cdn-domain/path/to/original_images/image_name.png"},"renditions":{"lazy":{"width":50,"height":50,"download_url":"https://your-cdn-domain/path/to/reditions/image_name.fill-50x50.png"},"mobile":{"width":128,"height":128,"download_url":"https://your-cdn-domain/path/to/reditions/image_name.fill-128x128.png"},"tablet":{"width":256,"height":256,"download_url":"https://your-cdn-domain/path/to/reditions/image_name.fill-256x256.png"},"desktop":{"width":512,"height":512,"download_url":"https://your-cdn-domain/path/to/reditions/image_name.fill-512x512.png"}}},DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.
Package: wagtail-sb-socialnetworks
Wagtail Social NetworksWagtail package to manage sites social network profiles.RequirementsPython 3.8, 3.9, 3.10Installpipinstallwagtail-sb-socialnetworksUsageAddwagtail.contrib.settingsandwagtail_sb_socialnetworksto yourINSTALLED_APPSsettingsINSTALLED_APPS = [
  # ...
  "wagtail.contrib.settings",
  "wagtail_sb_socialnetworks",
  # ...
]DocsEjemplosWikiChangelogAll changes to versions of this library are listed in thechange history.DevelopmentCheck out ourcontribution guide.ContributorsSee the list of contributorshere.