Saravanan666/pypi-org huggingface dataset:
Package: wagtail-autocomplete
An edit handler for the Wagtail content editor allowing single or multi autocompleted selection of Pages, Snippets, or other models.
The widget is written in React and can be used outside the Wagtail admin, if desired.FeaturesRapidly select related objects via a smooth autocomplete interfaceA drop-in alternative toPageChooserPanelorSnippetChooserPanelCreate new objects from the autocomplete input if your search turns up blankReact component can be used outside of the Wagtail admin for public-facing formsDefault theme shares the color scheme and styles of the Wagtail adminEasy to re-theme withBEMmethodologyWho’s using it?TheU.S. Press Freedom Trackermakes extensive use of this edit handler with its public-facing filters and content editor to rapidly select and create new related metadata objects.Merge into wagtail/wagtailEventually we would like this to be merged intowagtail/wagtail.
This will require some work on the Wagtail API.Support endpoints for non-PagemodelsSupport standardDjango field lookupssuch asid__inCreate objects from the APIPermission system for non-administrator access to the APIDocumentationOur documentation is onRead the Docsand includesbasic usage instructionsas well ascontribution guidelines.ContributorsHarris Lapiroff (Little Weaver Web Collective) for the UX and UI designRachel Stevens (Little Weaver Web Collective)Emily Horsman (Little Weaver Web Collective)
Package: wagtail-automatic-redirects
wagtail-automatic-redirectsPackage to help with Wagtail URL redirects. Wagtail comes with aredirects appwhich helps to manually create redirects in Wagtail admin. This helper app helps to automatically create redirects when the URL of Page is changed. Redirects will be created for the page and all its child pages automatically. This project uses the page revisions and publish signal to automate the redirects creation process.Installationpip install wagtail-automatic-redirectsAdd the package to your project's settingsINSTALLED_APPS=[# ... Other apps"wagtail_automatic_redirects","wagtail.contrib.redirects",# ... Other apps]Make sure theINSTALLED_APPSsetting include"wagtail.contrib.redirects",app from Wagtail.Also, check theMIDDLEWAREsetting includeMIDDLEWARE=[# ... Other middlewares"wagtail.contrib.redirects.middleware.RedirectMiddleware",# ... Other middlewares]LicenseBSD
Package: wagtailbettereditor
THIS PACKAGE HAS BEEN DEPRECATEDUse [Wagtail Atomic Admin](https://github.com/alexgleason/wagtailatomicadmin) instead.This is an amended version of the Wagtail editor interface that makes it easier for users more easily visualises nested items and corrects a number of minor styling issues. ChangesMuch 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 wagtailbettereditorThen addwagtailbettereditorto your installed apps.
Package: wagtail-block-collection
:exclamation: This project is very beta everything can change any second:exclamation: And this is my first python package:exclamation: So no garanties of any kindwagtail-block-collectionA collection of some basic wagtail streamfields blocks.
Based on bootstrap 5.0The blocks are divided in two categories:SectionsSections are a group of multiple blocks and include settings like the background.
They are perfect for the basic one-page layoutBlocksThese are just your normal streamfields to fill your site with content.
They van be used without the sectionsSectionsBasic color backgroundParalax img backgroundimg backgroundgradient backgroundsection content and image side by sideFull-width (and height) sliderBlocksTextImg + TextTitleIconButtonImageYoutube videoBootstrap card deckBootstrap columnSpacerCollapse content by buttonLineGoogle mapsIMG sliderAlertBootstrap accordionBootstrap alertCountdownPlanedMore slidersBootstrap buttongroupIcon listPrice tableCounterQuickstartThis is the short version of what is in thedocsYou need to have a working Wagtail project and thebootstrap 5.0 .css and .jspip install wagtail-block-collectionAdd the following entries to your settings.py in the INSTALLED_APPS section:'wagtailfontawesome',
'wagtail_color_panel',
'wagtail.contrib.settings',
'wagtail_block_collection',Make sure you have the'wagtail.contrib.settings.context_processors.settings',templates context_processorsNow you can import any of the blocks fromwagtail_block_collection.blocksOr you can import them all usingall_blocksTodoAdd more documentationAdd scaling options to the img blockAnimationsBuild a easy way to select iconsChartsTabsMasonry imageImage lazy loadingSupport this projectCommitting codeIf you want to add a new cool block or see something that could be better?
Just fork this project and then open a pull request.
I know I am not perfect but please clean and understandable code.Send me a coffee
Package: wagtail-block-model-field
wagtail-block-model-fieldProvides a model field for encapsulating arbitrary stream blocks. Please bear with us while we prepare more detailed documentation.Compatibilitywagtail-block-model-field' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstallwagtail-block-model-fieldAddwagtail_block_model_fieldto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'wagtail_block_model_field'# ...]
Package: wagtailblock-register
Wagtailblock RegisterUsageAdd in settings.py.# Default WAGTAILBLOCK_COLLECTOR = "blocks"
WAGTAILBLOCK_COLLECTOR = "itemblocks"String inWAGTAILBLOCK_COLLECTORis a file. Default collector file is blocks.py.Wagtailblock register will search for the file.Add block to collectorAbove each block in the collectors file add@register_blockExample:fromwagtailblock_registerimportregister_blockfromwagtail.coreimportblocksfromwagtail.images.blocksimportImageChooserBlock@register_blockclassImageTextBlock(blocks.StructBlock):...Call all blocks in models.pyExample:fromwagtail.core.modelsimportPagefromwagtail.core.fieldsimportStreamFieldfromwagtailblock_registerimportcall_blocksclassContentPage(Page):body=StreamField(call_blocks(),null=True)...Group blocksAddlist_groupwith a group name to the block.
This property will group your blocks in diffrent groups. The block will be in the group you defined. Default group isdefault.
This property is usefull if you want to use multiple streamfields.Example:fromwagtailblock_registerimportregister_blockfromwagtail.coreimportblocksfromwagtail.images.blocksimportImageChooserBlock@register_blockclassImageTextBlock(blocks.StructBlock):list_group="first"...
Package: wagtail-blocks
wagtail_blocksA Collection of awesome Wagtail CMS stream-field blocks and Charts.Check outAwesome Wagtailfor more awesome packages and resources from the Wagtail community.QuickstartYou must have yourWagtailproject up and running:pipinstallwagtail_blocksAdd the following enteries to yoursettings.pyin the INSTALLED_APPS section:'wagtailfontawesomesvg','wagtail_blocks',Sample Usagefromwagtail.fieldsimportStreamFieldfromwagtail.admin.panelsimportFieldPanelfromwagtail_blocks.blocksimport(HeaderBlock,ListBlock,ImageTextOverlayBlock,CroppedImagesWithTextBlock,ListWithImagesBlock,ThumbnailGalleryBlock,ChartBlock,MapBlock,ImageSliderBlock,)classHomePage(Page):body=StreamField([('header',HeaderBlock()),('list',ListBlock()),('image_text_overlay',ImageTextOverlayBlock()),('cropped_images_with_text',CroppedImagesWithTextBlock()),('list_with_images',ListWithImagesBlock()),('thumbnail_gallery',ThumbnailGalleryBlock()),('chart',ChartBlock()),('map',MapBlock()),('image_slider',ImageSliderBlock()),],blank=True,use_json_field=True)content_panels=Page.content_panels+[FieldPanel("body"),]For HomePage template, blocks should be rendered with IDs to function properly{% for block in page.body %}
    {% include_block block with block_id=block.id %}
{% endfor %}Available BlocksCheck Showcase forStandard BlocksorChartsorMapsHeader (H1, H2, H3, H4, H5, H6)List (Unordered List)Image with Text OverlayCropped Images with TextList with Images and LinksThumbnail GalleryImage SliderChart (Bar - Pie - Line - Area - Radar)Map (Marker with rich text description)Supported VersionsPython 3.8 and higherWagtail 4.1 and higherBootstrap 4
Package: wagtailblocks-cards
Wagtail Blocks: Cards=====================This Wagtail block can be used to add a series of cards. It is styled on the editor screen.![Screenshot](screenshot.png)Installation------------Run:pip install wagtailblocks-cardsThen add `wagtailblocks_cards` to your installed apps.Usage-----A CardsBlock is just a ListBlock with extra styling on the editor screen. Use it the exact same way as a ListBlock.from wagtailblocks_cards.blocks import CardsBlockThen:body = StreamField([('cards', CardsBlock(MyCustomBlock()))])Replace `MyCustomBlock()` with a custom block of your choice.Finally, template as usual.Notes-----You can also add a CardsBlock inside of a StructBlock or other structual block types for more control. You may want to inject more custom CSS to make it span the full width if you aren't using help text, or change the number of columns.If [wagtailfontawesome](https://github.com/alexgleason/wagtailfontawesome) is installed, this app will detect it and use [fa-clone](http://fontawesome.io/icon/clone/) by default.
Package: wagtail-blog-app
=====Wagtail Blog=====Simple Blog app to plug in to your Wagtail (Django powered CMS) setup/project.The goal is not to try and become Wordpress or have all its features (or even import/export to it!), but be an extremely simple and powerful blogging app to get your Django/Wagtail blog started.Quick start-----------1. Add `wagtail_blog` to `INSTALLED_APPS`:INSTALLED_APPS = {...'wagtail_blog'...}2. Configure settings:WAGTAIL_BLOG_AUTHOR_PAGE = 'team.TeamMemberPage'  # your wagtail page model with author informationOptional settings include:WAGTAIL_BLOG_POSTS_PER_PAGE = 10  # posts per page on the post listing pageWAGTAIL_BLOG_FEED_TITLE = 'My Site Feed'  # RSS / Atom feed custom title, defaults to RSS Feed / Atom FeedWAGTAIL_BLOG_FEED_DESCRIPTION = 'News Feed of My Site'  # RSS 2.0 / Atom feed custom description, defaults to Blog Post FeedWAGTAIL_BLOG_FEED_LENGTH = 50  # How many articles are included in the feed, defaults to 503. TemplatesThe root of your template path should contain blog_page.html and blog_index_page.html files in wagtail_blog catalog.4. RSS / Atom FeedsFeeds module of the application contains appropriate feed classes (how to add feed classes into your URL conf - https://docs.djangoproject.com/en/1.7/ref/contrib/syndication/#a-simple-example )
Package: wagtail-blog-simple
wagtail-blog-simpleSimple  and customizable blog app for wagtailFeaturesCategories and tags with viewsRSSBasic starter templates with paginationCommentsRelated BlogRich text editor with gist compatibleInstallationYou should start with a existing wagtail django project and have a basic understanding of Wagtail before starting.
Seehttp://docs.wagtail.ioTested with Wagtail 2.x and Django 3.1Referherefor wagtail configurationpip install wagtail-blog-simpleAddwagtail_blogto INSTALLED_APPS in settings.pyUpdate WAGTAILEMBEDS_FINDERS as followsWAGTAILEMBEDS_FINDERS = [
    {
        'class': 'wagtail_blog.embed_finder.GistEmbedFinder'
    }
]Addurl(r'^blog/', include('wagtail_blog.urls', namespace="blog")),to urls.pypython manage.py migrateOverridetemplatesas needed.Create a 'Blog index' page in wagtail cms dashboard (under root page)8. Then add sub pages to Blog Index page which will your blogsExtendingWagtail blog features abstract base models. If you want to change functionality you may extend this models fromblog.abstractand use them how you'd like. Do not addblogto your INSTALLED_APPS if you do this. You'll need to create your own logic to gather context variables. See blog/models.py for an example of this. Wagtail blog doesn't support any way to "drop in" the blog app and just make minor changes to models.SettingsBLOG_PAGINATION_PER_PAGE(Default 10) Set to change the number of blogs per page. Set to None to disable (useful if using your own pagination implementation).BLOG_LIMIT_AUTHOR_CHOICES_GROUPOptionally set this to limit the author field choices based on this Django Group. Otherwise it defaults to check if user is_staff. Set to a tuple to allow multiple groups.BLOG_LIMIT_AUTHOR_CHOICES_ADMINSet to true if limiting authors to multiple groups and want to add is_staff users as well.CreditsThis is extended version ofthis repowith more features
Package: wagtailbookmarklet
Wagtail BookmarkletThis simple app gives Wagtail editors an 'edit this page' bookmarklet, for scenarios where theUser Barisn't available, e.g. when the site has been statically generated.Installationpip install wagtailbookmarkletAdd'wagtailbookmarklet'to yourINSTALLED_APPSCheckBASE_URLis correctly configured in settings.UsageGo to 'Bookmarklet' in the Wagtail admin settings menu. Drag the link to your bookmarks bar.
Package: wagtail-cache
Wagtail CacheA fast and simple page cache for Wagtail, inspired by the Django cache
middleware.Documentation|Source code on GitHub|PyPIStatusPython PackageBuildQuick StartFollow theInstallation GuideWhy Wagtail Cache?Django has a robust cache middleware that already has the functionality
needed to cache web pages effectively. But turning the cache middleware
on will blindly cache every request and does not work well with a Wagtail site.Wagtail Cache provides a middleware, decorator, and mixin that works well with
Wagtail pages, Django views, or even manually on any request/response to
efficiently cache and serve from cache.The end result is ultra-fast page serving that requires zero database hits
to serve cached pages. Other solutions such as template caching still require
database hits for Wagtail to serve a page.Wagtail Cache also does not require any additional infrastructure such as Redis,
Memcached, proxies, etc. It can work directly off the filesystem, or using any
of Django's built-in cache backends.ContributingFollow thecontributing guideAttributionIcon file "wagtailcache-bolt.svg":Was sourced from the Fork Awesome project athttps://github.com/ForkAwesome/Fork-Awesome.Is licensed under the Creative Commons Attribution 3.0 Unported license,
a copy of which is available athttps://creativecommons.org/licenses/by/3.0/Has been modified from the original sources.
Package: wagtail-cache-block
wagtail_cache_blockThis project addHTML fragment cacheto your StreamField block in easy wayBackgroundIn Wagtail community, it is popular to use theHTML fragment cacheat page level.This works fine in most of the time. But what if some different page have the same block data and some DB query need be run multiple times when rendering?In this case, it make sense to makeHTML fragment cachework on block level instead of page level.How it workscache_blockis very similar with Django{% cache %}templatetag, it would pull data from block automatically and use the value to generate fragment cache key.If value in any block field (evendescendants of the block) has changed, new fragment key would be generated and new HTML fragment code would be saved to Cache.cache_blockwould check if the page ispreviewmode, if the page if in preview mode, theHTML fragment cachewould not be pulled from cache.I have used it in my projects and the performance has been improved, especially for some page which contains many db query.QuickstartInstall wagtail_cache_block:pip install wagtail_cache_blockAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'wagtail_cache_block.apps.WagtailCacheBlockConfig',...)You can use it in StreamFieldfor loopiterationHere300is the cache timeout,requestis DjangoRequestContext, andblockis the StreamField block.{% load wagtailcore_tags cache_block_tags %}

{% for block in page.body %}
    {% cache_block 300 request block %}
        {% include_block block with request=request %}
    {% endcache_block %}
{% endfor %}Or you can use it in block template (For example:StructBlock){% load wagtailcore_tags cache_block_tags %}

{% cache_block 300 request block %}<sectionclass="{{ block.block_type }}">{{ block.value.heading }}
    {{ block.value.paragraph }}</section>{% endcache_block %}History0.1.0 (2020-01-19)First release on PyPI.
Package: wagtail-cblocks
wagtail-cblocksA collection of StreamField blocks to use in Wagtail CMS.Warning!This project is still early on in its development lifecycle. It is
possible for breaking changes to occur between versions until reaching a stable
1.0. Feedback and pull requests are welcome.Requirementswagtail-cblocks requires the following:Wagtail(4.1 LTS, 4.2, 5.0)Django(3.2 LTS, 4.1, 4.2 LTS)Python 3(3.7, 3.8, 3.9, 3.10, 3.11)InstallationInstall usingpip:$pipinstallwagtail-cblocksAddwagtail_cblocksto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'wagtail_cblocks',# ...]UsageEach block comes with a template made for Bootstrap 5 which is not shipped by
this plugin. If you plan to use them as is, you must have at least the Bootstrap
stylesheet loaded in your base template - refer as needed to theBootstrap documentation.In waiting for the documentation, here is a sample usage:fromwagtail.admin.edit_handlersimportStreamFieldPanelfromwagtail.blocksimportStreamBlockfromwagtail.fieldsimportStreamFieldfromwagtail.modelsimportPagefromwagtail_cblocks.blocksimport(ButtonBlock,ColumnsBlock,HeadingBlock,ImageBlock,ParagraphBlock,)classBaseBlock(StreamBlock):title_block=HeadingBlock()paragraph_block=ParagraphBlock()button_block=ButtonBlock()image_block=ImageBlock()classBodyBlock(BaseBlock):columns_block=ColumnsBlock(BaseBlock())classStandardPage(Page):body=StreamField(BodyBlock())content_panels=Page.content_panels+[StreamFieldPanel('body'),]Factories are also provided for some of the blocks to ease tests - seewagtail_cblocks/factories.py. To make use of
them, install the extrafactoriesrequirements:$pipinstallwagtail-cblocks[factories]DevelopmentQuick startTo set up a development environment, ensure that Python 3 is installed on your
system. Then:Clone this repositoryCreate a virtual environment and activate it:$python3-mvenvvenv
$sourcevenv/bin/activateInstall this package and its requirements:(venv)$pipinstall-rrequirements-dev.txtFinally, if you want to run the test application to preview the blocks, you will
have to create the database before running a development server:(venv)$./tests/manage.pymigrate(venv)$./tests/manage.pyrunserverContributingThe tests are written withpytestand code coverage is measured withcoverage.
You can use the following commands while developing:make test: run the tests and output a quick report of code coveragemake test-wip: only run the tests marked as 'wip'make test-all: run the tests on all supported versions of Django and
Wagtail withnoxThe Python code is formatted and linted thanks toflake8,isortandblack.
All of these tools are configured inpre-commitand you should consider to
install its git hook scripts by running:(venv)$pre-commitinstallWhen submitting a pull-request, please ensure that the code is well formatted
and covered, and that all the tests pass.LicenseThis extension is mainly developed byCliss XXIand
licensed under theAGPLv3+. Any contribution is welcome!
Package: wagtail-celery-beat
wagtail_celery_beatpip install wagtail_celery_beatManage your celery tasks from the Wagtail admin with Wagtail Celery Beat, a wrapper for Django Celery Beat.Whendjango_celery_resultsis installed the task results viewset will be included in the Wagtail Celery Beat menu by default.Quick startAdd 'wagtail_celery_beat' to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
...,
'wagtail_celery_beat',
]Runpy ./manage.py collectstaticEnjoy!Optional setting:WCB_MENU_HOOK_NAMERegisters to awagtail.admin.menuusing this hook name.By default registers to settings menu.
Package: wagtail-charcount
wagtail-charcountA wagtail character and word counting plugin for RichTextFields.InstallingInstall using pip::pip install wagtail-charcountIt works withWagtail 5.0and upwards.UsingTo use this plugin firstly you will need to addwagtailcharcountto your installed apps.INSTALLED_APPS=["wagtailcharcount",]This will add a character and word count next to where your help text would normally appear, this also works fine with help text.https://github.com/Sebastvin/wagtail-charcount/assets/34211633/db104d9c-1bb1-40ae-b338-cb896bb2439a
Package: wagtailcharts
Wagtail ChartsChart.js charts in Wagtail, edited and customised from the Wagtail adminGetting startedAssuming you have a Wagtail project up and running:pip install wagtailchartsAddwagtailchartsto your settings.py in the INSTALLED_APPS section, before the core wagtail packages:INSTALLED_APPS=[# ...'wagtailcharts',# ...]Add a wagtailcharts ChartBlock to one of your StreamFields:fromwagtailcharts.blocksimportChartBlockclassContentBlocks(StreamBlock):chart_block=ChartBlock()Include your streamblock in one of your pagesclassHomePage(Page):body=StreamField(ContentBlocks())content_panels=Page.content_panels+[StreamFieldPanel('body'),]Add thewagtailcharts_tagstemplatetag to your template and call therender_chartstag just before your</body>closing tag.
Please note that you must render your chart block so that therender_chartstag can detect the charts.
Here is a tiny example of a page rendering template:{%loadwagtailcore_tagswagtailcharts_tags%}{%blockcontent%}<div class="container-fluid"><div class="row"><div class="col-6"><h1>{{self.title}}</h1><div class="excerpt">{{self.excerpt|richtext}}</div></div></div>{%forblockinself.body%}{%include_blockblock%}{%endfor%}</div>{%endblock%}{%blockextra_js%}{%render_charts%}{%endblock%}ConfigurationChartBlockaccepts a few extra arguments in addition to the standardStructBlockarguments.colorsA tuple of color tuples defining the available colors in the editor.fromwagtailcharts.blocksimportChartBlockCOLORS=(('#ff0000','Red'),('#00ff00','Green'),('#0000ff','Blue'),)classContentBlocks(StreamBlock):chart_block=ChartBlock(colors=COLORS)chart_typesYou can override the default chart types available for yourChartBlockinstance:fromwagtailcharts.blocksimportChartBlockCHART_TYPES=(('line','Custom title for line chart'),)classContentBlocks(StreamBlock):chart_block=ChartBlock(chart_types=CHART_TYPES)The default types are:CHART_TYPES=(('line','Line Chart'),('bar','Vertical Bar Chart'),('bar_horizontal','Horizontal Bar Chart'),('area','Area Chart'),('multi','Combo Line/Bar/Area Chart'),('pie','Pie Chart'),('doughnut','Doughnut Chart'),('radar','Radar Chart'),('polar','Polar Chart'),('waterfall','Waterfall Chart'))DependenciesThis project relies onJspreadsheet Community Editionfor data entry and manipulation.Charts are rendered usingChart.js.100% stacked bar charts use a pluginhttps://github.com/y-takey/chartjs-plugin-stacked100Datalabels use a plugin [https://chartjs-plugin-datalabels.netlify.app] (https://chartjs-plugin-datalabels.netlify.app)Release notesVersion 0.3.3Fixed a regression from release 0.3.3 when using multiple charts on same page.Version 0.3.2Added support for external HTML legendFixed bug in doughnut chartVersion 0.3.1Added options for border width and border color for pie chartsAdded support for Wagtail 5Removed support for Wagtail <3Version 0.3Added Waterfall ChartAdded DataLabelsAdded options for:grid displayaxis displayy tick precisiondatalabel and tooltip precisionAdded grouping of options into multiple collapsible panels with buttonsMultiple bugfixesVersion 0.2Added support for Wagtail 3.0Version 0.1Initial release