Saravanan666/pypi-org huggingface dataset:
Package: jsonwspclient
jsonwspclientwants to be a simple and, i hope, flexible python client for JSON-WSP services.
It is designed for make easy to call services methods and to access to response info and attachments.JsonWspClientis based on pythonRequestsand uses theSession object.
So allows you to persist certain parameters and the cookies across requests.It supports alsoevents_handling,response_processing,params_mappingandfault_handling.
So you can have a good control over your scripts flow.Notejsonwspclientis designed to be used withLadon.
and it is based on the original ladon’sjsonwspclient.However it should be flexible enough to be used with other JSON-WSP services.SeeJsonWspClient docs.NoteThis project has been set up using PyScaffold 2.5. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: jsonxmlconverter
=================================JSON XML CONVERTER=================================JSONXMLCONVERTER is a python module to read json files and created xml filesout of it.Typical usage looks like this:#!/usr/bin/env pythonfrom jsonxmlconverter import jsonxmlconverterinputfile = "1.json"outputfile = "1.xml"j = jsonxmlconverter(inputfile)out = open(outputfile, 'w')j.setIndent("\t") # set indentation to "\t"j.generateXMLFile(outputfile)-------------------------------------------------------------------------Input file(1.json):{"glossary": {"title": "example glossary","GlossDiv": {"title": "S","GlossList": {"GlossEntry": {"ID": "SGML","SortAs": "SGML","GlossTerm": "Standard Generalized Markup Language","Acronym": "SGML","Abbrev": "ISO 8879:1986","GlossDef": {"para": "A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso": ["GML", "XML"]},"GlossSee": "markup"}}}}}-------------------------------------------------------------------------Output file(1.xml):<glossary><GlossDiv><GlossList><GlossEntry><GlossDef><GlossSeeAlso>GML</GlossSeeAlso><GlossSeeAlso>XML</GlossSeeAlso><para>A meta-markup language, used to create markup languages such as DocBook.</para></GlossDef><GlossSee>markup</GlossSee><Acronym>SGML</Acronym><GlossTerm>Standard Generalized Markup Language</GlossTerm><Abbrev>ISO 8879:1986</Abbrev><SortAs>SGML</SortAs><ID>SGML</ID></GlossEntry></GlossList><title>S</title></GlossDiv><title>example glossary</title></glossary>
Package: jsonxs
JSONxs is a Python library that uses a path expression string to get and
set values in JSON and Python datastructures. It’s slightly similar to
JSONPath, but supports only simpler expressions and allows
modifications.JSONxs is safe to use with untrusted input.ExamplesGiven the folowing datastructure:d = {
  'feed': {
    'id': 'my_feed',
    'url': 'http://example.com/feed.rss',
    'tags': ['devel', 'example', 'python'],
    'short.desc': 'A feed',
  }
}We can get, set and delete values from the stucture.jsonxs(d, 'feed.id')                                  # Get the 'id' field: 'my_feed'
jsonxs(d, 'feed.tags')                                # Get the list of tags.
jsonxs(d, 'feed.tags[-1]')                            # Get the last item in the 'tags' list: 'python'
jsonxs(d, 'feed.short\.desc')                         # Escape special char
jsonxs(d, 'feed.long\.desc', default='N/A')           # Return default when key not found
jsonxs(d, 'feed.id', ACTION_SET, 'your_feed')         # Set feed id to 'your_feed'
jsonxs(d, 'feed.tags[-1]', ACTION_SET, 'javascript')  # Replace 'python' with 'javascript'
jsonxs(d, 'feed.tags[0]', ACTION_DEL)                 # Delete the first tag
jsonxs(d, 'feed.url', ACTION_DEL)                     # Delete the 'url' key from a dict
jsonxs(d, 'feed.tags', ACTION_APPEND, 'programming')  # Append 'programming' to tags
jsonxs(d, 'feed.tags[1]', ACTION_INSERT, 'tech')      # Insert 'tech' at pos 1 in tags
jsonxs(d, 'feed.author', ACTION_SET, 'Ferry Boender') # Create new key/string value in dict
jsonxs(d, 'feed.details', ACTION_MKDICT)              # Create new key/dict value in dict
jsonxs(d, 'feed.details', ACTION_MKLIST)              # Create new key/list value in dictInstallation and usageTo install:pip install jsonxsTo use:import jsonxs

data = {'foo': 1}
jsonxs.jsonxs(data, 'bar', jsonxs.ACTION_SET, 2)
print data  # {'foo': 1, 'bar': 2}LicenseJSONxs is licensed under the MIT license:Copyright (c) 2015 Ferry Boender (ferry.boender@gmail.com)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: jsoup
JsoupJsoup is a python library that helps to parse and build HTML/XML structures using JSON format.InstallationUse the package manager pip to install jsoup.pip install jsoupUsagefromjsoupimportJsonTreeBuilderfrombs4importBeautifulSoupjson={"body":{"h1":{"attrs":{"class":"heading1"},"text":"Hello World"},"p":["this ","is ","a ","test 1<2 && 2>1",{"comment":["this is a comment"]}],"comment":"this is also a comment","br":None,"form":{"attrs":{"method":"post"},"input":{"attrs":{"type":"text","name":"username"}}}}}soup=BeautifulSoup(json,builder=JsonTreeBuilder)print(soup.prettify())Output<body><h1class="heading1">Hello World</h1><p>this</p><p>is</p><p>a</p><p>test 1&lt;2&amp;&amp;2&gt;1</p><p><!--this is a comment--></p><!--this is also a comment--><br/><formmethod="post"><inputname="username"type="text"/></form></body>ContributingWe welcome contributions tojsoup. To get started, follow these steps:Fork the repository and clone it to your local machine.Create a new branch for your changes.Make your changes and write tests to cover them.Ensure all tests pass by runningpython -m unittest discover -v.Push your changes to your fork and create a pull request.We appreciate all contributions and thank all the contributors!
Package: js.placeholders
js.placeholdersIntroductionThis library packagesPlaceholders.jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.placeholders) are published to some URL.How to use?You can importplaceholdersfromjs.placeholdersandneedit where you want
these resources to be included on a page:>>> from js.placeholders import placeholders
>>> placeholders.need()CHANGES3.0.2 (2014-10-22)Initial release.
Package: jspline
jsplineMulti-dimensional parameterized spline curves (snappiness parameter gives uniform cubic B-splines, four-point subdivision splines, uniform quintic B-splines, and everything in-between)DescriptionJ-Splines are awesome: they're a class of spline curves that take a shape parameter, s. Setting s=1 yields uniform cubic B-spline curves, s=0 gives four-point subdivision curves, s=0.5 are uniform quintic B-splines - and more. "s" basically governs the "snappiness" of the curve.jspline, lets you choose any combination of J-Spline parameters for any number of input arrays, with a range of different starting and ending schemes (eg: open or closed loops). Use it for 2D drawing, 3D graphics, or any other kind of interpolation you might need.See also my CPAN perl module that does the same:https://metacpan.org/pod/Math::JSplineSynopsisfromjsplineimportjsplineinterpolated_results=jspline.make(subdivision_level,a,b,end_type,[xarray,...])wheresubdivision_level determines how many points to interpolate (1 doubles $#x in the above example). 
when a = b, this is the "s" paramater from the description (and the math paper below)
end_type is how you want to deal with the start and end points:
      3=join them up (loop). 2=tangent clamp, 1=end clamp, 0=simple join (refer "see also" below)
[xarray] any number of array references come next, ex [xarray,yarray,zarray]Examplefromjsplineimportjsplinejs=jspline.make(1,0,0,0,[[1,2,4,5]])# returns 1,2,3,4,5# orx=[50,250,250,50]y=[50,50,250,250]js=jspline.make(1,0,0,0,[x,y])# Draws one of the the belowSee Alsohttp://faculty.cs.tamu.edu/schaefer/research/js.pdffor details.InstallationNormal installationpipinstalljsplineDevelopment installationgitclonehttps://github.com/gitcnd/jspline.gitcdjspline
pipinstall--editable.Author noteBe sure to check outAirfoil Tools, a Fusion 360 plugin, for which this module was written.Change log[1.0.0] - 2020-05-02Cloned a quality github python module, and changed it to jspline :-)Followed instructions here:https://medium.com/@thucnc/how-to-publish-your-own-python-package-to-pypi-4318868210f9[1.0.1] - 2020-05-02Added synopsis, examples, and references to the Doc[1.0.2] - 2020-05-02Improved doc.[1.0.3] - 2020-05-04Correct endpoint clamping to create closed output shapes when input shape was closed
Package: jspp
Python package(JSPP) created by Jhin Scripter.[WIP] / BETA| Jhin Scripter Python Package (JSPP)Discord: Jhin Scripter#0922Youtube:https://www.youtube.com/channel/UCkyQbVJRI_38yB77eiSHBhwTwitter: @JhinScripterYou will be able to report any errors or help improve the package on my discord (Just DM).
Package: js_project
This package provides a pcreate scaffold for creating a
[Fanstatic](http://fanstatic.org) js.* library project.JS Project uses the Pyramid Scaffold pcreate command to create a
barebones python project which provices a Fanstatic js.* resource.Usage$ pcreate -s js_project <project_name>The new project will contain dummy css and js files linked as Fanstatic
resources. These resources are ready to be ‘need()’ed (though of course
they are empty.v0.0, 12.01.12 – Forked pyramid_foundation scaffold
v0.1, 12.01.12 – Initial release - functional scaffold
v0.1.2, 12.01.12 – Minor changes - tested generated project with pypi
Package: js.py
js.pyA library that extends Python base classes with their JavaScript default methods.Installationpip3 install js.pyorpip3 install --user js.pyWhy js.py?js.py makes your JavaScript code compatible in Python with minor changes.Imagine this JS code:varthis=require("a-lib");varnums=[];nums.length=10;nums.fill("Foobar");console.log(nums);Using js.py, it looks like this:importjsthis=require("a-lib");nums=[];nums.length=10;nums.fill("Foobar");console.log(nums);As seen above, only minor changes are required for the code for it to function in Python.Is it pythonic?No. Not at all. But who cares? It works and it's for fun!
Package: js.q
js.qIntroductionThis library packagesqforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.q) 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 importqfromjs.qandneedit where you want
these resources to be included on a page:>>> from js.q import q
>>> q.need()Render the inclusion:>>> print needed.render()
<script type="text/javascript" src="http://localhost/fanstatic/q/q.js"></script>CHANGES1.0.1 (2014-09-02)Initial release.
Package: jsql-django
jsql-djangoA JSQL Django plugin for executing hashed queriesGetting StartedInstall JSQL Django pluginpipinstalljsql-djangoInclude JSQL Django plugin views to yoururls.pyfileImport viewsfromjsql.viewimportSelectView,InsertView,UpdateView,DeleteViewDescribe urlsurl('select',SelectView.as_view()),url('insert',InsertView.as_view()),url('update',UpdateView.as_view()),url('delete',DeleteView.as_view()),Include ApiKey and MemberKey in yoursettings.pyfileAPI_KEY='your_api_key'MEMBER_KEY='your_member_key'
Package: jsqlib
jsqlibJSON to SQL query generator.Builds SQL queries from pre-designed JSON structures.InstallationOS X & Linux & Windows:pipinstalljsqlibUsage examplefromjsqlibimportQueryjson="""{"query": {"select": [{"eval": 1}]}}"""query=Query(json)assertquery.sql=='select 1'schema='{}'query=Query(json,schema=schema)# optional schema to validate the queryquery.validate()# explicit query validationDevelopment setupcoverage$poetryrunpytest--covformat$poetryrunblackjsqlib-Slint$poetryrunflakehelllinttype checking$poetryrunpyreRelease History0.7a0ADD:<~~>unquoting wrapper support (#29)0.6a0CHANGE: validating the rendered json query against the provided schema without any changes (#26)0.5a0FIX: local variable 'data' referenced before assignment in Builder._update (#18)ADD: support for a 'name' attribute in JSON 'select' definition (#20)ADD: validating JSON query against a schema if any (#19)0.4a0FIX:order byimplicitascconstruct (#16)CHANGE: library no longer modifies the original json query (#15)ADD:__version__package attribute (#14)0.3a0ADD:not like,deleteusingconstructs (#12, #13)0.2a0ADD: dialect based stringification (#11)ADD: custom builder support (#10)0.1a0initial alpha-release0.0.1wipMetapymancer@gmail.com(Polyanalitika LLC)https://gitlab.com/ru-r5/jsqlibLicenseThis Source Code Form is subject to the terms of the Mozilla PublicLicense, v. 2.0. If a copy of the MPL was not distributed with thisfile, You can obtain one athttps://mozilla.org/MPL/2.0/.ContributingFork it (https://gitlab.com/ru-r5/jsqlib/fork)Create your feature branch (git checkout -b feature/foo)Commit your changes (git commit -am 'Add some foo')Push to the branch (git push origin feature/foo)Create a new Pull Request
Package: js.qrious
IntroductionThis library packagesqriousforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.qrious) are published to some URL.How to use?You can importqriousfromjs.qriousandneedit where you want
these resources to be included on a page:>>> from js.qrious import qrious
>>> qrious.need()CHANGES4.0.2 (2017-08-18)Initial packaging of qrious as a fanstatic package.
Package: js.raphael
js.raphaelIntroductionThis library packagesRaphaelforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.raphael) are published to some URL.How to use?You can importraphaelfromjs.raphaelandneedit where you want
these resources to be included on a page:>>> from js.raphael import raphael
>>> raphael.need()CHANGES2.1.0-1Fix package metadata.Remove unneeded dependencies.2.1.0Upgrade to 2.1.02.0.2Upgrade to 2.0.2.Include non minified version.2.0.1Initial release.
Package: js.raven
js.ravenIntroductionThis library packagesraven-jsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.raven) are published to some URL.How to use?You can importravenfromjs.ravenandneedit where you want
these resources to be included on a page:>>> from js.raven import raven
>>> raven.need()CHANGES3.24.2 (2018-04-23)Update to 3.24.21.1.20 (2018-01-05)Drop json2, it is time to leave IE8 behind.1.1.19 (2015-08-17)Update to 1.1.19.1.1.1 (2013-11-26)Update to 1.1.1.1.1.0 (2013-11-15)Update to 1.1.01.0.8 (2013-10-18)Update to 1.0.8 and include the source map file.1.0.7-1 (2013-03-13)Include JSON2 for pre-version-8 internet explorers.1.0.7 (2013-03-11)Initial release.
Package: jsre
This is a general purpose regular expression matching engine, with
particularly good performance for searching large byte buffers, for example
large files or raw disk images, using multiple encodings. It was writted to
solve perfomance issues in big data extraction tasks including artefact discovery
for digital forensics.jsre is:Fast:When matching complex patterns or a large number of keywords on large
input buffers it is substantially faster than current regular expression
engines. jsre is designed to scale well in the face of complexity: its
relative performance improves with increasing pattern complexity.Unicode Encoding Neutral:A regular expression is written as a string,
the user separately specifies what encodings are to be searched when the
expression is compiled. All Python codecs are supported and the capability
provided is compilant with Unicode regular expression level 1 requirements.Deployable:The compiled matching engine has a small memory
footprint limited to below 10MByte, allowing processing to be easily
distributed across multiple CPUs.Portable:The software uses a single Python type extension and only
standard C and Python libraries. Installs withpipon Windows or Linux.jsre includes additional functions that are specific to its intended
application, they include alternative expression indexing, the processing of overlapped
buffers and the specification of stride and offset for search anchors
(e.g. for searching at fixed positions in disk sectors).Version 1.1 is based on a new library for managing character classes and associated
set operations. This has significantly improved compilation speeds, allowing the
use of this module in more geneal purpos re applications.As far as possible jsre provides a similar interface to the standard Python
re module. See documentation examples for an introduction to the module
and its application-specific features. This documentation assumes that the reader
is familiar with regular expressions and their use; newcomers may find it
easier to first read the Python re documentation and tutorials.Contact:howard.chivers@york.ac.uk
Package: jsreport
A simple tool to pull basic reporting data out of JustServe
(https://www.justserve.org/).BackgroundJustServe is a wonderful resource to bring volunteers and service organizations
together. For those that are responsible for training and awareness, however,
the reporting tools are…lacking. How is one to measure whether more projects
are being added to the site? This script aims to help answer that question.What It DoesThejsreportmodule contains code that uses Selenium to interact with the
JustServe website to retrieve data, typically for reporting purposes.js-zipcode.pyis a script that interacts with thejsreportmodule
to tell you how many projects are listed near a specific zipcode. You can
specify the zipcode and search radius, along with some technical details.InstallationFirst, I highly recommend using avirtualenv.The preferred method of installation is to usepip:$ pip install jsreportpipwill install thejsreportpackage to the proper location and it
will install thejs-zipcode.pyscript to the properbinlocation on
your PATH.pipwill also install the selenium package, if it is not already installed.The default web driver for Selenium is Firefox. If you want to use one of the
other web drivers, you must install them to your system yourself. You may
consider installing thechromedriver-installerpackage usingpip.
Information on the PhantomJS web driver can be found athttp://phantomjs.org/.Script UsageThis usage is available, as demonstrated below, from the command-line:$ js-zipcode.py --help
usage: js-zipcode.py [-h] [-r {5,10,15,25,50,75}]
                   [-d {firefox,chrome,phantomjs}] [-o {human,csv,json}]
                   zipcode

Retrieve the number of JustServe projects at a zipcode.

positional arguments:
  zipcode               The five digit zipcode at the center of the search
                        radius.

optional arguments:
  -h, --help            show this help message and exit
  -r {5,10,15,25,50,75}, --radius {5,10,15,25,50,75}
                        The search radius, in miles. Defaults to 5.
  -d {firefox,chrome,phantomjs}, --driver {firefox,chrome,phantomjs}
                        The WebDriver to use. Defaults to firefox.
  -o {human,csv,json}, --output {human,csv,json}
                        The output format. Defaults to human-readable.ExamplesExample of runningjs-zipcodeto pull data:$ js-zipcode.py 20500
6 projects within a 5 mile radius of 20500
$ js-zipcode.py -r 10 20500
29 projects within a 10 mile radius of 20500
$ js-zipcode.py -r 15 20500
48 projects within a 15 mile radius of 20500
$ js-zipcode.py -r 25 20500
70 projects within a 25 mile radius of 20500
$ js-zipcode.py -r 50 20500
96 projects within a 50 mile radius of 20500
$ js-zipcode.py -r 75 20500
106 projects within a 75 mile radius of 20500Other Notes/DisclaimersThis is a Python script, tested with version 2.7.11, but it should work with
othersPlease note: I do not provide technical support for environment setup; you
are on your own for that.I will respond to pull requests for bug fixes, though.
Package: js.respond
js.respondIntroductionThis library packagesRespond.jsforFanstatic.This requires integration between your web framework andFanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.respond) are published to some URL.PackagingThe packaging is stored on GitHub athttps://github.com/davidjb/js.respond. If you happen to come
across a bug that corresponds topackaging, then please report it here. Pull
requests are more than welcome if you’re fixing something yourself – the more
help the better!Any other bugs that relate to the library itself should be directed to the
original developers.Updating this packageIn order to obtain a newer version of this library, do the following:git clone git://github.com/davidjb/js.respond.git
cd js.respond
pushd js/respond/resources/
wget https://github.com/scottjehl/Respond/raw/master/respond.src.js -O respond.src.js
wget https://github.com/scottjehl/Respond/raw/master/respond.min.js -O respond.min.js
#Edit version and change log
git commit -a -m "Updated to git version v1.2.0"
git pushIf you’re doing this out in your own fork of the GitHub repository, then send
through a pull request so everyone can benefit.Using this libraryYou can importrespondfromjs.respondandneedit where you want
these resources to be included on a page:>>> from js.respond import respond
>>> respond.need()CHANGES1.2.0 (2013-03-11)Initial Fanstatic packaging.
[davidjb]
Package: js.responsiveiframe
js.responsiveiframeIntroductionThis library packagesresponsiveiframeforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.responsiveiframe) are published to some URL.How to use?You can importresponsiveiframefromjs.responsiveiframeandneedit where you want
these resources to be included on a page:>>> from js.responsiveiframe import responsiveiframe
>>> responsiveiframe.need()CHANGES1.0 (2015-08-03)Initial release.
Package: js.rivets
js.rivetsIntroductionThis library packagesRivetsforfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.rivets) are published to some URL.How to use?You can importrivetsfromjs.rivetsandneedit where you want these resources to be included on a page:>>> from js.rivets import rivets
>>> rivets.need()CHANGES0.4.4 (2012-11-28)Initial release.