Saravanan666/pypi-org huggingface dataset:
Package: pelican-to-sqlite
pelican-to-sqliteCreate a SQLite database containing data posts from your localpelicanfiles.How to installpip install pelican-to-sqliteUsageOnce the plugin has been installed you only need to runmake htmlto create a SQLite database calledpelican.dbwhich will be created in the root of your pelican site.You will need to add a form to yourbase.htmltemplate (or similar template depending on your theme). The form that needs to be added looks like this (assuming you useTailwind):<section class="relative h-8">
<section class="absolute inset-y-0 right-10 w-128">
<form
class = "pl-4"
<
action="your-action-link-here"
method="get">
        <label for="site-search">Search the site:</label>
        <input type="search" id="site-search" name="text"
                aria-label="Search through site content">
        <button class="rounded-full w-16 hover:bg-blue-300">Search</button>
</form>
</section>In the above,your-action-link-hereshould be substituted for the link that you get from your Vercel hosted instance ofdatasette.Deploy using VercelThere are many options to deploy your SQLite database withdatasette. Below describes using Vercel.First, installdatasetteusing pippip install datasetteNext, install the datasette plugindatasette-publish-vercelusing pippip install datasette-publish-verceland theVercel CLIOnce that's done, runvercel loginto login to (or create) an account.To publish yourpelican.dbto Vercel just run:datasette publish vercel my-database.dbThere are several options for outputting to Vercel. See thedocumentationfor more detailsUsing with DatasetteThe SQLite database produced by this tool is designed to be browsed usingDatasette. See my postAdding Search to My Pelican Blog with Datasettefor more details on how I implemented it.
Package: pelican-touch
Touch: A Plugin for PelicanThis Pelican plugin sets the date on generated files based on source contentDate:metadata.InstallationThis plugin can be installed via:python -m pip install pelican-touchUsageThis plugin performstouchon your generated files, using the date metadata from the source content.This helps, among other things, to guide the web server regarding how to handle its cache.ContributingContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting onexisting issues.To start contributing to this plugin, review theContributing to Pelicandocumentation, beginning with theContributing Codesection.LicenseThis project is licensed under the AGPL-3.0 license.
Package: pelican_vidme
Pelican Vidme is a plugin to enabled you to embed Vidme videos in your pages
and articles.InstallationTo install pelican-vidme, simply install it from PyPI:$pipinstallpelican-vidmeThen enabled it in your pelicanconf.pyPLUGINS=[# ...'pelican_vidme',# ...]UsageIn your article or page, you simply need to add a line to embed you video...vidme::VIDEO_IDWhich will result in:<divclass="vidme"align="left"><iframewidth="420"height="315"src="https://vid.me/VIDEO_ID"frameborder="0"></iframe></div>LicenseMITlicense.
Package: pelican-vimeo
Pelican Vimeo is a plugin to enabled you to embed Vimeo videos in your pages
and articles.InstallationTo install pelican-vimeo, simply install it from PyPI:$pipinstallpelican-vimeoThen enabled it in your pelicanconf.pyPLUGINS=[# ...'pelican_vimeo',# ...]UsageIn your article or page, you simply need to add a line to embed you video...vimeo::VIDEO_IDWhich will result in:<divclass="vimeo"align="left"><iframewidth="420"height="315"src="https://player.vimeo.com/video/VIDEO_ID"frameborder="0"webkitallowfullscreenmozallowfullscreenallowfullscreen></iframe></div>Additional argumentsYou can also specify awidth,heightandalignment..vimeo::37818131:width:800:height:500:align:centerWhich will result in:<divclass="vimeo"align="center"><iframewidth="800"height="500"src="https://player.vimeo.com/video/37818131"frameborder="0"webkitallowfullscreenmozallowfullscreenallowfullscreen></iframe></div>Additionally, this plugin allows to specify the followingVimeo
player URL parametersas options (values are passed through):autopauseautoplaybackgroundbylinecolorcontrolsdntfunloopmutedplaysinlineportraitqualityspeedttexttracktitletransparentIf you encounter Vimeo player URL parameters not supported by this
plugin, you can also specify those appended to the video ID
(e.g.,.. vimeo::37818131?another_option=another_value&foo=bar).LicenseMITlicense.
Package: pelican-xref
Pelican Xref: A Plugin for PelicanA Pelican plugin that allows you to cross-reference articles in an easy wayMotivation for this pluginIn Pelican, you can reference other articles in the following way:Title: The second article
Date: 2012-12-01 10:02

See below intra-site link examples in Markdown format.

[a link relative to the current file]({filename}category/article1.rst)
[a link relative to the content root]({filename}/category/article1.rst)The issue I have with this is that your file structure becomes very rigid.
When you move or rename a file or directory all your references are broken.That is why I created this plugin.UsageStep 1: Addxrefattribute to your articlesYou have to add an attribute namedxrefto the article attributes, which is only required for articles you want to reference to.
The attribute value can contain upper- and lowercase letters, numbers, hyphens (-) and underscores (_).---
Title: The first articlexref: ref-1---...After you add thexrefattribute to an article, you can use it in other articles:---Title: The second article---This article references the first article with the following syntax: [xref:ref-1]The syntax has two optional attributes:titleandblank.
You can use thetitleattribute if you want to use a custom text instead of the title of the referenced article.
Theblankattribute is used in case you want the created link to open a new window.InputGenerated html[xref:ref-1]<a href="/category/the-first-article">The first article</a>[xref:ref-1 title="Title override"]<a href="/category/the-first-article">Title override</a>[xref:ref-1 blank=1]<a href="/category/the-first-article" target="_blank">The first article</a>[xref:ref-1 title="Title override" blank=1]<a href="/category/the-first-article" target="_blank">Title override</a>InstallationThis plugin can be installed via:pip install pelican-xrefContributingContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting onexisting issues.To start contributing to this plugin, review theContributing to Pelicandocumentation, beginning with theContributing Codesection.
Package: pelican-yaml-metadata
Pelican YAML MetadataThisPelicanplugin allows articles written in Markdown to
define their metadata using aYAMLheader. This format is
compatible with other popular static site generators likeJekyllorHugo.It is fully backwards-compatible with the default metadata parsing.InstallationThis plugin can be installed via:python -m pip install pelican-yaml-metadataAs long as you have not explicitly added aPLUGINSsetting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must addyaml_metadatato your existingPLUGINSlist. For more information, please see theHow to Use Pluginsdocumentation.UsageThis plugin aims to keep things simple. After installing and enabling it, any Markdown files will
have the option of defining metadata using a YAML header instead of the standard key/value pairs.In order to specify metadata using YAML, enclose it within---lines.Example:---title:Some titleauthor:Some persontags:-tag 1-tag 2date:2014-12-25 00:00summary:The article summary will be __parsed__ as markdown---This is some article text.If the YAML block is not found, the metadata will be parsed using the normal Markdown metadata
syntax.ContributingContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting onexisting issues.To start contributing to this plugin, review theContributing to Pelicandocumentation, beginning with theContributing Codesection.LicenseThis project is licensed under theMIT license.
Package: pelican-youtube
Pelican YouTube is a plugin to enabled you to embed YouTube videos in your pages
and articles.InstallationTo install pelican-youtube, simply install it from PyPI:$pipinstallpelican-youtubeThen enable it in your pelicanconf.pyPLUGINS=[# ...'pelican_youtube',# ...]UsageIn your article or page, you simply need to add a line to embed your video...youtube::VIDEO_IDWhich will result in:<divclass="youtube youtube-16x9"><iframesrc="https://www.youtube.com/embed/VIDEO_ID"allowfullscreenseamlessframeBorder="0"></iframe></div>NoteThis code will render you a fully responsive YouTube video, spanning the
whole available container width.  Note that you will need to integrate the
code fromyoutube.cssin your project or template style sheet.
Alternatively, you can specifywidthandheightas detailed below.Additional argumentsAttributedefaultallowfullscreenyesallow video to be displayed full-screenseamlessyesno borders around iframeclassyoutube-16x9additional CSS classes, usually for responsive behaviorempty°(° whenwidthorheightare specified)width,heightemptyvideo dimensions when responsive design is not desiredExample 1: (responsive design)..youtube::4_X6EyqXa2s:class:youtube-4x3:allowfullscreen:no:seamless:noWill result in:<divclass="youtube youtube-4x3"><iframesrc="https://www.youtube.com/embed/4_X6EyqXa2s"></iframe></div>Example 2: (non-responsive design)..youtube::4_X6EyqXa2s:width:800:height:500:allowfullscreen:noWill result in:<divclass="youtube"><iframewidth="800"height="500"src="https://www.youtube.com/embed/4_X6EyqXa2s"seamlessframeBorder="0"></iframe></div>More Control of YouTube Video PlayerYouTube offers more control via player parameters, which you simply attach to the VIDEO_ID
as query parameters.  SeeYouTube documentationfor a list of possible parameters.Example: (start video at time 00:20, start playing automatically, don’t show related content at end of video)..youtube::4_X6EyqXa2s?start=20&amp;autoplay=1&amp;rel=0Known IssuesThe presence of theframeBorderattribute causes an HTML5 validation error.  Unfortunately,
this attribute is still necessary for supporting older versions of Internet Explorer.LicenseMITlicense.
Package: pelican-youtube-thumbnails
YouTube Thumbnails Plugin for PelicanPelican plugin for YouTube videos.This Pelican plugin saves the thumbnails of included YouTube videos inside a local file and includes this image with an hyperlink to the YouTube video itself. This may be used to avoid third-party JavaScript and cookies caused by IFrames for YouTube videos.InstallationThe package is available on PyPI and can be installed usingpip install pelican-youtube-thumbnails.Alternatively, you may want to install it straight from a source checkout:python -m pip install .UsageInclude the plugin by adding it to yourpelicanconf.pyand referencing it inside your source files using.. youtube:: myVideoIdinside an own paragraph.
Package: pelican-zopfli
Zopfli Gzip cacheThis is a variant ofgzip_cachebut usingzopflifor better compression.Certain web servers (e.g., Nginx) can use a static cache of gzip-compressed
files to prevent the server from compressing files during an HTTP call. Since
compression occurs at another time, these compressed files can be compressed
at a higher compression level for increased optimization.Since zopfli is slow, this plugin uses joblib to compress files in parallel.Thepelican-zopfliplugin compresses all common text type files into a.gzfile within the same directory as the original file.InstallationThe easiest option is to install via pip from PyPI:pip install pelican-zopfliIt is also possible to simply clone the git repository and put it in a directory
listed inPLUGIN_PATHSin yourpelicanconf.py:git clone https://github.com/VorpalBlade/pelican_zopfli.gitIn both cases you will then have to enable the plugin by puttingpelican_zopfliintoPLUGINSin your pelican configuration. It is
a good idea to only do this in yourpublishconf.pysince this plugin is
quite slow.SettingsPELICAN_ZOPFLI_OVERWRITEIf True, the original files will be replaced by the gzip-compressed files.
This is useful for static hosting services (e.g S3). Defaults to False.
Package: pelicide
An IDE for Pelican sites.InstallationInstalling pelicide should be easy:$ pip install pelicideDevelopmentHowever, pelicide hasn’t been released to pypi yet. To build a working
pelicide install, there are some requirements:Python 2.7(unfortunately, not all dependencies are python 3
compatible)Node.js(required to host jspm)jspm(required to collect all javascript dependencies and build
the production javascript files, install it using npm install jspm)git(required to get the actual code and the dependencies)Once those dependencies are installed, you can get the pelicide source code,
install it’s dependencies using jspm and pip:$ git clone git@github.com:iksteen/pelicide.git
$ cd pelicide
$ jspm install
$ python setup.py developRunning pelicideCreate a project file (pelicide.ini) in your pelican directory:[pelicide]
pelicanconf=pelicanconf.py
python=~/.pyenv/pelican/bin/python
deploy=make rsync_upload
tempdir=tmpAll settings are optional (in fact, you can run pelicide without a project
file). The default value for thepelicanconfsetting ispelicanconf.py,
the default python interpreter is the interpreter used to execute pelicide.The specified python interpreter will be used to set up the pelican
environment. This can be useful if you install pelicide in a different virtual
environment than the one you build your site with.The deploy option specifies what command to execute to deploy (or publish)
your site. You can specify any shell command. The command will be executed in
the directory your pelican config file resides in.By default, pelicide will create a temporary directory to store the output
files in (and cleans it up when pelicide exits). If you have a lot of media
files that need to be copied and you restart pelicide often, you may want to
specify a persistent output usingtempdir.You can also create a global configuration file in~/.config/pelicide/pelicide.ini. This config file will be loaded first and
can contain the same options as the project file.Now, start pelicide:pelicide pelicide.iniPelicide will output a lot of debug information (in fact, it is the debug
output of pelican which builds your site into a temporary directory) and
finally it will tell you to go to a website:Pelicide is running. Please visit http://127.0.0.1:6300/Note that if you run pelicide without a project file and without a global
configuration file, it will look for pelicanconf.py in the current directory
and it will use the python interpreter used to run pelicide itself.
Package: pelikan
# Pelikan :flamingo:Pelikan lets you convert notebooks to comment-free notebooks. In other words, It removes Python block and inline comments from source cells in order to point out only source code.## How it works```$ pip install pelikan$ pelikan --helpusage: pelikan [-h] --notebook NOTEBOOK --output OUTPUToptional arguments:-h, --help            show this help message and exit--notebook NOTEBOOK, -n NOTEBOOKThe notebook file we want to remove comments from--output OUTPUT, -o OUTPUTThe name of the newly created comment-free notebook.$ pelikan -n notebook_file.ipynb -o voila$ lsnotebook_file.ipynb voila.ipynb```## LICENSEMIT
Package: pelimoji
PelimojiPelimoji is aPelicanplugin that adds support for custom emoji to your site.InstallationThis plugin can be installed via:python -m pip install pelimojiAs long as you have not explicitly added aPLUGINSsetting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must addpelimojito your existingPLUGINSlist. For more information, please see theHow to Use Pluginsdocumentation.UsageWithin yourPATHcontent root create a directory calledemoji. To that directory, add any square image files at least 16x16 ending in.png. These will be your emoji, addressable via the filename before the extension, such as:gentoo:if you had a file namedgentoo.pngin yourPELIMOJI_PATH. This is case-sensitive if your filesystem is case-sensitive. 64x64 works best, but any size will do, including 512x512. Just remember, this will affect load speed for your pages.When compiling your site, the following directory will be created and automatically added to yourSTATIC_PATHS:PATH/emoji_map/. You'll need to ensure thatPATH/emoji_map/emoji.cssis loaded as a stylesheet, whether using something likewebassetsorcssmin, or by adding directly.You may optionally also specify aPELIMOJI_PREFIXto require if you might have multiple sets of colon-tags that'd overlap. Whereas I might normally use:thumbs-up:, I could then specifyPELIMOJI_PREFIX = "emoji", and my tag would instead be:emoji-thumbs-up:.By default this plugin operates on source content files with the following file extensions:["md", "html", "rst"], corresponding to Markdown, HTML, and reStructuredText. If you, say, want this plugin to also process files ending in.txt, you should add the following to your settings file:PELIMOJI_FILE_EXTENSIONS=["md","html","rst","txt"]ContributingContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting onexisting issues.To start contributing to this plugin, review theContributing to Pelicandocumentation, beginning with theContributing Codesection.
Package: pelion-sagemaker-controller
Sagemaker Edge Agent Controller client API for Pelion EdgePyPi:https://pypi.org/project/pelion_sagemaker_controller/This python package simplifies the Data Scientist's job of accessing, via a Sagemaker Jupyter Notebook, the Sagemaker Edge Agent running on their Pelion Edge enabled gateway.Controller API Instance CreationTo create an instance of this API:# Required import
from pelion_sagemaker_controller import pelion_sagemaker_controller

#
# Invoke constructor with Pelion API Key, Pelion GW Device ID
# You can also optionally specify the Pelion API endpoint you want to use
#
api = pelion_sagemaker_controller.ControllerAPI(
		api_key='<ak_xxxx>', 
		device_id='<pelion_gw_device_id>', 
		api_endpoint='api.us-east-1.mbedcloud.com'
		)Supported CommandsThe following commands are supported by this API:Get Configurationapi.pelion_get_config()

This call returns a JSON with the current Edge Device representing the 
Sagemaker service's configurationSet Configurationapi.pelion_set_config({'foo':'bar'})

This call updates or adds key/values to the current Edge Device's configurationList Modelsapi.pelion_list_models()

This call returns a JSON outlining all of the loaded modelsLoad Modelapi.pelion_load_model('model-name','compiled-model-x.y.tar.gz')

This call loads up the requested Sagemaker-compiled model whose compiled 
contents are located within the S3 bucket defined in the configuration
and utilized by the Sagemaker serviceUnload Modelapi.pelion_unload_model('model-name')

This call unloads the loaded model referenced by the name 'model-name'Reload Modelapi.pelion_reload_model('model-name','compiled-model-x.y.tar.gz')

This call is a convenience method for simply performing an "unload" followed by
a "load" of a given model using the methods above.Predictapi.pelion_predict(
          'model-name',
          's3:///input.data', 
          's3:///prediction_result.data'
          )

This call invokes the model prediction using the specified input.data file that is
configured to be pulled from the Sagemaker S3 bucket (per configuration). The output
result from the prediction will be stored in a file that will be saved to the same
directory in the S3 bucket. 

In addition to S3 bucket support, you can locally reference input/output requirements
using the "file:///" protocol - in this case the Sagemaker Edge Agent working directory
on the Pelion Edge Gateway will contain the specified files.Last Command Resultapi.pelion_last_cmd_result()

This call returns the last invocation/call results. In cases where predictions take
a long time to complete, this call may be used in a polling situation to determine
when the prediction operation has completed.
Package: pelix_webconsole
This project provides a Web UI to manage and monitor an instance of aPelix/iPOPOframework.How to use itInstall Pelix:pip install iPOPOClone this repositoryIn the top directory, run the Pelix Shell using therun.txtinitialization file:python-mpelix.shell--initrun.txtGo tohttp://localhost:8080/DependenciesPythoniPOPOJavaScriptThe JavaScript part is compiled from a TypeScript file,app.ts.BootstrapThe whole interface is based on theDashboardexample.jQueryjQuery Table Sorter
Package: pellet
PelletPellet helps improve your Django app performance by discoveringN+1queries.The Django ORM makes it easy to forget usingselect_relatedandprefetch_relatedcorrectly and can accidentally causeN+1queries to happen.Pellet ultimately aims to recreateBulletfor Django.Installing Pelletpip install pelletEnabling PelletAddpellet.middleware.PelletMiddlewareto your django middleware list.Configure pellet behaviour by using thePELLETvariable in your django settings file.Configuring PelletYou can configure pellet by setting thePELLETvariable in your django settings file. The default values used by pellet if this variable or any field in the object is not found is as follows:PELLET={# Enable/Disable pellet# If set to False the pellet# middleware does nothing"enabled":False,# Enable this if you want count and time# metrics at a query level"query_level_metrics_enabled":False,# Settings related to response headers# set by pellet"headers":{# Enables setting response headers"enabled":False,# Header to be used for setting total query count"query_count_header":"X-Pellet-Count",# Header to be used for setting total query time"query_time_header":"X-Pellet-Time"},# Settings related to pellet debug mode"debug":{# Enable debug mode# Don't enable on prod as it will slow down your app"enabled":False,# Query count thresholds which will# be used by pellet to report metrics# on the console"count_threshold":{# Min number of times a query should happen# for it to be classified as N+1# Queries with less count than this will# not show up in the debug table"min":2,# Max number of times a query should happen# for it to be classified as a low impact# performance issue"low":5,# Max number of times a query should happen# for it to be classified as a warning impact# performance issue# Every query happening more times than this# is classified as a high impact performance issue"medium":10}},# Path to a callback function which will be called# with the request, response and# pellet metrics object"callback":None}Callback functionThe callback function should accept three arguments:request-> django request objectresponse-> django response objectpellet_metrics-> dict containing metrics collected by pelletExample functionality:collect and send api call level pellet metrics to an external service like datadogmake integration tests fail for an api if too many queries are happening by raising an exceptionsend alert emails, slack messages, etc on too many queriesSteps:Create a callback function:# app/user/callbacks.pyfrompellet.utilsimportget_sanitised_pathdefwrite_datadog_metrics(path,metrics):# Writes metrics to datadogpassdefpellet_callback(request,response,pellet_metrics):# Get id stripped path# eg: /api/user/1/ -> /api/user/_id_/sanitised_path=get_sanitised_path(request.path)write_datadog_metrics(sanitised_path,pellet_metrics)Specify the callback function in the pellet config object.PELLET={# ..... rest of pellet config"callback":"app.user.callbacks.pellet_callback"}