Saravanan666/pypi-org huggingface dataset:
Package: jsinclude
$ pip install jsincludeExample of use:<!-- template.html -->
{% load jsinclude %}
{% with 31 as age %}
    {% jsinclude widgets/profile.js "name=Jane Doe" age gender=female %}
{% endwith %}// profile.js
console.log('My name is ' + $jsi.name);
console.log("I'm a " + $jsi.age + ' year old ' + $jsi.gender);Syntax:{% jsinclude <path_to_script> [{arg}] %}Django-tag APIThe JSInclude tag has two sections. First argument is the script
path.# Path can be a string..
{% jsinclude literal/path/to/script.js %}
# ..or a context variable.
# context['mypath'] == "my/script/path.js"
{% jsinclude mypath %}The second argument section is where you can pass in your template
data into the JavaScript file. There are three variable format
options, and there is no limit to the number of varialbes you can
pass in.<template variable>Any context variable can be directly provided as a tag argument.
JSInclude will preserve the variable’s name in the JavaScript$jsiobject.# context['color'] == 'red'
{% jsinclude shape.js color %}name=valueStatic values that do not contain spaces can be set as a simple
key=value pair.{% jsinclude shape.js type=square %}“name=long value”Static values that contain spaces must be wrapped in quotes. Django 1.3
does not support arbitrary arguments in template tags, so the entire
key=value pair must be wrapped in quotes.{% jsinclude shape.js "label=my red square" %}JavaScript APIJSInclude exposes a single JavaScript object that contains all tag
arguments. This object is scoped only to the included script, so it will
not remain in scope after the script has executed and does not alter
global namespace at any time.window.myglobal = 1234; // Works as expected.
var myotherglobal = 1234; // Scoped only to the jsincluded script.$jsiJSInclude exposes the$jsiobject scoped only to the included
template.$jsi.<name>The$jsiobject contains any Django template variables preserving
original naming. Static data can be loaded into the$jsiobject by
thename=valueor"name=long value"tag argument conventions.Configuration# settings.py
JSINCLUDE_STATIC_PATH = 'required/path/to/static/files'
JSINCLUDE_WRAP_PATH = 'optional/path/to/custom.template'
# Built-in TEMPLATE_DEBUG will enable/disable minification.
TEMPLATE_DEBUG = TrueDependenciesrjsminLicense: MITDan Cobbcobbdb@gmail.com
Package: js-initiator
js-initiatorA Django wrapper for our JavaScript library for initialising frontend page elements.Compatibilityjs-initiator' major.minor version number indicates the Django release it is compatible with. Currently this is Django 4.1.InstallationInstall usingpip:pipinstalljs-initiatorAddjs_initatorto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'js_initator'# ...]
Package: js-invoke
JS_INVOKEA collection of my standard invoke tasks.js_invoke - Release Notes2.0.0Refactor Python API to match latest best practices for package repository
layout.1.0.0Initial public release with basic tasks required for normal Python development.Copyright (c) 2018 Justin Stout (justin@jstout.us)Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: jsiter
jsiterJavaScript flavor iterable for python.installpip install jsiter
# or
pip3 install jsiter
# depends on your OSBeforefromfunctoolsimportreducea=[1,3,5,7,9,100]reduce(lambdaa,b:a+b,map(lambdax:chr(x),sorted(filter(lambdax:x<=90,map(lambdax:x+65,a)),key=lambdax:-x)))# 'JHFDB'Afterfromjsiterimportjsitera=jsiter([1,3,5,7,9,100])a.map(lambdax:x+65).filter(lambdax:x<=90).sorted(key=lambdax:-x).map(lambdax:chr(x)).reduce(lambdaa,b:a+b)# 'JHFDB'
Package: js.jasny_bootstrap
IntroductionThis library packagesJasny Bootstrapforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jasny_bootstrap) are published to some URL.
How to use?
===========You can importjasny_bootstrapfromjs.jasny_bootstrapandneedit where you want
these resources to be included on a page:>>> from js.jasny_bootstrap import jasny_bootstrap
>>> jasny_bootstrap.need()CHANGES3.1.3.post1 (2015-09-23)Brown paper bag release: wrong manifest.3.1.3 (2015-09-23)Initial release.
Package: js.javascript_canvas_to_blob
js.javascript_canvas_to_blobIntroductionThis library packagesJavaScript Canvas to Blobforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.javascript_canvas_to_blob) are published to some URL.How to use?You can importcanvas_to_blobfromjs.javascript_canvas_to_blobandneedit where you want these resources to be included on a page:>>> from js.javascript_canvas_to_blob import canvas_to_blob
>>> canvas_to_blob.need()CHANGES2.0.5Initial release.
Package: js.javascript_load_image
js.javascript_load_imageIntroductionThis library packagesJavaScript Load Imageforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.javascript_load_image) are published to some URL.How to use?You can importload_imagefromjs.javascript_load_imageandneedit
where you want these resources to be included on a page:>>> from js.javascript_load_image import load_image
>>> load_image.need()CHANGES1.2.3Initial release.
Package: js.javascript_templates
js.javascript_templatesIntroductionThis library packagesJavaScript Templatesforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.javascript_templates) are published to some URL.How to use?You can importtmplfromjs.javascript_templatesandneedit where
you want these resources to be included on a page:>>> from js.javascript_templates import tmpl
>>> tmpl.need()CHANGES2.1.0Initial release.
Package: jsjinja
JsJinja: Render Jinja2 Templates in JSJsJinja lets you use yourJinja2templates in Javascript. Itcompile the Jinja2 templates to Javascript with no restrictions.The js can be generated via command linejsjinja <template file>or
through the{% jsjinja %}tag in the templates.You can use:Template inheritance (Include, Extends, Blocks, super, …)ImportMacrosTestsFiltersTagsThe only exception is thatyou cannot use custom tagslike{% customtag%}{%endcustomtag %}.InstallingFirst, you must do:pip install jsjinjaNutshellHere a small example of a Jinja template:{%extends'base.html'%}{%blocktitle%}Memberlist{%endblock%}{%blockcontent%}<ul>{%foruserinusers%}<li><ahref="{{user.url}}">{{user.username}}</a></li>{%endfor%}</ul>{%endblock%}And here is the javascript compiled template:(function(){Jinja2.extends(Template,Jinja2.Template);Jinja2.registerTemplate("readme_template.tmpl",Template);functionTemplate(){returnTemplate.__super__.constructor.apply(this,arguments);};Template.prototype.root=function(context){varbuf="";varparent_template=Jinja2.getTemplate("base.html","readme_template.tmpl");for(nameinparent_template.blocks){varparent_block=parent_template.blocks[name];context.blocks[name]=context.blocks[name]||[];context.blocks[name].push(parent_block)}buf+=parent_template.root(context);returnbuf;}Template.prototype.block_content=function(context){varbuf="";varl_users=context.resolve("users");buf+="\n  <ul>\n  ";varl_user=undefined;vart_1=l_users;for(vart_2=0,t_3=t_1.length;t_2<t_3;t_2++){l_user=t_1[t_2];buf+='\n    <li><a href="';buf+=l_user['url'];buf+='">';buf+=l_user['username'];buf+='</a></li>\n  ';}l_user=undefined;buf+="\n  </ul>\n";returnbuf;}Template.prototype.block_title=function(context){varbuf="";buf+="Memberlist";returnbuf;}returnTemplate;})()InstallationFor begin using JsJinja just addjsjinja.ext.JsJinjaExtensionto
your Jinja2 Environment.Example:importjinja2env=jinja2.Environment(extensions=['jsjinja.ext.JsJinjaExtension',])Or:jinja_env.add_extension('jsjinja.ext.JsJinjaExtension')UsageGenerating js templatesOnce you have the JsJinja extension installed, you have to generate the
js templates:printjinja_env.jsjinja.generate('your_template.jinja2')Or just converting allprintjinja_env.jsjinja.generate_all()Or using thecommand line utilityjsjinja <templates>Rendering the js templatesFor start using the templates you must include thejinja2.runtime.jsscript:<scriptsrc="https://raw.github.com/SyrusAkbary/jsjinja/master/jsjinja/lib/jinja2.runtime.min.js"></script>After you have includedjinja2.runtime.jsand the generated js
templates, thenhtml=Jinja2.getTemplate("template.html").render({}})$('body').html(html)ExamplesLibrary comes with a lot of examples, you can find them inexamplesdirectory.StaticgenerationDynamicgenerationTestingYou must havepyv8andnosepython packages installed. You can
do the tests with./test.shTODOs and BUGSSee:http://github.com/syrusakbary/jsjinja/issues
Package: js.jqgrid
js.jqgrid*********Introduction============This library packages `jqgrid`_ for `fanstatic`_... _`fanstatic`: http://fanstatic.org.. _`jqgrid`: http://www.trirand.com/jqgridwiki/To include the grid, calljs.jqgrid.jqgrid.need()then you also need to adda language, for examplejs.jqgrid.jqgrid_i18n_en.need()This requires integration between your web framework and ``fanstatic``,and making sure that the original resources (shipped in the ``resources``directory in ``js.jqgrid``) are published to some URL.The provided jqgrid code is licenced under MIT and GPL, the integration codeuses a BSD Licence.CHANGES*******4.4.4 (2013-03-02)==================- Updated jqGrid to version 4.4.4. [agronholm]4.4.1-1 (2012-09-22)==================- Added missing locales to js/jqgrid/__init__.py [agronholm]4.4.1 (2012-09-22)==================- Updated jqGrid to version 4.4.1. [agronholm]4.3.1_1 (2012-02-07)====================- Brown Bag release. setuptools-git was missing [do3cc]4.3.1 (2012-02-07)==================- Updated jqGrid to version 4.3.1. [agronholm]4.1.0 (2011-06-19)==================- Initial release. [do3cc]
Package: jsjquery
==============================================================``jsjquery`` Install and list jQuery as a dependency via PyPI.===============================================================:Version: 1.3.2=======================================Synopsis=======================================With this package you can install and list jQuery as a dependencyfor your Python applications.You can get the path to the jQuery javascript file in two ways,Via Python::>>> import jsjquery>>> jsjquery.path/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/jsjquery-1.3.2-py2.6.egg/jsjquery/jquery-1.3.2.min.jsor via the command line with the ``python-jquery`` command::$ python-jquery/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/jsjquery-1.3.2-py2.6.egg/jsjquery/jquery-1.3.2.min.js======================================Installation======================================To install:python ./setup.py installOr via easy_install:easy_install jsjqueryOr via pip:pip install jsjquery
Package: js.jquery
js.jqueryIntroductionThis library packagesjQueryforfanstatic. It is aware of jQuery’s
structure and different modes (normal, minified).This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery) are published to some URL.How to use?You can import jQuery fromjs.jqueryandneedit where you want
these resources to be included on a page:>>> from js.jquery import jquery
>>> jquery.need()There is also the slim version (which excludes the ajax and effects modules):>>> from js.jquery import jquery_slim
>>> jquery_slim.need()CHANGES3.6.1 (2022-08-31)Update to jQuery 3.6.1, released 2022-08-26 (release notes 3.6.1).3.3.1 (2018-03-20)Update to jQuery 3.3.1, released 2018-01-20 (release notes 3.3.1).3.2.1 (2018-02-01)Update to jQuery 3.2.1, released 2017-03-20 (release notes 3.2.1).1.9.1 (2013-03-03)Update to jQuery 1.9.1, released 2013-02-04 (release notes 1.9.1).1.8.2 (2012-09-21)Update to jQuery 1.8.2, released 2012-09-20 (release notes 1.8.2).1.8.1 (2012-09-18)Update to jQuery 1.8.1, released 2012-08-30 (release notes 1.8.1).1.8.0 (2012-08-22)Update to jQuery 1.8, released 2012-08-09 (release notes 1.8).1.7.2 (2012-08-22)Update to jQuery 1.7.2, released 2012-03-21 (release notes 1.7.2)1.7.1 (2011-12-01)Update to v 1.7.11.6.1 (2011-05-24)Update to v 1.6.11.6 (2011-05-07)Update to v 1.61.4.4 (2011-01-06)Rewrotehurry.jqueryto usefanstaticinstead ofhurry.resource.
Package: js.jquery_autosize
js.jquery_autosizeIntroductionThis library packagesjQuery Autosizeforfanstatic. It is aware
of different modes (normal, minified).This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_tooltip) are published to some URL.How to use?You can import jQuery Autosize fromjs.jquery_autosizeandneedit
where you want these resources to be included on a page:>>> from js.jquery_autosize import jquery_autosize
>>> jquery_autosize.need()CHANGES1.17.1 (2013-07-22)Initial release.
Package: js.jquery_ba_resize
js.jquery_ba_resizeIntroductionThis library packagesjquery.ba-resizeforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_ba_resize) are published to some URL.Bitbucket repository :https://bitbucket.org/fanstatic/js.jquery_ba_resizeHow to use?You can importba_resizefromjs.jquery_ba_resizeandneedit where you want
these resources to be included on a page:>>> from js.jquery_ba_resize import ba_resize
>>> ba_resize.need()CHANGES1.1 (17-05-2011)Initial release.
Package: js.jquery_cookie
js.jquery_cookieIntroductionThis library packagesjQuery Cookieforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_cookie) are published to some URL.How to use?You can importcookiefromjs.jquery_cookieandneedit where you want
these resources to be included on a page:>>> from js.jquery_cookie import cookie
>>> cookie.need()CHANGES1.0 (2011-10-08)Initial release.
Package: js.jquery_datalink
js.jquery_datalinkIntroductionThis library packagesjQuery Datalinkforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_datalink) are published to some URL.How to use?You can importjquery_datalinkfromjs.jquery_datalinkandneedit where you want
these resources to be included on a page:>>> from js.jquery_datalink import jquery_datalink
>>> jquery_datalink.need()CHANGES1.0.0-1 (2011-05-17)update to fe0795d775bf91467e5d1.0.0 (2011-04-25)Initial release.
Package: js.jquery_datatables
js.jquery_datatablesIntroductionThis library packagesjQuery Datatablesforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_datatables) are published to some URL.How to use?You can importjquery_datatablesfromjs.jquery_datatablesandneedit where you want
these resources to be included on a page:>>> import js.jquery_datatables as jt
>>> jt.jquery_datatables.need()
>>> jt.autofill.need()
>>> jt.colreorder.need()
>>> jt.colvis.need()
>>> jt.fixed_columns.need()
>>> jt.fixed_header.need()
>>> jt.keytable.need()
>>> jt.responsive.need()
>>> jt.scroller.need()
>>> jt.table_tools.need()CHANGES1.10.7 (2015-09-22)Update to 1.10.7.1.10 (2014-09-29)Updated files and initialization to Datatables 1.10.Simplify the installation of the test runner in the buildout.cfg; the
old method failed on my machine.1.9.4-2 (unreleased)The ‘tabletools’ extra needs ‘zeroclipboard.js’ in order to function.1.9.4-1 (unreleased)Add included extras as fanstatic resources.1.9.4 (2012-10-12)Updated files to datatables version 1.9.41.9.3 (2012-10-12)Nothing changed yet.1.9.2 (2012-07-17)Nothing changed yet.1.8.2 (2011-11-11)Modified to make availablejquery_datatables_jsas a separate
resource that doesn’t include the css by default.Upgraded to datatables 1.8.21.7.6 (2011-04-25)Initial release.
Package: js.jquery_elastic
js.jquery_elasticIntroductionThis library packagesjQuery Elasticforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_elastic) are published to some URL.How to use?You can importelasticfromjs.jquery_elasticandneedit where you want
these resources to be included on a page:>>> from js.jquery_elastic import elastic
>>> elastic.need()CHANGES1.6.11 (2011-11-02)Update to 1.6.111.6.5 (2011-05-10)Initial release.
Package: js.jquery_expandbox
js.jquery_expandboxIntroductionThis library packagesjquery.expandBoxforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_expandbox) are published to some URL.Bitbucket repository :https://bitbucket.org/fanstatic/js.jquery_expandboxHow to use?You can importexpandboxfromjs.jquery_expandboxandneedit where you want
these resources to be included on a page:>>> from js.jquery_expandbox import expandbox
>>> expandbox.need()CHANGES0.2.0 (27-04-2011)Initial release.
Package: js.jquery_fileupload
js.jquery_fileuploadIntroductionThis library packagesjQuery File Uploadforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_fileupload) are published to some URL.Mostly HarmlessHow to use?You can import jQuery File Upload fromjs.jquery_fileuploadandneedit where you want these resources to be included on a page:>>> from js.jquery_fileupload import jquery_fileupload
>>> jquery_fileupload.need()CHANGES9.7.0b1 (2014-08-05)Initial release.
Package: js.jquery_flot
js.jquery_flotIntroductionThis library packagesflotforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_flot) are published to some URL.How to use?You can importflotfromjs.jquery_flotandneedit where you want
these resources to be included on a page:>>> from js.jquery_flot import flot
>>> flot.need()CHANGES0.8.1 (2013-08-29)Update to flot 0.8.1.0.7-2 (2011-09-09)Fix brown paper bag release.0.7-1 (2011-09-09)Expose selection functionality.0.7 (2011-09-08)Initial release.
Package: js.jquery_form
js.jquery_formIntroductionThis library packagesjQuery Formforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_form) are published to some URL.How to use?You can importjquery_formfromjs.jquery_formandneedit where you want
these resources to be included on a page:>>> from js.jquery_form import jquery_form
>>> jquery_form.need()CHANGES3.09 (2012-07-19)Nothing changed yet.2.82 (2012-07-18)Add jquery.form plugin version 2.82Add minified variant2.69 (2011-04-25)Initial release.
Package: js.jquery_formwizard
js.jquery_formwizardContentsjs.jquery_formwizardIntroductionCHANGESHow to use?IntroductionThis library packagesFormWizardforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_formwizard) are published to some URL.CHANGES3.0.5 (2013-03-17)Initial release.How to use?This should be setup before rendering a page. Seefanstaticfor more
information:>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='http://localhost')You can importjquery_formwizardfromjs.jquery_formwizardandneedit where you want these resources to be included on a page:>>> from js.jquery_formwizard import jquery_formwizard
>>> jquery_formwizard.need()Render the inclusion:>>> print needed.render()
<script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jquery-validate/jquery.validate.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jquery_form/jquery.form.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jqueryui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jquery-formwizard/jquery.form.wizard.js"></script>
Package: js.jquery_globalize
js.jquery_globalizeIntroductionThis library packagesjquery globalizeforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_globalize) are published to some URL.How to use?Setup>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='')You can importglobalizefromjs.jquery_globalizeandneedit where you want
these resources to be included on a page:>>> from js.jquery_globalize import globalize
>>> globalize.need()All 350+ cultures are made available as resources:>>> from js.jquery_globalize import culture_am_et
>>> culture_am_et.need()Render the inclusion:>>> print needed.render()
<script type="text/javascript" src="/fanstatic/jquery/jquery.js"></script>
<script type="text/javascript" src="/fanstatic/jquery_globalize/globalize.js"></script>
<script type="text/javascript" src="/fanstatic/jquery_globalize/cultures/globalize.culture.am-ET.js"></script>CHANGES0.1.0a2 (2011-11-14)Initial release.
Package: js.jquery_gritter
js.jquery_gritterContentsjs.jquery_gritterIntroductionCHANGESHow to use?IntroductionThis library packagesGritter for jQueryforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.jquery_gritter) are published to some URL.CHANGES1.7.4 (2013-03-17)Initial release.How to use?This should be setup before rendering a page. Seefanstaticfor more
information:>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='http://localhost')You can importjquery_gritterfromjs.jquery_gritterandneedit where you want these resources to be included on a page:>>> from js.jquery_gritter import jquery_gritter
>>> jquery_gritter.need()Render the inclusion:>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/jquery-gritter/css/jquery.gritter.css" />
<script type="text/javascript" src="http://localhost/fanstatic/jquery/jquery.js"></script>
<script type="text/javascript" src="http://localhost/fanstatic/jquery-gritter/js/jquery.gritter.js"></script>
Package: js.jquery_infinite_ajax_scroll
This library packagesinfinite-ajax-scrollfor fantastic.How to use?You can import jquery_infinite_ajax_scroll fromjs.jquery_infinite_ajax_scrollandneedit where you want these resources to be included on a page:>>> from js.jquery_infinite_ajax_scroll import jquery_infinite_ajax_scroll
>>> jquery_infinite_ajax_scroll.need()

>>> from js.jquery_infinite_ajax_scroll import jquery_infinite_ajax_scroll_css
>>> jquery_infinite_ajax_scroll_css.need()Changes0.1 (2012-07-20)Initial release.