Saravanan666/pypi-org huggingface dataset:
Package: js.wysihtml5
js.wysihtml5IntroductionThis library packageswysihtml5forfanstatic.This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.wysihtml5) are published to some URL.How to use?You can importsimple_wysihtml5fromjs.wysihtml5andneedit where you want these resources to be included on a page:>>> from js.wysihtml5 import simple_wysihtml5
>>> simple_wysihtml5.need()Alternatively you can importadvanced_wysihtml5if you want to use
more advanced parser rules:>>> from js.wysihtml5 import advanced_wysihtml5
>>> advanced_wysihtml5.need()CHANGES0.3.0Initial release.
Package: jsx
Python JSXJSX is a Python package for creating and manipulating HTML components. It is working similar to React.js, but in Python.UsagefromjsximportDiv,H1,P,Component,StyleclassMyComponent(Component):defrender(self):returnDiv(H1("Hello, World!",style=Style(color="#33343c"),),P("Welcome to JSX!"),style=Style(text_align="center"))from.componentsimportMyComponentfromjsx.rendererimportrender@app.get("/")defhello_world():returnrender(MyComponent())Server actionsIt's possible to pass a python function as component props.The current version works only withASGIApp.classPerson(Component):def__init__(self,name:str,age:float):self.age=ageself.name=namedefrender(self):returnForm(Div(f"Update the age for{name}"),Label("Age: ",html_for="age"),Input(type="text",on_change=self.set_age),Button("Submit Age",type="submit"),on_submit=self.save_age)defset_age(self,event_data:JSXChangeEvent):self.age=event_data.valuedefsave_age(self,event_data:JSXSubmitEvent):user=get_user()user.age=self.agesave(user)To call a function on the server include this script in your file<scriptsrc="/_jsx/scripts/main.js"></script>In your ASGI app call themountfunction from thejsx.servermodulefromfastapiimportFastAPIfromfastapi.staticfilesimportStaticFilesfromjsx.serverimportJSXServerapp=FastAPI()jsx_server=JSXServer(cors_allowed_origins="*")app.mount("/_jsx/scripts",StaticFiles(directory=jsx_server.scripts_path()),name="scripts")jsx_server.mount(app,socket_path="/socket.io")You can pass the following config to themountto change the path of all jsx endpoints.jsx_server.mount(app,socket_path="/jsx.io",scripts_path="/static/jsx")The actions usesocket.ioto communicate between server and client.TODOAdd detailed documentationAdd more testsContributingFeel free to open an issue or a pull request.
Package: js.xeditable
js.xeditableIntroductionThis library packagesx-editableforfanstatic. 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.xeditable) are published to some URL.ContactAndrew Mleczko <andrew.mleczko at redturtle.net>RedTurtle Technology,http://www.redturtle.net/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 import xeditable fromjs.xeditableand.needit
where you want these resources to be included on a page:>>> from js.xeditable import bootstrap_editable
>>> bootstrap_editable.need()Render the inclusion:>>> print needed.render()
<script type="text/javascript" src="http://localhost/fanstatic/xeditable/js/bootstrap-editable.js"></script>CHANGES1.4.5 (2013-07-11)initial import [amleczko]
Package: jsxgraph-magic
jsxgraph-magicjsxgraph-magicis an IPython magic wrapper for the famous JavaScript math-sketching packageJSXGraph.jsxgraph-magicenables you to use JSXGraph in Notebook and see the sketching in the output cell.RequirementsA network connection is required to fetch the JavaScript and CSS file for JSXGraph.IPython is required since the magic is the concept of the IPython.IPython alone cannot be much useful. Please tryJupyter LaborJupyter Notebookto edit with the Notebook.InstallationFrom PIP:pipinstalljsxgraph-magicDevelopment install:gitclonehttps://github.com/chunxy/jsxgraph-magic.gitcdjsxgraph-magic
pipinstall-e./UsageAs with usual IPython magic, remember to%load_ext jsxgraph-magicbefore using this magic.This repo contains the cell magic named asjsxgraph. The magic should be used as:%%jsxgraph [-w WIDTH] [-h HEIGHT] id
 <JSXGraph descriptions>whereidis theidof the HTML element to embed the JSXGraph board,widthandheightis the width and height of the board inpxrespectively,<JSXGraph descriptions>is the usual JavaScript code to describe the graph using the JSXGraph library.You may also run the following magic to see the description:%%jsxgraph?A simple example ofFive-circle Theorem(code from JSXGrpah website) will be%%load_ext jsxgraph-magic%%jsxgraph jxgbox -w 400 -h 400
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]});
var p = [], l = [], i = [], c = [], j = [], k;

p[0] = brd.create('point',[-2.5,-3],{name:'',strokeColor:'#7355ff',fillColor:'#7355ff'});
p[1] = brd.create('point',[-0,4],{name:'',strokeColor:'#7355ff',fillColor:'#7355ff'});
p[2] = brd.create('point',[2.5,-3],{name:'',strokeColor:'#7355ff',fillColor:'#7355ff'});
p[3] = brd.create('point',[-4,0],{name:'',strokeColor:'#7355ff',fillColor:'#7355ff'});
p[4] = brd.create('point',[4,0],{name:'',strokeColor:'#7355ff',fillColor:'#7355ff'});

for (k=0;k<5;k++) {
   l[k] = brd.create('segment',[p[k],p[(k+1)%5]],{strokeColor:'black',strokeWidth:1});
}

for (k=0;k<5;k++) {
   i[k] = brd.create('intersection',[l[k],l[(k+2)%5],0],{name:'',strokeColor:'#EAEA00',fillColor:'#EAEA00'});
}

for (k=0;k<5;k++) {
   c[k] = brd.create('circumcircle',[p[k],i[k],i[(k+2)%5]],{strokeColor:'gray', strokeWidth:1, point: {visible: false}});
}
for (k=0;k<5;k++) {
   j[k] = brd.create('intersection',[c[k],c[(k+2)%5],0],{name:'',strokeColor:'#EA0000',fillColor:'#EA0000'});
}

cc = brd.create('circumcircle',[j[0],j[2],j[3]],{strokeColor:'red',strokeWidth:2,point:{strokeColor:'#000000',fillColor:'#000000',size:1}});
brd.update();
Package: jsx-lexer
A JSX lexer for PygmentsInstallation$pipinstalljsx-lexerUsage with SphinxTo use within Sphinx, simply specifyjsxfor yourcode-block:.. code-block:: jsx

    const BlogTitle = ({ children }) => (
      <h3>{children}</h3>
    );
    // class component
    class BlogPost extends React.Component {
      renderTitle(title) {
        return <BlogTitle>{title}</BlogTitle>
      };
      render() {
        return (
        <div className="blog-body">
          {this.renderTitle(this.props.title)}
          <p>{this.props.body}</p>
        </div>
        );
      }
    }Usage with mkdocsFirst, you need to create theCSSfor the highlighting:$pygmentize-Sdefault-fhtml-a.codehilite>code/pygments.cssThen, add the following to yourmkdocs.yml:markdown_extensions:-codehiliteextra_css:[pygments.css]Now, you can usejsxin your code blocks:```jsx
const BlogTitle = ({ children }) => (
  <h3>{children}</h3>
);
// class component
class BlogPost extends React.Component {
  renderTitle(title) {
    return <BlogTitle>{title}</BlogTitle>
  };
  render() {
    return (
    <div className="blog-body">
      {this.renderTitle(this.props.title)}
      <p>{this.props.body}</p>
    </div>
    );
  }
}
```Usage with OverleafFirst, add the minted package in your main file:\usepackage{minted}Then, download thelexer.pyfile from this project, and place it in your root folder in Overleaf.Now, you can use{lexer.py:JsxLexer-x}in front of your minted code blocks:\begin{minted}{lexer.py:JsxLexer -x}const BlogTitle = ({children}) => (
      <h3>{children}</h3>
    );
    // class component
    class BlogPost extends React.Component{renderTitle(title){return <BlogTitle>{title}</BlogTitle>};
      render(){return (
        <div className="blog-body">{this.renderTitle(this.props.title)}<p>{this.props.body}</p>
        </div>
        );}}\end{minted}You can find an example of the lexer in use on Overleaf here:https://www.overleaf.com/read/xvsytqzkvdjb
Package: jsxn
jsxnjsxn is a Python library for JSON objects that use a strict schema. Designed for use with REST APIs that return lists of objects that all have the same attributes.The jsxn object will pragmatically generate a Python class based on a JSON string, Python dictionary, keyword arguments, or an iterable collection of attribute names.fromjsxnimportjsxn# this will create a jsxn class 'dynamic' that has 'schema' and 'key' as attributesinstance=jsxn.dynamic({'schema':100,'key':'value'})# str representations of jsxn instances will be JSONprint(instance)# {"schema": 100, "key": "value"}# jsxn instances can be passed to dictprint(dict(instance))# {'schema': 100, 'key': 'value'}# future references of the class will use the generated classanother=jsxn.dynamic('{"schema":200,"key":"something"}')# previously generated classes can be called without argumentsbuilder=jsxn.dynamic()print(builder)# {"schema": null, "key": null}# attributes can be accessed directlybuilder.schema=300# or by indicesbuilder['key']='populate'print(builder)# {"schema": 300, "key": "populate"}# jsxn instances are callable with JSON stringsbuilder('{"schema":500}')# and keywordsbuilder(key='hello')print(builder)# {"schema": 500, "key": "hello"}# jsxn objects use slots so only attributes defined at creation can be assignedtry:builder.not_defined=TrueexceptAttributeErrorase:print(e)# 'dynamic' object has no attribute 'not_defined'# delete a jsxn class in order to reuse itdeljsxn.dynamic# a jsxn class can be defined with a list of keysinstance=jsxn.dynamic(['attr1','attr2','attr3'])# all the variables will be uninitializedprint(instance)# {"attr1": null, "attr2": null, "attr3": null}# jsxn classes can also be deleted by indicesdeljsxn['dynamic']# it is possible to create a jsxn class that accept nothingempty=jsxn.empty()print(empty)# {}# but it is not very useful...
Package: jsync
JSYNC - Full Data Serialization in JSONInstallationUse:> sudo pip install jsyncor:> sudo easy install jsyncor:> git clone git://github.com/you/jsync-py.git
> cd reparse-py
> sudo make installUsagePython code:import jsync

string = jsync.dump(object)
object = jsync.load(string)Development StatusALPHACommunity#jsync on irc.freenode.netAuthorsIngy dot Net <ingy@ingy.net>Copyrightjsync is Copyright (c) 2010, Ingy dot Netjsync is licensed under the New BSD License. See the LICENSE file.
Package: js.yui
js.yuiIntroductionThis library packagesYUIforfanstatic. It is aware of YUI’s
structure and different modes (normal, minified, debug).This requires integration between your web framework andfanstatic,
and making sure that the original resources (shipped in theresourcesdirectory injs.yui) are published to some URL.js.yui basic testsHere are some basic tests for js.yui.Let’s check the YUI structure by picking out a resource in it:>>> import js.yui
>>> from fanstatic import init_needed
>>> needed = init_needed(base_url='http://localhost')
>>> needed.need(js.yui.fonts)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/fonts/fonts.css" />Let’s try a resource that has a dependency on fonts, namelygrids:>>> needed = init_needed(base_url='http://localhost')
>>> needed.need(js.yui.grids)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/fonts/fonts.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/grids/grids.css" />Let’s need two resources at the same time:>>> needed = init_needed(base_url='http://localhost')
>>> needed.need(js.yui.grids)
>>> needed.need(js.yui.reset)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/fonts/fonts.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/reset/reset.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/grids/grids.css" />Let’s get the same, minified:>>> needed = init_needed(base_url='http://localhost', minified=True)
>>> needed.need(js.yui.grids)
>>> needed.need(js.yui.reset)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/fonts/fonts-min.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/reset/reset-min.css" />
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/grids/grids-min.css" />Now let’s try to see consolidation: we include grids and reset at the
same time. Since this time we enable rolling up, we expect to see the
rollupreset-fonts-grids:>>> needed = init_needed(
...     base_url='http://localhost', rollup=True)
>>> needed.need(js.yui.grids)
>>> needed.need(js.yui.reset)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/reset-fonts-grids/reset-fonts-grids.css" />Requesting minification has no effect on rollups, as the original
rollup is already minified:>>> needed = init_needed(
...     base_url='http://localhost', rollup=True, minified=True)
>>> needed.need(js.yui.grids)
>>> needed.need(js.yui.reset)
>>> print needed.render()
<link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/yui/reset-fonts-grids/reset-fonts-grids.css" />CHANGES2.8.2-1 (2011-04-13)Update to fanstatic 0.11.1.No longer list the resources it self as it’s own minified version.2.8.2 (2011-01-07)Rewrotehurry.yuito usefanstaticinstead ofhurry.resource.Use YUI version 2.8.2.
Package: jt64common
JTSDK64-Tools ( jt64common )Application DataPackagejt64commonVersion0.0.24TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inBeta, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionCommon utilities / functions for use with JTSDK64 Tools Python Scripts.
Currently, it only supports Windows. Linux flavors will be added in future
releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a console, and type the following:# For JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Install command:pipinstalljt64commonUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64common-UUsageProvides:CommonutilitiesforusewithJTSDK64ToolsPythonScriptsUsage:NonebyusersUninstallOpen a condole, and type the following:# For JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64common
Package: jt64config
JTSDK64-Tools ( jt64config )Application DataPackagejt64configVersion0.0.22TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inProduction, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionSimplePythonscript that sets various configuration options associated
withJTSDK64-Tools. Currently, it only supports Windows. Linux flavors will
be added in future releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a condole, and type the following:# JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Install command:pipinstalljt64configUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64config-UUsageIntheconsole,type:jt64configusage:jt64config.py[-h][+a][-a][+c][-c][+hc][-hc][+q][-q][+r][-r][+s][-s][+u][-u][+d][-d][-l][-od][-status][-v]JTSDK64ToolsConfigurationoptionalarguments:-h,--helpshowthishelpmessageandexit+aenableautorun-adisableautorun+cenableclean-cdisableclean+hcenablehamlibclean-hcdisablehamlibclean+qenablequietmode-qdisablequietmode+renablereconfigure-rdisablereconfigure+senableseparate-sdisableseparate+uenableunixtools-udisableunixtools+d,+defaultenabledefaultitemset-d,-defaultdisabledefaultitemset-l,--listlistsupportedoptions-od,--descriptionprintlongdescriptions-status,--statusdisplayoptionstatus-v,--versiondisplayapplicationversionUninstallThis action applies only to those that installedjt64configusingpip.# For JTSDK64-Tools, activate jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64config
Package: jt64env
JTSDK64-Tools ( jt64env )Application DataPackagejt64envVersion0.0.22TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inBeta, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionSimplePythonscript that prints various environment variables associated
withJTSDK64-Tools. Currently, it only supports Windows. Linux flavors will
be added in future releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a condole, and type the following:# JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Install command:pipinstalljt64envUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64env-UUsageIntheconsole,type:jt64envListsallavailableJTSDK-ToolsEnvironmentVariablesoptionalarguments:-h,--helpshowthishelpmessageandexit-v,--versiondisplaymoduleversionUninstallThis action applies only to those that installedjt64envusingpip.# For JTSDK64-Tools, activate jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64env
Package: jt64gentc
JTSDK64-Tools ( jt64gentc )Application DataPackagejt64gentcVersion0.0.25TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inBeta, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionSimplePythonscript that generates QT Tool Chain files based on a list of
supported versions. Currently, it only supports Windows. Linux flavors will be
added in future releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Install commandpipinstalljt64gentcUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64gentc-UUsageIntheconsole,type:jt64envGeneratesToolChainfilesbasedonsupportedQTversions.Createdfilesareplacedinthe`JTSDK64-Tool\tools\tcfiles`directory.optionalarguments:-h,--helpshowthishelpmessageandexit-s,--supportedlistsupportedQTversions-v,--versiondisplaymoduleversionUninstallOpen a condole, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64gentc
Package: jt64setqt
JTSDK64-Tools ( jt64setqt )Application DataPackagejt64setqtVersion0.0.22TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inBeta, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionSimplePythonscript to set the Qt version associated withJTSDK64-Tools.
Currently, it only supports Windows. Linux flavors will be added in future
releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a condole, and type the following:# JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Install command:pipinstalljt64setqtUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64setqt-UUsageIntheconsole,type:jt64setqtSettheQtversionforusewithintheJTSDK64-ToolsEnvironmentoptionalarguments:NoneUninstallThis action applies only to those that installedjt64setqtusingpip.# For JTSDK64-Tools, activate jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64setqt
Package: jt64version
JTSDK64-Tools ( jt64version )Application DataPackagejt64versionVersion0.0.22TopicCommunications, Ham RadioDevelopment Status5 - Production/StableDistributionsWindows, LinuxArchx86-64PythonVersion >= 3.5DependenciesStandard Python Library, colorconsoleVirtual EnvironmentMiniconda PythonDevelopment StatusThis package is inBeta, and was tested usingMiniconda Pythonin a default virtual environment e.g. (conda create -n jtpy python=3).DescriptionSimplePythonscript to print application versions associated withJTSDK64-Tools. Currently, it only supports Windows. Linux flavors will be
added in future releases.RequirementsAnyPythonversion >= 3.5, virtual or native installationNo special modules or distributions are required.InstallationThis package resides in the mainPyPi Productionrepository and can be
installed usingpip.Open a console, and type the following:# For JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Install command:pipinstalljt64versionUpgrade PackageOpen a console, and type the following:# For JTSDK64-Tools users, active jtpy firstcondaactivatejtpy# Upgrade the packagepipinstalljt64version-UUsageIntheconsole,type:jt64versionPrintApplicationVersionsassociatedwith`JTSDK64-Tools`Optionalarguments:NoneThis action applies only to those that installedjt64versionusingpip.# For JTSDK64-Tools users, activate jtpy firstcondaactivatejtpy# Uninstall commandpipuninstalljt64version
Package: jtac
JTACStart, stop and restart your arma servers just with cliFree software: MIT licenseDocumentation:https://arma-serveradmin.readthedocs.io.Installationpip install jtacFeaturesUse commands to start, stop, restart and change missions.How to Usejtac generatewill create servers.json with all the parameters of your currently running servers,
so they can be used later. JTAC will try to operate your servers based on the port stored when you generated servers.json.jtac start <port>will find a server in servers.json that used that port and start a new server using its parameters.jtac kill <port>will stop a running server using the last PID registered with that port. Everytime you start a server with JTAC, JTAC will remeber the PID.jtac restart <port>will retart your server using the last parameters registered.To Dojtac radio <command>a native way to remotely send commands to your server box.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-11-22)First release on PyPI.