Saravanan666/pypi-org huggingface dataset:
Package: js.tableselect
js.tableselectIntroductionThis library provides a widget which you can use to transform a multiselect
to a searchable sortable table which has selectable rows.
Packaged forfanstatic.Create and useOnce included, simply call $(select_element).tableselect(); to transform
your simple multiselect element to a searchable table select widget containing
values and labels. Click on rows to select them.aoColumn and aaData values need to be provided in the global “tableselect”
object with the Id of the original multiselect as key. First column must
contain the values of the options of the original multiselect.
In the example below this column is hidden:tableselect[‘my_multiselect’][‘aoColumns’] = [{“bVisible”: false, “bSearchable”: false},
{“sTitle”: “Title”, “bSearchable”: true},
{“sTitle”: “Description”, “bSearchable”: true}];tableselect[‘my_multiselect’][‘aaData’] = [[“value_of_first_option”, “title”, “description”],
[“value_of_second_option”, “foo”, “bar”]] ;$(‘#my_multiselect’).tableselect();CHANGES0.3 (2013-10-22)Add support for overriding initial sorting option.0.2 (2013-09-18)Add support for overriding Language options (Translations).0.1 (2013-09-12)Initial release
Package: jstc
ThejstcPython package compiles and packages JavaScript templates
for delivery to browsers for client-side evaluation.Currently, onlyHandlebarsandMustachetemplate formats are
supported natively, however this is easily extended via jstc’s plugin
mechanism.ProjectHomepage:https://github.com/canaryhealth/jstcBugs:https://github.com/canaryhealth/jstc/issuesManual:https://github.com/canaryhealth/jstc/blob/master/doc/manual.rstInstallation$pipinstalljstcOptionally, the handlebars pre-compiler can be installed to
pre-compile JavaScript templates for faster client-side rendering:# OPTIONAL: install handlebars pre-compiler$npminstallhandlebars$exportPATH="`pwd`/node_modules/.bin:$PATH"UsageThe typical usage is to have something similar to the following in
your HTML generation template (here, usingMakosyntax):<%!importjstc%><html>
  <!-- ... -->
  <body>

    <div id="Main">Loading...</div>

    <!-- load all the *.hbs templates -->
    <div id="Templates" style="display:none">${jstc.render_assets('myapp:static/scripts/**.hbs')|n}</div>

    <script type="text/javascript">
      // your javascript that makes use of the templates
    </script>

  </body>
</html>ExampleGiven that the following files exist in the Python packagemyapp:Filemyapp/static/templates/common/hello.hbs:Hello, {{name}}!Filemyapp/static/templates/common/inputs.hbs(a “multi-template” file):##! text

  <input type="text" name="{{name}}" value="{{value}}"/>

##! checkbox

  <input type="checkbox" name="{{name}}" value="1" {{#if value}}checked="checked"{{/if}}/>Then, the Python code (inlineandprecompileattributes used for
output simplicity):importjstcjstc.render_assets('myapp:static/templates/common/**.hbs','static/templates',force_inline=True,force_precompile=False)Outputs the following HTML (whitespace and newlines added for clarity):<scripttype="text/x-handlebars"data-template-name="common/hello">Hello,{{name}}!</script><scripttype="text/x-handlebars"data-template-name="common/inputs/text"><inputtype="text"name="{{name}}"value="{{value}}"/></script><scripttype="text/x-handlebars"data-template-name="common/inputs/checkbox"><inputtype="checkbox"name="{{name}}"value="1"{{#ifvalue}}checked="checked"{{/if}}/></script>Seehttps://github.com/canaryhealth/jstc/blob/master/doc/manual.rstfor
more documentation.
Package: js.tinymce
js.tinymceIntroductionThis library packagesTinyMCEforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.tinymce) are published to some URL.How to use?You can import tinymce fromjs.tinymceandneedit where you want
these resources to be included on a page:>>> from js.tinymce import tinymce
>>> tinymce.need()CHANGES4.5.4 (2017-03-07)Updated to TinyMCE version 4.5.4.4.2.7 (2015-11-12)Updated to TinyMCE version 4.2.7.4.1.5 (2014-10-16)Updated to TinyMCE version 4.1.5.4.0.28 (2014-06-11)Updated to TinyMCE version 4.0.28.4.0.12 (2014-01-22)Updated to TinyMCE version 4.0.12.4.0.2 (2013-07-25)Updated to TinyMCE version 4.0.2.3.5.2-1 (2012-07-02)Added all available translation files.3.5.2 (2012-06-05)Updated to release 3.5.23.4.5-2 (2011-12-07)Correctly added nl/de/es translations.3.4.5-1 (2011-11-24)Add nl/de/es translations.3.4.5 (2011-09-28)Update to release 3.4.5.3.4.3.2-1 (2011-08-05)Make tiny_mce_popup.js available as a Fanstatic Resource.3.4.3.2 (2011-08-02)Update to 3.4.3.23.3.9.3 (2011-01-11)Initial release.
Package: jstr
jstrPackages that usejstrDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-njstr--fileenv.ymlInstallpipinstall-e.# install from pypipipinstalljstrnbdev# activate conda environment$condaactivatejstr# make sure the jstr package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the jstr package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/jstr.gitor fromconda$condainstall-cdsm-72jstror frompypi$pipinstalljstrDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.A = AliasC = ClassVarQ = OptionalE = (Over)-EngineeredZ = CustomR = RichP = PlotD = DataB = BioM = Machine Learning
Package: js.trix
IntroductionThis library packagesTrixforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.trix) are published to some URL.How to use?You can importtrixfromjs.trixandneedit where you want
these resources to be included on a page:>>> from js.trix import trix
>>> trix.need()

>>> from js.trix import (
...     trix_css,
...     trix_js,
... )CHANGES1.3.0.post1 (2022-01-24)Remove invalid repeated @charset #31.3.0 (2020-11-25)Update to Trix 1.3.0.1.0.0 (2019-02-27)Update to Trix 1.0.0.0.9.5 (2016-03-18)Initial packaging of trix as a fanstatic package.
Package: jstruct
jstructAn eloquent and opinionated python library for nested object models definition offering simple serialization and deserialization into python dictionaries.WhyThe deserialization of JSON or yaml into python data types is a common practice useful in many ways.Configuration file reading and writingREST API message response generation and request processingObject-Document Mapping for a document storeData import parsing or export generationHowJStructleverageattrsthe greatClasses without boilerplatelibrary to define structs without boilerplate.WhatThe result is a simple and intuitive syntax familiar to a pythonista that bringsValidation,DeserializationandSerialization.RequirementsPython 3.6 and +InstallationInstall using pippipinstalljstructUsageimportattrfromtypingimportListfromjstructimportstruct,JList@structclassPerson:first_name:strlast_name:str@structclassRoleModels:scientists:List[Person]=JList[Person]payload={"scientists":[{"first_name":"John","last_name":"Doe"}]}role_models=RoleModels(**payload)print(role_models)# RoleModels(scientists=[Person(first_name='John', last_name='Doe')])print(attr.asdict(role_models))# {'scientists': [{'first_name': 'John', 'last_name': 'Doe'}]}AuthorsDaniel K.-@DanHK91|https://danielk.xyzContributeContributors are welcomed.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: jsua
jsua, pronounced Joshua, is a streaming sax-like parser for JSON files.
It’s special because it doesn’t require you to start at the beginning of
a JSON stream. You can start anywhere, and it will eventually start
spitting out events.UsagefromjsuaimportSynchronizingParserfromioimportStringIOjson=StringIO('{"hello": "world"}')parser=SynchronizingParser(json)forstate,event,valueinparser.parse():print(state,event,value)
Package: jsui
Webbrowser user interface for python.import jsuiui = jsui.UI()thing = Thing()ui.start({'thing': thing})Support both synchronous and asynchronous (eventually) operations.Support both explicit and inspected (eventually) object specificiations.spec:'name':  # name of the thing to expose'type':  # function/number/string/etc...'ui':  # ui element to use'js':  # ui payload (may also be processingjs)'html':  # html payload'css':  # css payload-- Functions --call grab (js) -> call grab (py) -> wait -> get images (py) -> get images (js)get new stage positions (js) -> positions (py) -> new positions (py) -> new stage positions (js)move stage (js) -> move stage (py)change config (js) -> change config (py)to turn a variable into a function. This needs to 'capture' the variabledef funcify(v):def f(*args):if len(args):v = args[0]return v
Package: js.underscore
js.underscoreIntroductionThis library packagesunderscore.jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.underscore) are published to some URL.How to use?You can importunderscorefromjs.underscoreandneedit where you want
these resources to be included on a page:>>> from js.underscore import underscore
>>> underscore.need()CHANGES1.5.2Updated underscore.js to 1.5.21.4.4Updated underscore.js to 1.4.41.3.3Updated underscore.js to 1.3.31.3.0Initial release.
Package: js.unicode_eastasianwidth
Counting the unicode characters basedUnicode East Asian Width databasefor JavaScript.
It includes some tools for dealing with characters.js.unicode_eastasianwidthIntroductionThis library packagesUnicode-EastAsianWidth-JSforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.unicode_eastasianwidth) are published to some URL.How to use?You can importunicode_eastasianwidthfromjs.unicode_eastasianwidthandneedit where you want
these resources to be included on a page:>>> from js.unicode_eastasianwidth import unicode_eastasianwidth
>>> unicode_eastasianwidth.need()

>>> from js.unicode_eastasianwidth import angular_unicode_eastasianwidth
>>> angular_unicode_eastasianwidth.need()

>>> from js.unicode_eastasianwidth import (
...     unicode_eastasianwidth,
...     angular_unicode_eastasianwidth,
... )
Package: js.uploadify
js.uploadifyIntroductionThis library packagesuplodify File Uploadforfanstatic. Note that
due to licensing constraints we can only provide the flash version.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.uploadify) are published to some URL.Mostly HarmlessHow to use?You can import Uploadify fromjs.uploadifyandneedit
where you want these resources to be included on a page:>>> from js.uploadify import uploadify
>>> uploadify.need()CHANGES3.2.1 (2014-03-25)Upgrade to uploadify v.3.2.1.2.1.0 (2014-03-21)Initial release.
Package: js.url_parser
js.url_parserIntroductionThis library packagesurl-parserforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.url_parser) are published to some URL.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 importurl_parserfromjs.url_parserandneedit where you want
these resources to be included on a page:>>> from js.url_parser import url_parser
>>> url_parser.need()Render the inclusion:>>> print needed.render()
<script type="text/javascript" src="http://localhost/fanstatic/url-parser/url-parser.js"></script>CHANGES1.1.0 (unreleased)Initial release.
Package: js.uuid
IntroductionThis library packagesnode-uuidforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.uuid) are published to some URL.How to use?You can importuuidfromjs.uuidandneedit where you want
these resources to be included on a page:>>> from js.uuid import uuid
>>> uuid.need()CHANGES1.4.7 (2016-03-18)Initial packaging of node-uuid as a fanstatic package.
Package: js.vanderlee_colorpicker
js.vanderlee_colorpickerIntroductionThis library packagesvanderlee/colorpickerforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.vanderlee_colorpicker) are published to some URL.The parsers and swatches are not included in the default resourcecolorpicker, but have their own resources (cmyk_parser,cmyk_percentrage_parser,swatches_crayola,swatches_pantone,swatches_ral), so remember toneed()these explicitly if you want to
use some of those features.The translations are not included in this package (yet?).How to use?You can importcolorpickerfromjs.vanderlee_colorpickerandneedit where you want these resources to be included on a page:>>> from js.vanderlee_colorpicker import colorpicker
>>> colorpicker.need()CHANGES1.0.9-1 (2014-03-19)Fix minified versions.1.0.9 (2014-03-19)Initial release.
Package: js.videojs
js.videojsIntroductionThis library packagesVideo.jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.videojs) are published to some URL.How to use?You can import videojs fromjs.videojsandneedit where you want
these resources to be included on a page:>>> from js.videojs import videojs
>>> videojs.need()CHANGES7.5.5 (2019-08-22)Update to v7.5.5.6.6.0 (2017-12-20)Update to v6.6.05.13.2 (2016-11-21)Update to 5.13.2.5.10.2 (2016-05-19)Updated to 5.10.25.1.0 (2015-11-12)Updated to 5.1.04.5.1 (2014-04-04)Initial release.
Package: jsview
Copyright (c) 2016-2018 Fabien Fleutot.This software is made available under theMIT public license.(Kind-of) smart JSON formatter.Every JSON formatter I've found inserts newline + indent at every
list item and every object pair. As a result, instead of being
unreadable because it's too large (in a single line), the resulting
JSON is unreadable because too tall (too many newlines), especially
when dealing with formats like GeoJSON where long lists of
coordinates are handled.This formatter works with a page width in mind, by default 80, and
tries to optimize screen space usage in both width and height.Installationpip install jsviewUsagejsview.py [-h] [-w WIDTH] [-i INDENT] [-o OUTPUT] [-l] [-u] [-r] filename

Format JSON inputs with smart line-returns and indendation.

positional arguments:
  filename              Input file; use '-' to read from stdin

optional arguments:
  -h, --help            show this help message and exit
  -w WIDTH, --width WIDTH
                        Set the ideal width of the output text; if unspecified,
                        try to fit the terminal's width as returned by stty.
  -i INDENT, --indent INDENT
                        Indentation, in number of space characters; default=2
  -o OUTPUT, --output OUTPUT
                        Output file; defaults to stdout
  -l, --close-on-same-line
                        When set, further lines are saved by closing lists and
                        objects on the same line as the last element.
  -u, --utf8-output     Output strings as UTF8 rather than ASCII 7 bits
  -r, --reformat        When set, file content is replaced by a reformatted
                        version. File must not be '-'.ExampleBelow is the result of formatting a non-trivial JSON input to 80 characters wide:{
  "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG::4326"}},
  "totalFeatures": 116570,
  "type": "FeatureCollection",
  "features": [
    {
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [[-3.59, 48.28], [-3.57, 48.28], [-3.54, 48.28], [-3.53, 48.26],
            [-3.51, 48.25], [-3.49, 48.24], [-3.47, 48.22], [-3.48, 48.21],
            [-3.5, 48.2], [-3.5, 48.18], [-3.48, 48.17], [-3.49, 48.15],
            [-3.52, 48.15], [-3.53, 48.14], [-3.56, 48.14], [-3.58, 48.14],
            [-3.59, 48.15], [-3.58, 48.17], [-3.58, 48.19], [-3.57, 48.21],
            [-3.57, 48.23], [-3.58, 48.25], [-3.6, 48.26], [-3.59, 48.28],
            [-3.59, 48.28]]]
      },
      "properties": {
        "lastrevision": "2016-02-17T15:40:00Z",
        "probability": 0,
        "convectiontype": "ASPOC3D",
        "directiontowards": 90.06896,
        "top": 310,
        "phasetype": null,
        "convectioncelltopvariation": "CONSTANT",
        "intensity": "LIGHT",
        "base": 0,
        "identifier": "OPIC_RADAR.1.201602171540000060_310",
        "speed": 9.1,
        "obsorfcsttime": "2016-02-17T16:40:00Z"
      },
      "type": "Feature",
      "id": "convectionAirm.3449590",
      "geometry_name": "extent"
    }
  ]
}
Package: jsw-bio
jsw-bioJsw for biography.installationpipinstalljsw-bio-Uusageimportjsw_bioasbio## common methods# get fasta/genbank urlbio.url('7EU9_A','fasta')bio.url('7EU9_A','gb')bio.ncbi_download_accids(term='cas12')# ['VEJ66715.1', 'SUY72866.1', 'SUY81473.1', ...
Package: jswipl
jswipA Jupyter Kernel for SWI-Prolog.Inspired bymadmax2012/SWI-Prolog-Kerneland now usingPySwip.USE WITH CARE!This kernel is only barely tested using jupyter lab on debian linux. If anyone tests it e. g. on plain jupyter and/or windows feel free to open a ticket to report success and/or failure.I have only just started out learning prolog and have not tested this kernel with all language constructs of prolog yet. There might still be problems with more advanced prolog stuff.Usage Notes and LimitationsYou shouldsplit your knowledgebase and your queries into different cells. KB entries (facts and so on) will be retained as long as the kernel is running. This means that if you run a cell containing facts twice the facts will be sent to swipl twice. This will typically not result in errors but in odd outputs when querying the KB.Should you receive bogus output when running queries restart the kernel and make sure you run any cell containing something other than queries only once.Every query must start with?-.Working example:man(socrates).
mortal(X) :- man(X).

?- mortal(socrates).
?- mortal(X).
?- mortal(bob).Will output.true.
X = socrates.
false.Keep in mind that for some queries there are lots of answers. For the kernel to always succeed in a reasonable amount of time the default output limit to any one query is 10 answers. You can influence this limit by the following syntax.?- someQuery(...) {LIMIT}.WhereLIMITis replaced by the maximum number of answers that will be displayed for this query. It is not very smartly parsed (sorry), so there must be no spaces inside the curly braces or in between the closing curly brace and the period.Not like this:{1} .or this{ 1 }.A limit value of-1means no limit. Be careful with this!Supported environmentsOnlypyhton3is supported (anybody still using python2 should really have upgraded by now...) and it was only tested onlinuxas I have no jupyter installation on windows. In theory it should work on windows though.InstallationInstallSWI-Prolog.Install jswiplpython3 -m pip install --upgrade --user jswiplChange directory to your jupyters kernel directory. Typically~/.local/share/jupyter/kernels.mkdir jswipl && cd jswiplInstall kernel spec:wget https://raw.githubusercontent.com/targodan/jupyter-swi-prolog/master/kernel.jsonRestart jupyterProfitUpgradingKeeping up to date is as simple as runningpython3 -m pip install --upgrade --user jswiplfrom time to time.ContributingFeel free to open tickets if something goes wrong or open pull requests. If you open a pull request do open it onto thedevelopbranch. This repository loosely adheres to thegit flow workflow. Themasterbranch is the branch on which only "released" versions are. Anything in development goes into thedevelopbranch.Please do keep in mind that this is just a very small side project and I am unlikely to sink tons of development time into this. However I will try to answer on any issues even if it's just a quick "Yup, would be nice. Please open a pull request someone." and I'll try to handly pull requests quickly.Anyone who's interested in becoming a co-maintainer: open an issue and let me know. :)
Package: jswitch
jswitchCurrently beta and should not be considered stable.InstallInstall from pypi.org using pip:python-mpipinstalljswitchInstall from source by running this from
the root of the source code directory:pythonsetup.pyinstallUsageSimply runjswitchfrom the command line to launch the menu.jswitchOr invoke via Python:python-mjswitchTo use the tool inside PYthon source code:fromjswitchimportJswitchjswitch=Jswitch()jswitch.run()ControlsEscorq: QuitEnter,l, orRight Arrow: ConnectjorDown Arrow: DownkorUp Arrow: Upe: Edit config fileWhen using the Edit (e) command, it tries to use
the editor defined inEDITORenvironment variable,
otherwise attempts to default to a system editor.Source codehttps://github.com/DevDungeon/jswitchAuthorNanoDanonanodano@devdungeon.com
Package: jsw-nx
jsw-nxNext toolkit for python.installationpipinstalljsw-nx-Uusageimportjsw_nxasnx## common methodsnx.includes([1,2,3],2)# => Truenx.includes([1,2,3],5)# => Falsenext core methodsbase/everybase/filterbase/findbase/find_indexbase/flattenbase/foreachbase/forinbase/getbase/includesbase/indexbase/mapbase/reducebase/setbase/somebase/typeruby stylerubify/timesrubify/to_arubify/to_brubify/to_frubify/to_irubify/to_nrubify/to_snext packagesdaysdeep_eachenv_selectfilesizeget_domaingetenvhtml2textis_process_alivemd5paramparse_cookieqsreplace_dict_allsampletmpluniqurljoinnext classesconfigurationsetgetsetsgetssaveupdatedateformatnowcreatefileutilsmkdir_pcdpwdlsmvrmdirtouchcp_risfileisdirrmexistsgbk_to_utf8read_file_contenttargzxzJSONparsestringify
Package: jsw-pillow
jsw-pillowPillow for jsw.installationpipinstalljsw-pillow-UusagewatermarkWatermarkWatermark 水印的基本生成API。# watermarkfromjsw_pillowimportWatermark# watermark - singleim1=Watermark.multiple(source='./__tests__/assets/test.png',mark='js.work',font_size=50,angle=45,position='center',color=(0,255,0,int(255*0.5)),)# watermark - multipleim2=Watermark.multiple(source='./__tests__/assets/test.png',mark='js.work',font_size=50,angle=45,color=(0,255,0,int(255*0.5)),)positionsOnly for single watermark.
Package: jsw-wcc
jsw-wcc(marker.py)为图片添加文字水印
可设置文字大小、颜色、旋转、间隔、透明度installationpipinstalljsw-wcc-Uusage需要 PIL 库pip install Pillowusage: wcc [-h] [-f FILE] [-m MARK] [-o OUT] [-c COLOR] [-s SPACE] [-a ANGLE] [--font-family FONT_FAMILY] [--font-height-crop FONT_HEIGHT_CROP] [--size SIZE]
                 [--opacity OPACITY] [--quality QUALITY]

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  image file path or directory
  -m MARK, --mark MARK  watermark content
  -o OUT, --out OUT     image output directory, default is ./output
  -c COLOR, --color COLOR
                        text color like '#000000', default is #8B8B1B
  -s SPACE, --space SPACE
                        space between watermarks, default is 75
  -a ANGLE, --angle ANGLE
                        rotate angle of watermarks, default is 30
  --font-family FONT_FAMILY
                        font family of text, default is './font/青鸟华光简琥珀.ttf'
                        using font in system just by font file name
                        for example 'PingFang.ttc', which is default installed on macOS
  --font-height-crop FONT_HEIGHT_CROP
                        change watermark font height crop
                        float will be parsed to factor; int will be parsed to value
                        default is '1.2', meaning 1.2 times font size
                        this useful with CJK font, because line height may be higher than size
  --size SIZE           font size of text, default is 50
  --opacity OPACITY     opacity of watermarks, default is 0.15
  --quality QUALITY     quality of output images, default is 90wcc-f./input/test.png-m添加水印