Saravanan666/pypi-org huggingface dataset:
Package: wagtail-embedvideos
Simple app that works similar towagtailimages, but for embedding YouTube and Vimeo videos and music from SoundCloud.The current version is tested for compatiblily with the following:Wagtail versions 2.7 to 2.15Django versions 2.2 to 3.2Python versions 3.6 and 3.9Maintained byBasil Shubin,  and some greatcontributors.InstallationFirst install the module, preferably in a virtual environment. It can be installed from PyPI:pipinstallwagtail-embedvideosRequirementsYou must havedjango-embed-videoinstalled and configured, see thedjango-embed-videodocumentation for details and setup instructions.SetupMake sure the project is configured fordjango-embed-video.Then add the following settings:INSTALLED_APPS+=("wagtail_embed_videos",)Then run./manage.py migrateto create the required database tables.UsageIn models, implement as aForeignKeyrelation, same aswagtailimages.# models.pyfromwagtail.core.modelsimportPage,PageBasefromwagtail_embed_videosimportget_embed_video_model_stringfromwagtail_embed_videos.edit_handlersimportEmbedVideoChooserPanelclassCustomPage(Page):video=models.ForeignKey(get_embed_video_model_string(),null=True,blank=True,on_delete=models.SET_NULL,related_name='+')# ...content_panels=[EmbedVideoChooserPanel('video'),]In templates, load theembed_video_tagslibrary in every template where you want to use it:<!-- custom_page.html -->{%loadembed_video_tags%}{%videoself.video.urlasmy_video%}{%videomy_video'small'%}{%endvideo%}Checkdjango-embed-videodocumentation for more details.ContributingIf you like this module, forked it, or would like to improve it, please let us know!
Pull requests are welcome too. :-)Creditswagtail-embedvideoswas originally started byInfoPortugal, S.A.who has now unfortunately abandoned the project.Licensewagtail-embedvideosis released under the BSD license.Changes0.5.12 (2022-04-20)Fixed broken imports.0.5.11 (2021-12-13)Added ru translation.0.5.10 (2021-12-06)Fixed stupid typo.0.5.9 (2021-12-06)Wagtail version >= 2.15 supported.0.5.8 (2021-11-12)Wagtail version >= 2.14 supported.0.5.7 (2021-11-11)Wagtail version >= 2.13 supported.0.5.6 (2021-11-10)Wagtail version >= 2.12 supported.0.5.5 (2021-11-09)Wagtail version >= 2.11 supported.0.5.4 (2021-11-08)Wagtail version >= 2.10 supported.0.5.3 (2021-11-07)Replacing broken 0.5.2 release.0.5.2 (2021-11-06)Wagtail version >= 2.9 supported.0.5.1 (2021-11-05)Wagtail version >= 2.8 supported.0.5.0 (2021-11-04)Wagtail version >= 2.4 supported.Dropped support for Python < 3.x.0.4.1 (2018-08-22)Wagtail version >= 2.x supported.Django version >= 2.x supported.Dropped support for Wagtail < 2.x.0.3.0 (2017-04-24)Changed the structure of “AbstractEmbedVideo”, because “TagSearchable” is not used anymore.0.2.5 (2017-02-09)This is the last version compatible with Wagtail <= 1.6, because TagSearchable was deprecated and then removed.
Package: wagtail-embedvideos3
ABANDONED, BUT STILL SUPPORT Wagtail >= 2.2 Django >= 2.0 <= 3.1With the introduction of Embedded Content in wagtail 1.12https://docs.wagtail.io/en/v1.12.6/releases/1.12.html#improved-embed-configuration, this package will no longer be needed in new projects. It`s for some old projects, that still use this package.WAGTAIL EMBED VIDEOSSimple app that works similar to wagtailimages, but for embedding YouTube and Vimeo videos and music from SoundCloud.
It's an integration ofdjango-embed-videoWARNINGWith recent changes to keep up with Wagtail current versions, we donotsupport versions < 2.2!Latest version only suports django >= 2.0 and wagtail >= 2.2Quick startAdd "embed_video" and "wagtail_embed_videos" to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
     ...
     'embed_video',
     'wagtail_embed_videos',
     ...
 )Runpython manage.py makemigrationsto create the migration for wagtail_embed_videos modelsRunpython manage.py migrateto create the models of wagtail_embed_videos appUsing wagtail_embed_videos:from wagtail_embed_videos.edit_handlers import EmbedVideoChooserPanel

 class VideoBasedModel(models.Model):
     video = models.ForeignKey(
         'wagtail_embed_videos.EmbedVideo',
         verbose_name="Video",
         null=True,
         blank=True,
         on_delete=models.SET_NULL,
         related_name='+'
     )
     ...
     content_panels = [EmbedVideoChooserPanel('video')] 

 # maybe in some older versions of Wagtail you need replace 'content_panels' with 'panels'
 # accessing the EmbedVideoField() in the model 'wagtail_embed_videos.EmbedVideo'
 # this is the field used for storing the url of the embed video
 video_based_model_instanse.video.url

 # accessing the thumbnail image in the model 'wagtailimages'
 # this is a foreign key to model Image
 video_based_model_instanse.video.thumbnailFor render your video in a template put{% load embed_video_tags%}for load template tags and put this code where you want render your video:```html
 {% video VideoBasedModel.video.url as video %}
         {% video video 'small' %}
 {% endvideo %}
 ```Checkdjango-embed-videofor more documentationRelease Notesv0.4.3Wagtail version >= 2.2 supported up to version == 2.11.3;Django version >= 3.0 supported (Django >= 3.1 was not tested);Fix for modal workflow change introduced in Wagtail 2.2v0.4.1Wagtail version >= 2.0 supported;Django version >= 2.0 supported;Dropped support for Wagtail < 2.0;v0.3.0Changed the structure of "AbstractEmbedVideo", because "TagSearchable" is not used anymore;v0.2.5This is the last version compatible with Wagtail <= 1.6, because TagSearchable was deprecated and then removed.
Package: wagtailemoji
Wagtail Emoji :tada:====================:clap: Add [NotoEmoji](https://github.com/googlei18n/noto-emoji) icons to StreamField. :bomb: :gun: :smoking: :knife:![Screenshot](screenshot.png):warning: **IMPORTANT: JUST BECAUSE YOU CAN DOESN'T MEAN YOU SHOULD.**Install-------pip install wagtailemojiThen add `wagtailemoji` to your installed apps.Usage-----### StreamFieldAdd emoji to StreamField [the regular way](http://docs.wagtail.io/en/latest/topics/streamfield.html#basic-block-types), just set `icon="emoji-something"`. Reference [the full list](https://github.com/alexgleason/wagtailemoji/blob/master/wagtailemoji/static_src/wagtailemoji/scss/wagtailemoji.scss).### wagtailmodeladmin[wagtailmodeladmin](https://github.com/rkhleics/wagtailmodeladmin) is supported if you're using Wagtail 1.4 or above. Similar to StreamField, just set `icon="emoji-something"` on your menu item.### Hallo pluginsYou can use emoji on custom Hallo buttons by setting the `icon` option to `icon icon-emoji-something`.```javascriptbutton.hallobutton({label: "Skull",icon: 'icon icon-emoji-skull',});```### Other parts of the adminYou can include icons anywhere in the admin with:```html<i class="icon icon-emoji-something"></i>```In Wagtail 1.3.x and below you can only use icons on the page editor screen.### On the front-endYou can also import this on the front-end, if you want.```html{% load staticfiles %}<link rel="stylesheet" href="{% static 'wagtailemoji/css/wagtailemoji.css' %}">```Then include icons anywhere on the front-end with:```html<i class="icon icon-emoji-something"></i>```### Using wagtailemoji as an optional dependencyIf you want to distribute a Wagtail plugin with emoji, you can use this package as an optional dependency by checking if it's installed in Django, and falling back otherwise.```pythonfrom django.conf import settingsfrom wagtail.wagtailcore.blocks import StructBlockclass BlockquoteBlock(StructBlock):quote = TextBlock()author = TextBlock()class Meta:if 'wagtailemoji' in settings.INSTALLED_APPS:icon = 'emoji-skull'```(in this case, the fallback is to do nothing)
Package: wagtail-eventcalendar
IntroductionThis is a very basic calendar app that integrates with Wagtail. It allows a person to create events that will be shown on the website via FullCalendar and also generates an ical file.This app is simple, and not feature rich. It does the basics and thats it. I will probably add more features and options to it as time permits, but only if requests are made.It is also not production ready as there areno tests currently writtenfor it. I did put this up on a site and they have been using it extensively and haven’t had any reported issues. That said,apps without tests should always be treated sceptically.I hope to write tests in a month or so when I get a bit of free time. I also hope to add a bunch of features in the near future.Please report any errors you encounter. I will try resolve them quickly and then add tests for them as things come up so it doesn’t reoccur. Please visitwagtail_eventcalendar gitto make pull requests or log issues etc. Documentation is at readthedocs.io:wagtail_eventcalendar documentationInstallationTo install runpip install wagtail_eventcalendarIt should automatically install the dependencies; however, if it doesn’t then you will need to install them manually with:pip install mutagen wagtailgmaps icalendar pytzdjango-social-shareRemember to addwagtail_eventcalendar(along with the others mentioned) to your installed apps in settings.py i.e.INSTALLED_APPS=[...'wagtail_eventcalendar','wagtail.contrib.modeladmin','wagtailgmaps','django_social_share','wagtail.contrib.routable_page',]Requirements:python3icalendarwagtaildjangodjango-social-sharepytzwagtailgmapsYou will need to follow the wagtailgmaps installation instructions to get things to work:https://github.com/springload/wagtailgmaps/I’m not quite sure how far back this app works; however, it should work going back quite far. It’s currently tested on Python3 with Wagtail >2 and Django >2 on openSUSE. It should work on all platforms and shouldn’t break anytime soon. Let me know if you have a combo that doesn’t work and I’ll see what I can do to support it.CaveatsI haven’t implemented nested categories yet. I will eventually, but not just yet.It only exports to ical for now. I will hopefully add support for caldav and gcal as well at some point.Recurring events are currently not supported. This is really high on my list, but I haven’t figured out a really great way to do it whilst keeping everything simple and manageable.
Package: wagtail-events
Wagtail EventsEvents calendar management for wagtail, with tools for filtering by date.This project is a hard fork ofomni-wagtail-events, and we owe a
debt of gratitude to those folks for getting us started. So why did I hard-fork (duplicate and start again) rather than
fork from omni-digital?Well, github keeps the releases of the repo you fork from. I want to put this on pypi so it's easily available,
and have control of the release versioning (which isn't close to ready for v1.x where it started with omni-digital), so
it needs to be here.I'm basically about to breakeverythingfor django 2.x and wagtail 2.x, so I'd need a major version bump anyway, and
figured that the chances of getting my changes merged into the upstream were nil.The rich text fields makeomni-wagtail-eventsa nightmare to use in headless API mode, and mean that most of the
events data is unstructured. Here, we move to Wagtail'sStreamField... but that creates amigration headacheunless we start fresh.The migrations in the original project won't work with an in-memory database, so testing is slow.I've majorly simplified the model structure to singleton events. I think this is all that's reqiured in 99.9% of cases.I'm extremely open to collaboration - in fact, I really don't want to be maintaining this (it's only for one client) so
I'm open to transferring ownership or collaboration to anyone who wants to take this on and enhance it. @omni-digital,
this originated as your baby so if you'd like to take back maintenance, please reach out and I'll help you.RequirementsWagtail events requires Django 2.1 or later and Wagtail 2.3 or later.Supported VersionsPython: 3.6Django: 2.1Wagtail: 2.3Getting startedInstalling from pip:pip install wagtail_eventsAdding toINSTALLED_APPS:INSTALLED_APPS=[...'wagtail_events',...]Running the migrations:python manage migrate wagtail_eventsModelsEventIndexAn index/listing page for EventSeries instances, with optional pagination.EventA detail page for an event, with start_date and optional end_date, implementing a manager which allows filtering on those dates.
Package: wagtail-exportcsv
wagtail-exportcsv is a simple Django app to export form submission as CSV.Detailed documentation is in the “docs” directory.Installationpip install wagtail-exportcsv

or

pip install -e git+git@github.com:7aleb/wagtail-exportcsv.git#egg=wagtail_exportcsv_devAnd addwagtail_exportcsvtoINSTALLED_APPSQuick startFirst, create a resource class to define a CSV export. Then addExportModelAdminMixinto your WagtailModelAdminclass. Example:fromimport_exportimportresourcesfromwagtail.contrib.modeladmin.optionsimportModelAdminclassExampleResource(resources.ModelResource):classMeta:model=ExampleModelfields=('first_name','email',)classExampleAdmin(ExportModelAdminMixin,ModelAdmin):model=ExampleModelresource_class=ExampleResource
Package: wagtail-extendedsearch
Add some more functionality to the wagtail elasticsearch search backendThis plugin adds search capabilities through elasticsearch.
Elasticsearch provides scored search results, facetting, suggestions and
autocomplete.Featuresfilter on fields that are not in the databaseorder on fields that are not in the databasesearch suggestions when no results are foundThis readme is far from done and complete, take care.ConfigurationWAGTAILSEARCHEXTENSION_NUM_SUGGESTIONS: Number of suggestions to offerWAGTAILSEARCHEXTENSION_BOOSTED_FIELDS: Fields to be boostedWAGTAILSEARCHEXTENSION_FACET_BUCKET_SIZE: How many items to allow in a bucketWAGTAILSEARCHEXTENSION_PAGE_SIZE: How many items to retrieve from elasticsearc in one go.WAGTAILSEARCHEXTENSION_MULTIMATCH_TYPE: How should the score be calculated in a multimatch queryWAGTAILSEARCHEXTENSION_DEFAULT_OPERATOR: Should all the search terms be present or just one of the search terms? (default=or) change to and if all the search terms should be present.Facet typesFacets can be configured using the get_facets classmethod.
This is a list of dictionaries that must look like this:[
    {
      "label": "Brand",
      "name": "brand",
      "type": "term",
    }
]Currently 2 facet types are supported
1.term, facets are treated as keywords and counted and matched as such.
2.range, facets are treated as integer ranges, therangesparameter must de defined for type range. It can be used to segment the range, eg.[10, 100, 100]will yield 4 filters ranges, 0-9, 10-99, 100-999 and 1000+Facet orderingThe default ordering for facets is alphnumerically  ({"-key","asc"}).
The number of facets returned can be changed with the ocyan parameterfacet_bucket_size.
By default only 10 facets will be returned. If there are a lot more facets then
10 and you do not want to increase the number of facets it can make a lot of sense
to order by the number of occurrences, this will select the most useful facets.
The ordering can be changed in the facet definition:{
  "label": "Brand",
  "name": "brand",
  "type": "term",
  "order": { "_count" : "desc" }
}Now the most popular brands will be shown.
For more info, please readhttps://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-orderBoosting fieldsBoosting field relevance is done by using the WAGTAILSEARCHEXTENSION_BOOSTED_FIELDS
setting:"boosted_fields": {
  "upc": 888,
  "title": 777
}Tweaking the mappingYou can override/extend the elasticsearch settings by using the ELASTICSEARCH_EXTRA_SETTINGS settingFor example:WAGTAILSEARCHEXTENSION_ELASTICSEARCH_EXTRA_SETTINGS = {
    'settings': {
        'analysis': {
            'analyzer': {
                'custom_analyzer': {
                  'type': 'custom',
                  'tokenizer': 'custom_tokenizer',
                  'filter': ['asciifolding', 'ngram']
                }
            },
            'tokenizer': {
                'custom_tokenizer': {
                    'type': 'nGram',
                    'min_gram': 3,
                    'max_gram': 15
                }
            }
        }
    }
}
Package: wagtail-external-link-richtext
wagtail-external-richtext-linkA simple app that gives you the option to add links to the richtext editor in Wagtail that always open in a new tab.Table of ContentsInstallationConfigurationUsageLicenseInstallation$pipinstallwagtail-external-link-richtextConfigurationAddwagtail_external_linkto yourINSTALLED_APPS:INSTALLED_APPS=[# ...'wagtail_external_link',# ...]Add"new_tab_link"to yourRICHTEXT_FEATURESin your settings:RICHTEXT_FEATURES=[# ...'new_tab_link',# ...]UsageWhen you add aRichTextFieldto your model, you will now see a new button calledNew tab 🔗in the richtext editor:Select the text you want to link or just place the cursor where you want the link to be.Click theNew tab 🔗button.If you didn't select any text, enter some text for the link. This will be the text that is displayed.Enter the URL you want to link to.ClickSubmit.The link will be added to the richtext editor.Save the page.Correct way to render the link in your template:{%loadwagtailcore_tags%}{{page.body|richtext}}Licensewagtail-external-richtext-linkis distributed under the terms of theMITlicense.
Package: wagtail-external-menu-items
wagtail-external-menu-itemsAdd external links to Wagtail Dashboard MenuInstallation :package:From PyPi repository:pip install wagtail-external-menu-itemsFrom source code:git clone https://github.com/spamz23/wagtail-external-menu-items.git
virtualenv venv
./venv/scripts/activate
pip install -r requirements.txtQuickstartAddwagtail_external_menu_itemsto yourINSTALLED_APPSinside Django settings:INSTALLED_APPS=(# ...'wagtail_external_menu_items',)Add some configuration settings (inside your Django configs):# ...WAGTAIL_EXTERNAL_MENU_ITEMS={# A list of dicts, where each dict is a item (button) to add to the dashboard"items":[{"label":"Sentry Logs",# The name of the button"url":"https://sentry.io/organizations/your-organization",# The external link"classnames":"icon icon-fa-book",# Any classname, in this case we assign a font awesome icon (must have fontawesome installed)}],"order":1000# Optional! The starting order for the items}That's all the configuration needed!ContributingAll pull requests are welcome! Feel free to contribute with any bug fix or new feature!
Package: wagtailextraicons
Wagtail Extra IconsAdd extra icons to your Wagtail project.VersionsVersion 3.X.XIs for use with Wagtail versions 3.0 and above. This uses Wagtail's updated module paths from version 3.0.Version 2.X.XIs for use with Wagtail versions 2.15 and above. This version uses wagtail's new Svg icon system.This version works with Wagtail versions 3.0 and 4.*, but is deprecated for those.Version 1.X.XIs for use with Wagtail versions below 2.15. This version uses wagtail's old Icon font system.Installpip install wagtailextraiconsThen addwagtailextraiconsto your installed apps:INSTALLED_APPS = [
    ...
    'wagtailextraicons'
]UsageThe full list of icons is available atdocs/icons.md.
All icons are namespaced asextraicons--to avoid clashing with existing Wagtail icons. You can add the extra icons to
your StreamField blocks like any other:content=StreamField([('paragraph',blocks.RichTextBlock(icon='extraicons--paragraph')),],use_json_field=True,)You can also add the extra icons to your own customStructBlockclasses:classPersonBlock(blocks.StructBlock):person=SnippetChooserBlock('app.Person')text=blocks.RichTextBlock()classMeta:icon='extraicons--person'Reference theWagtail docsfor all the ways to include icons.AuthorsSam CostiganOctaveContributingThe icon fonts are compiled from the list of SVG files instatic_src/wagtailextraicons/extraicons.
This makes it very easy to add new icons. All that's needed is an appropriate SVG file, so pull requests with new icons
are always welcome. There are a few constraints on the icons however:The icons must fit within their view box. Icons which don't will cause the fonts view box to have negative values,
which results in invalid .ttf and .woff files.Try to avoid using strokes, rects, etc. in your SVG. Some of thesemaywork, but plain paths willalwayswork,
so prefer paths where possible.Don't set colours on your SVG.Code pull requests are also welcome.LicenseThis project is licensed under the BSD License - see theLICENSE.txtfile for details.
Package: wagtail-extras
Extras for wagtailThis app will add some necessities to wagtail:Installpip install wagtail-extrasAddwagtailextrasto your installed apps:INSTALLED_APPS = [
    ...
    'wagtailextras',
    ...
]For setup of individual parts, please continue below.ObfuscateEmailAddressMiddlewareTransforms emailaddresses to decimal/hexadecimal unicode character entities to foil bots trying to harvest emailaddressSetupAdd the following to the middleware:MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ObfuscateEmailAddressMiddleware',
    ...
]ForceCsrfCookieMiddlewareForces Django to create an CSRF token for you when you for example are using JavaScript forms.SetupAdd the following to the middleware:MIDDLEWARE = [
    ...
    'wagtailextras.middleware.ForceCsrfCookieMiddleware',
    ...
]BreadcrumbsReturns an ordered list in the template, showing the current location.UsageLoad the template tag:{% load wagtailextras_tags %}Write out the breadcrumbs in the html:{% breadcrumbs %}Main menuA simple implementation showing the pagestructure of wagtail as a menu.UsageLoad the template tag:{% load wagtailextras_tags %}Write out the menu in the html:{% get_site_root as site_root %}
{% main_menu parent=site_root calling_page=self %}
Package: wagtailfacelift
Wagtail Facelift================Provides some visual enhancements to Streamfield components.Pure CSS overrides, there's no extra configuration.Installation.-------------::pip install wagtailfaceliftAdd the application to your installed apps:::INSTALLED_APPS = ['wagtail','wagtailfacelift']---Extra theming-------------`.multi-field-dark`Apply this class to your widget for a subtle background shift, eg:::MultiFieldPanel([StreamFieldPanel('heroes'),],heading="Homepage Heroes",classname="collapsible collapsed multi-field-dark")Enjoy!
Package: wagtail-fakenews
Wagtail Fake NewsCreate fake news for testing.Installationpip install wagtail-fakenewsAddfakenewstoINSTALLED_APPS./manage.py migrate fakenewsUsageCreate a fake news index page in the Wagtail admin. Fake news items will be created as children of this page. If you have multiple fake news index pages, only the first one will be used. If there are no fake news index pages,make_fake_itemswill try to create one as a child of the first home page.# delete existing fake pages and images, create 50 new pages and images./manage.pymake_fake_items50# delete existing fake pages./manage.pymake_fake_items0# keep existing fake pages and images, create 10 new pages and images./manage.pymake_fake_items--keep_pages--keep_images10TODOREST APISimple page templateStreamfield?Publish to PyPiFix broken Markdown rendering on PyPI pageGitpod instanceAdd REST API to Gitpod instanceInstructions for exposing REST APIGraphQL API
Package: wagtail-favicon
Wagtail FaviconEasily add shortcut icons to any wagtail site. Upload a .png image from a wagtail settings page and wagtail-favicon will resize it and add provide markup to your pages via a template tag.Version 0.3.0 is for Wagtail versions 3+.Installation & SetupInstall with pippip install wagtail-favicon

or

poetry add wagtail-faviconAdd to Django installed appsINSTALLED_APPS = [
    #...
    'wagtail.contrib.settings'  # <-- ensure you have wagtail settings loaded 
    'wagtail_favicon',
]Add routes to app.urlsfrom wagtail_favicon.urls import urls as favicon_urls

urlpatterns += [
    path('documents/', include(wagtaildocs_urls)),
    path('search/', search, name='search'),
    path('', include(wagtail_urls)),

    path('', include(favicon_urls)),  # <------ add urls to existing urls
]Once you've completed setup you will now be able to access the folloing urls:https://example.com/manifest.jsonhttps://example.com/browser-config.xmlAdd template tag to  tag in templates/base.html{% load favicon_tags %}
  <html>
    <head>
        {% favicon_meta %}
    </head>Edit SettingsGo toWagtail Admin >> Settings >> FaviconConfigure settingsFor best results use a transparent png at 1024 x 1024.Ideally pre optimised with a tool liketinypng.com.