Saravanan666/pypi-org huggingface dataset:
Package: nxp
NXP: Natural eXpression ParsingNXP is a parsing library written in Python 3, inspired bypyparsingandMicrosoft Monarch.It allows users to do two things:Define text patterns by combining Python objects, instead of writing complicated regular expressions.Define and parse complex languages, with a simple dictionary!Is it really that simple?Don't take my word for it; see for yourself with the examples below, and the notebooks in theexamples/folder. :blush:ExamplesMatching HTML tagsThis is a quick example to show how complex expressions are created in NXP, by combining Python objects.fromnxpimportSeq,String,Either,Any,make_cursor# property name, optionally assigned a value between quotesattr=Seq([r'\s+(\w+)',Seq([r'\s*=\s*',String()])],skip=1)# open/close tags, or self-closed tagtag=Either(Seq([r'<(\w+)',Any(attr),r'\s*/?>']),r'</(\w+)\s*>')# create cursor and find matchescur=make_cursor('''Not <a><tag</a><input type="checkbox" value="42" checked><img src="foo/bar.jpg" />''')formintag.find(cur,multi=True):print(m.insitu(cur.buffer))output:Not <a><tag</a>
    ---        
Not <a><tag</a>
           ----
<input type="checkbox" value="42" checked>
------------------------------------------
<img src="foo/bar.jpg" />
-------------------------Parsing LaTeX-like commandsThis is a quick example to illustrate parsing with NXP. We want to parse (very simplified) LaTeX-like patterns\command{ body }in the filefoo.txt:Inspirational quote:
\quote{
    Time you enjoy wasting is \it{not} wasted time.
}

Command without a body \command, or with an empty one \command{}.This is how to define a language to match such patterns in NXP:importnxp# define these rules separately so they can be re-usedbackslash=[r'\\\\',('rep','\\')]command=[r'\\(\w+)',('open','command'),('tag','cmd')]# create a parserparser=nxp.make_parser({'lang':{'main':[backslash,# replace escaped backslashescommand# open "command" scope if we find something like '\word'],'command':{# the "command" scope'main':[[r'\{',('open','command.body'),('tag','body')],# open "body" subscope if command is followed by '{'[None,'close']# otherwise close the scope],'body':[# the "command.body" scopebackslash,[r'\\\{',('rep','{')],[r'\\\}',('rep','}')],# deal with escapes before looking for a nested commandcommand,# look for nested commands[r'\}',('tag','/body'),('close',2)]# the command ends when the body ends: close both scopes]}}})print(nxp.parsefile(parser,'foo.txt'))and the output is a simple AST:Scope("main"): 3 element(s)
	[0] Scope("command"): 2 element(s)
		[0] (1, 0) - (1, 6) \quote
		[1] Scope("command.body"): 3 element(s)
			[0] (1, 6) - (1, 7) {
			[1] Scope("command"): 2 element(s)
				[0] (2, 30) - (2, 33) \it
				[1] Scope("command.body"): 2 element(s)
					[0] (2, 33) - (2, 34) {
					[1] (2, 37) - (2, 38) }
			[2] (3, 0) - (3, 1) }
	[1] Scope("command"): 1 element(s)
		[0] (5, 23) - (5, 31) \command
	[2] Scope("command"): 2 element(s)
		[0] (5, 54) - (5, 62) \command
		[1] Scope("command.body"): 2 element(s)
			[0] (5, 62) - (5, 63) {
			[1] (5, 63) - (5, 64) }
Package: nx-parallel
nx-parallelnx-parallel is a NetworkX backend plugin that uses joblib and multiprocessing for parallelization. This project aims to provide parallelized implementations of various NetworkX functions to improve performance.Featuresnx-parallel provides parallelized implementations for the following NetworkX functions:├── centrality
│   ├── betweenness_centrality
│   ├── closeness_vitality
├── tournament
│   ├── is_reachable
├── efficiency_measures
│   ├── local_efficiencySee the/timingfolder for more heatmaps and code for heatmap generation!Development installTo setup a local development:Fork this repository.Clone the forked repository locally.git clone git@github.com:<your_username>/networkx.gitCreate a fresh conda/mamba virtualenv and install the dependenciespip install -e ".[developer]"Install pre-commit actions that will run the linters before making a commitpre-commit installUsageHere's an example of how to use nx-parallel:In[1]:importnetworkxasnx;importnx_parallelIn[2]:G=nx.path_graph(4)In[3]:H=nx_parallel.ParallelGraph(G)In[4]:nx.betweenness_centrality(H)Out[4]:{0:0.0,1:0.6666666666666666,2:0.6666666666666666,3:0.0}TestingTo run tests for the project, use the following command:PYTHONPATH=. \
NETWORKX_GRAPH_CONVERT=parallel \
NETWORKX_TEST_BACKEND=parallel \
NETWORKX_FALLBACK_TO_NX=True \
    pytest --pyargs networkx "$@"ContributingWe'd love to have you contribute to nx-parallel! Here are some guidelines on how to do that:Issues:Feel free to open issues for any problems you face, or for new features you'd like to see implemented.Pull requests:If you'd like to implement a feature or fix a bug yourself, we'd be happy to review a pull request. Please make sure to explain the changes you made in the pull request description.Additional InformationThis project is part of the larger NetworkX project. If you're interested in contributing to NetworkX, you can find more information in theNetworkX contributing guidelines.
Package: nxp-dlagent
nxp-dlagentNXPkeeps certain documentation and software behind a login wall.This tool allows downloading such material in an automated fashion.How To UseThe URL scheme is:https://www.nxp.com/webapp/Download?colCode={col_code}&appType=license,
wherecol_codecan be, e.g.,UM11126,blhost_2.6.2orelftosb_5.6.19.Command:nxp-dl <col_code>.Output: the upstream file, e.g.UM11126.pdf, orblhost_2.6.2.zip.The script prompts for username and password of an existing NXP account.Alternatively, the environment variablesNXP_USERNAMEandNXP_PASSWORDcan be set.Install / Requirementspip install .should work, if you have the requirements:https://pypi.org/project/selenium/https://github.com/mozilla/geckodriver/LicenseThe NXP material has properietary licensing, please read the actual license prompt!nxp-dlagentitself is dual-licensed under bothApache License, Version 2.0andMIT License.Any contribution you submit for inclusion in the work (as defined in the Apache-2.0 license, e.g., as GitHub pull request) shall be dual-licensed as above, without any additional terms or conditions.
Package: nxp-lite-tools
This is an abstract bundle of lite tools, follow next to install detail tools, and usenxp_lite_toolscommand to get this help.1. Power performance data submitterInstall:$ pip install -UI nxp_lite_tools[pp]Usage:$ nxp_pp_submit -h
usage: nxp_pp_submit [-h] -c CONFIG -r RESULT [-d]

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        release config
  -r RESULT, --result RESULT
                        result file
  -d, --debug           modeDesc:-c CONFIG: put the path of config.ini
-r RESULT: if result file specified, submit this single result
           if result folder specified, iterate all .json and .csv in the folder, then submit all results
-d       : set this flag if submit results to staging server2. Lf history data submitterInstall:$ pip install -UI nxp_lite_tools[lf]Import example:from nxp_lf import DbModel
db_model = DbModel("Linux_Factory_On_Demand")3. NPI dashboard data submitterInstall:$ pip install -UI nxp_lite_tools[pb]Usage:$ nxp_pb_submit ...4. Customized lava docker slave install scriptInstall:$ pip install -UI nxp_lite_tools[ls]Usage:$ lava_docker_slave
Package: nxpy-ccase
This project needs a new maintainer. I only ever managed to test it against a now ancient
ClearCase 7.1 LT installation, to which I’m likely to lose access in a not too distant future.Nxpy Ccaseis a wrapper for the Clear Casecleartoolcommand line utility that allows the
invocation of Clear Case UCM commands as Python methods.It is being developed with Python 3.7 so as to be compatible with Python 2.7. Tests are
run also with 3.4, 3.5 and 3.6.You can install the library from PyPI:pip install nxpy-ccaseThe library documentation is available onReadTheDocs.Originally the library was part of the Nxpy project and resided onSourceForge.
Package: nxpydocs
nxpydocsAutomated NXOS Business Ready Documents from th guestshell PythonSetting up guestshellEnable guestshellswitch# guestshell enableWait until the guestshell becomes activeResize guestshell diskspaceguestshell resize rootfs 2000guestshell resize memory 2688guesthshell rebootUpdate DNS[cisco@guestshell ~]sudo vi /etc/resolv.confnameserver <dns server IP address>domain <domain that matches NX-OS configured domain>Install Git[cisco@guestshell ~]sudo yum install gitConigure Git[cisco@guestshell ~]git config --global user.name "Your Name Here"[cisco@guestshell ~]git config --global user.email johndoe@example.com[cisco@guestshell ~]git config --global push.default matchingInstall the application[cisco@guestshell ~]pip install nxpydocsRun nxpydocsGet HelpYou can add --help to see the help information[cisco@guestshell ~]nxpydocs --helpRun nxpydocs interactivelyYou can simply run nxpydocs and it will prompt you for the required input values[cisco@guestshell ~]nxpydocs
Package: nxpydot
NetworkX can use pydot for GraphViz support, but pydot doesn’t support
Python 3.This package creates a wrapper around pydotplus, a Python 3 compatible
version of pydot, making it look like pydot.Note that nxpydot installs top level modules “pydot” and “dot_parser”,
which clash with pydot. So don’t install this if you have pydot.
Package: nxpy-past
You can install the library with pip:pip install nxpy-pastNxpy Pastprovides ways to express conditions on the current Python version to help handling
version differences:import nxpy.core.past

if nxpy.core.past.V_2_6.at_least():
    import abc
else:
    class abc(object):
        class ABCMeta(type):
            def __new__(mcs, name, bases, dict):
                return type.__new__(mcs, name, bases, dict)It is also possible to express assertions on the current version to better document why some code
fails:import nxpy.core.past

nxpy.core.past.enforce_at_least(nxpy.core.past.V_2_6)The library’s documentation is available onReadTheDocs.
Package: nxpy-sort
You can install the library with pip:pip install nxpy-sortNxpy Sortprovides thetopological_sort()function which takes a sequence of ordered couples
of values and returns a single sequence where each value is guaranteed to come before every value
that comes after it in any of the input couples. When this is not possible, e.g. for inputs like(1 2) (2 1),Noneis returned.The library’s documentation is available onReadTheDocs.
Package: nxquickplot
nxquickplotConvenient plotting for graphs in NetworkX.  These functions are rather
asymmetric/non-composable because they aim to literally capture concrete use
patterns rather than abstracting over them.  If you need other stuff, just use
the rawdraw_networkxAPI.APIDraw the graph with a force-directed layoutfrom nxquickplot import plot_force
import networkx

g = networkx.DiGraph()

g.add_node('Alice')
g.add_node('Bob')
g.add_edge('Alice', 'Bob')

plot_force(g)Draw the graph with a random deterministic layoutfrom nxquickplot import plot_random_deterministic
import networkx

g = networkx.DiGraph()

g.add_node('Alice')
g.add_node('Bob')
g.add_edge('Alice', 'Bob')

plot_random_deterministic(g)Draw the graph plotting a certain attribute rather than the node IDfrom nxquickplot import plot_with_attr
import networkx

g = networkx.DiGraph()

g.add_node('Alice', age=42)
g.add_node('Bob', age=31)
g.add_edge('Alice', 'Bob')

plot_with_attr(g, 'age')This must be force directed.
Package: nxrepair
NxRepair is an automated error detection tool for use with de novo assemblies from Nextera mate pair data.We have atutorialand API onReadTheDocsTo get started, here’s how to use NxRepair (more details, caveats and options in thetutorial):nxrepairaligned_matepairs.bamassemblyfasta.fastaerror_locations.csvnew_fasta.fasta
Package: nxs-analysis-tools
nxs-analysis-toolsOverviewnxs-analysis-tools provides a suite of tools for slicing (2D), cutting (1D), and transforming (e.g., symmetrizing, interpolating, deltaPDF) nexus format (.nxs) scattering data.View the documentationhere.InstallationInstall nxs-analysis-tools withpip:pip install nxs-analysis-toolsLicenseThis project is licensed under the MIT License.
Package: nxscli
NxscliNxscli is a command-line client package for theApache NuttXNxScope real-time logging module.Compatible with Python 3.10+.FeaturesPlugins architecture, extendable throughnxscli.extensionsentrypointClient-based triggering (global and per-channel triggers)Save data to CSV filesPrint samplesStream data over UDP (compatible withPlotJuggler)NxScope protocol via serial port or Segger RTT interfaceFeatures PlannedMore triggering typesBoolean operations on triggersVirtual channels and math operations on channels dataImprovepdevinfooutput (human-readable prints)Interactive modePluginsBy default, we only support features that depend on the standard Python libraries.
The functionality is expadned by installing plugins.
Plugins are automatically deteceted by Nxscli.Available plugins:nxscli-mpl- Matplotlib extensionnxscli-np- Numpy extensionPlugins PlannedStream data as audio (inspired by audio knock detection systems)PyQtGraph supportInstalationNxscli can be installed by runningpip install nxscli.To install latest development version, use:pip install git+https://github.com/railab/nxscli.gitUsageLook atdocs/usage.ContributingAll contributions are welcome to this project.To get started with developing Nxscli, seeCONTRIBUTING.md.
Package: nxsconfigserver-db
Authors: Jan Kotanski, Eugen Wintersberger, Halil PasicThe package contains SQL files to create the MySQL database for Configuration Server.NeXuS Configuration Server is a Tango Server with its implementation based
on a MySQL database. It allows to store XML configuration datasources
and components. It also gives possibility to select mandatory components
and perform the process of component merging.Source code:https://github.com/nexdatas/nxsconfigserver-dbWeb page:https://nexdatas.github.io/nxsconfigserver-dbInstallationInstall the dependencies:MySQLdb, PyTango, sphinxFrom sourcesDownload the latest version of NeXuS Configuration Server fromhttps://github.com/nexdatas/nxsconfigserverhttps://github.com/nexdatas/nxsconfigserver-dbExtract the sources and run for both packages$pythonsetup.pyinstallTo set database execute$mysql<conf/mysql_create.sqlwith proper privileges.Debian packagesDebian Jessie (and Wheezy) packages can be found in the HDRI repository.To install the debian packages, add the PGP repository key$sudosu$wget-q-O-http://repos.pni-hdri.de/debian_repo.pub.gpg|apt-keyadd-and then download the corresponding source list$cd/etc/apt/sources.list.d$wgethttp://repos.pni-hdri.de/jessie-pni-hdri.listFinally,$apt-getupdate$apt-getinstallpython-nxsconfigservernxsconfigserver-dbTo instal other NexDaTaS packages$apt-getinstallpython-nxswriternxsconfigtoolnxstoolsand$apt-getinstallpython-nxsrecselectornxselectorpython-sardana-nxsrecorderfor Component Selector and Sardana related packages.From pipTo install it from pip you can$python3-mvenvmyvenv$.myvenv/bin/activate$pipinstallnxsconfigserver-dbMoreover it is also good to installmysqlto be able to execute$mysql<conf/mysql_create.sqlwheremysql_create.sqlis installed inmyvenv/share/nxsconfigserverSetting NeXus Configuration ServerTo set up  NeXus Configuration Server with the default configuration run$nxsetup-xNXSConfigServerThenxsetupcommand comes from thepython-nxstoolspackage.
It starts the NeXus Configuration Server and tries to find a proper value
of the JSONSettings attribute.
Package: nxsconfigtool
Welcome to nxsconfigtool’s documentation!Authors: Jan Kotanski, Eugen Wintersberger, Halil PasicComponent Designer is a GUI configuration tool dedicated to create components
as well as datasources which constitute the XML configuration strings of
Nexus Data Writer (NXS). The created XML elements can be saved
in the extended Nexus XML format in Configuration Tango Server or in disk files.Source code:https://github.com/nexdatas/configtoolWeb page:https://nexdatas.github.io/configtool/NexDaTaS Web page:https://nexdatas.github.ioInstallationInstall the dependencies:PyQt4, PyTango (optional)PyTango is only needed if one wants to use Configuration ServerFrom sourcesDownload the latest NXS Configuration Tool version fromhttps://github.com/nexdatas/configtool/and extract the sources.One can also download the lastest version directly from the git repository bygit clonehttps://github.com/jkotan/nexdatas.configtool/Next, run the installation script$pythonsetup.pyinstalland launch$nxsdesignerDebian packagesDebian Buster, Stretch or Ubuntu Focal, Bionic packages can be found in the HDRI repository.To install the debian packages, add the PGP repository key$sudosu$wget-q-O-http://repos.pni-hdri.de/debian_repo.pub.gpg|apt-keyadd-and then download the corresponding source list$cd/etc/apt/sources.list.d$wgethttp://repos.pni-hdri.de/buster-pni-hdri.listFinally,$apt-getupdate$apt-getinstallnxsconfigtoolTo instal other NexDaTaS packages$apt-getinstallpython-nxswriterpython-nxsconfigservernxsconfigserver-dbnxstoolsand$apt-getinstallpython-nxsrecselectornxselectorpython-sardana-nxsrecorderfor Component Selector and Sardana related packages.From pipTo install it from pip you need to install pyqt5, e.g.$python3-mvenvmyvenv$.myvenv/bin/activate$pipinstallpyqt5$pipinstallnxsconfigtoolMoreover it is also good to install$pipinstallpytangoGeneral overviewComponent DesignerTheNXS ComponentDesigner program allows to createscomponentsas well asdatasourceswhich constitute the XML configuration strings of
Nexus Data Writer (NXS). The created XML elements can be saved
in the extended Nexus XML format in Configuration Tango Server or in disk files.Collection Dock Window contains lists of the currently open components
and datasources. Selecting one of the components or datasources from
the lists causes opening either Component Window or DataSource Window.All the most commonly used menu options are also available on Toolbar.A short description of all actions can be found inHelpmenu.IconsIcons fetched fromhttp://findicons.com/pack/990/vistaico_toolbar.
Package: nxslib
NxslibNxslib is a Python client library for theApache NuttXNxScope real-time logging module.Compatible with Python 3.10+.Featuresbuilt-in simulated NxScope device that allows application development without
connecting a real NuttX devicesupport for the NxScope serial protocolsupport for Segger RTT interface based onpylinkuser-specific stream data decoding (user-defined types)support for custom protocolsInstalationNxslib can be installed by runningpip install nxslib.To install latest development version, use:pip install git+https://github.com/railab/nxslib.gitContributingAll contributions are welcome to this project.To get started with developing Nxslib, seeCONTRIBUTING.md.UsageLook atdocs/usage.ToolsNxscli- a command-line interface based on Nxslib
Package: nxsrecselector
Authors: Jan Kotanski
IntroductionTango server with Sardana Recorder settingsTango Server API:https://nexdatas.github.io/nxsrecselector/doc_htmlSource code:https://github.com/nexdatas/nxsrecselectorWeb page:https://nexdatas.github.io/nxsrecselectorNexDaTaS Web page:https://nexdatas.github.ioInstallationInstall the dependencies:sardana, tango, sphinxFrom sourcesDownload the latest version of NeXuS Configuration Server fromhttps://github.com/nexdatas/nxsrecselectorExtract the sources and run$pythonsetup.pyinstallDebian packagesDebian bookworm, bullseye and buster or ubuntu lunar, jammy nad focal packages can be found in the HDRI repository.To install the debian packages, add the PGP repository key$sudosu$wget-q-O-http://repos.pni-hdri.de/debian_repo.pub.gpg|apt-keyadd-and then download the corresponding source list$cd/etc/apt/sources.list.d$wgethttp://repos.pni-hdri.de/bookworm-pni-hdri.listFinally, install module$apt-getupdate$apt-getinstallpython-nxsrecselectorand the NXSRecSelector tango server$apt-getupdate$apt-getinstallnxsrecselectorTo instal other NexDaTaS packages$apt-getinstallpython-nxswriternxsconfigtoolnxstoolspython-nxsconfigservernxsconfigserver-dband$apt-getinstallnxselectorpython-sardana-nxsrecorderfor Component Selector and Sardana related packages.From pipTo install it from pip you can$python3-mvenvmyvenv$.myvenv/bin/activate$pipinstallnxsrecselectorMoreover it is also good to install$pipinstallpytango$pipinstalltaurus$pipinstallsardana$pipinstallnxswriter$pipinstallnxsconfigserver$pipinstallnxstools$pipinstallpymysqldbSetting environmentSetting SaradnaIf sardana is not yet set up run$Poolenter a new instance namecreate the new instanceThen wait a while until Pool is started and in a new terminal run$MacroServerenter a new instance namecreate the new instanceconnect poolNext, run Astor and change start-up levels: for Pool to 2,
for MacroServer to 3 and restart servers.Alternatively, terminate Pool and MacroServer in the terminals and run$nxsetup-sPool-l2wait until Pool is started and run$nxsetup-sMacroServer-l3Additionally, one can create dummy devices by runningsar_demoin$spockSetting NeXus ServersTo set up  NeXus Servers run$nxsetup-xor$nxsetup-xNXSDataWriter$nxsetup-xNXSConfigServer$nxsetup-xNXSRecSelectorfor specific servers.If theRecoderPathproperty of MacroServer is not set one can do it by$nxsetup-a/usr/lib/python2.7/dist-packages/sardananxsrecorderwhere the path should point thesardananxsrecorderpackage.
Package: nxstart
Project generator for Nintendo Switch homebrews.FeaturesGenerate a libnx (C++) project usingnxstart libnxGenerate a libtransistor (C) project usingnxstart libtGenerate a BrewJS (Javascript) project usingnxstart brewjsGenerate a PyNX (Python) project usingnxstart pynxInstallationInstall from PyPi usingpip, a package manager for
Python.$pipinstallnxstartDon’t have pip installed? Try installing it, by running this from the
command line:$curlhttps://bootstrap.pypa.io/get-pip.py|pythonOr, you candownload the source codefornxstartand then run:$pythonsetup.pyinstallYou may need to run the above commands withsudo.Generating a libnx (C++) projectRunnxstart libnx. It will ask for a project name, author name and if you are
using CLion (IDE by Jetbrains). If you say yes to CLion,CMakeLists.txtwill be included.The following project structure will be generated:project│.editorconfig│.gitignore│CMakeLists.txt//OnlyifyouuseCLion│Makefile│icon.jpg│README.md│└───data│└───include│└───source│main.cpp//YourmainapplicationfileGenerating a libtransistor (C) projectRunnxstart libt. It will ask for a project name, author name and if you are
using CLion (IDE by Jetbrains). If you say yes to CLion,CMakeLists.txtwill be included.The following project structure will be generated:project│.editorconfig│.gitignore│CMakeLists.txt//OnlyifyouuseCLion│main.c│Makefile│icon.jpg│README.md│Generating a BrewJS (Javascript) projectRunnxstart brewjs. It will ask for a project name, author name. The following project structure will be generated:project│.editorconfig│.gitignore│package.json│Source.js//Yourmainapplicationfile│README.md│└───assets│Generating a PyNX (Python) projectRunnxstart pynx. It will ask for a project name, author name. The following project structure will be generated:project│.editorconfig│.gitignore│main.py//Yourmainapplicationfile│README.md│Skip promptsTo skip the prompts, provide the necessary flags. For example:$nxstart-n"My new project"-a"John Doe"libnx--clionOr if you don’t use CLion:$nxstart-n"My new project"-a"John Doe"libnx--no-clionRunning testsTests can be run with thepytestcommand. If you are contributing code, make sure all tests are green before
submitting a PR.