Saravanan666/pypi-org huggingface dataset:
Package: nwss
💧 nwss-data-standardAmarshmallowschema for theNational Wastewater Surveillance System.UsageInstallation# Install from PyPIpipinstallnwss# Install local copygitclonehttps://github.com/datamade/nwss-data-standard.git&&cdnwss-data-standard
pipinstall.SeeData dictionary version compatibilityfor historical versions of the schema.Data dictionary version compatibilityThe CDC uses semantic versioning to track changes tothe expected format for
DCIPHER uploads.
This table maps versions of thenwssPython package to versions of the data
dictionary.Package versionCDC version1.0.02.0.21.0.12.0.3You can retrieve the CDC version from thenwssmodule for use in your scripts:>>>importnwss>>>print(nwss.CDC_VERSION)'2.0.2'DemoOn the webHead tohttps://datamade.github.io/nwss-data-standard/to validate a file
against the standard!In PythonfrommarshmallowimportValidationErrorfromnwss.schemasimportWaterSampleSchemasample_data=[# array of dictionaries]schema=WaterSampleSchema(many=True)try:schema.load(sample_data)exceptValidationErrorase:print(e.messages)else:print('Data is valid!')DevelopmentPatches and pull requestsYour patches are welcome. Here's our suggested workflow:Fork the project.Create a new branch, then make your feature addition or bug fix.Send us a pull request with a description of your work.Python SchemaInstall the app locally.gitclonehttps://github.com/datamade/nwss-data-standard.git&&cdnwss-data-standardpipinstall-e.[dev]Make your changes, then run the tests.pytestJSON Schemanwsscomes with a Python implementation of the NWSS schema, as well as a
convenience script to translate it to a JSON schema:python3-mnwss.dump_to_jsonschema>schema.jsonMuch of the JSON schema is determined by themarshmallowschema, however
some conditional validation is written into the convenience script. You may
need to update the script to make your desired change.DemoRun a local server and auto-bundle your scripts:npmrundevelopNavigate to the app:http://localhost:8000/docs/Errors and bugsIf something is not behaving intuitively, it is a bug and should be reported.
Report it here by creating an issue:https://github.com/datamade/nwss-data-standard/issuesHelp us fix the problem as quickly as possible by followingMozilla's guidelines for reporting bugs.Copyright and attributionCopyright (c) 2021 DataMade. Released under theMIT License.
Package: nwsserver
NetWorkSpaces (NWS) is a system that makes it very easy
for different scripts and programs running (potentially) on
different machines to communicate and coordinate with one
another.The requirements for the NWS server are:Python 2.2 or later on Linux and Mac OS X.Python 2.4 or later on Windows.Twisted 2.1 and Twisted-Web 0.5 or later.Twisted is available from:http://www.twistedmatrix.com/Twisted itself requires:Zope Interfaces 3.0.1 (http://zope.org/Products/ZopeInterface)
Package: nw-ssh
nw-sshSimple ssh client with asyncssh for network devices.import asyncio
import nw_ssh

async def main() -> None:
    async with nw_ssh.SSHConnection(
        host='169.254.0.1',
        port=22,
        username='root',
        password='password',
        client_keys=[],
        passphrase=None,
        known_hosts_file=None,
        delimiter=r'#',
        timeout=10,
    ) as conn:

        print(conn.login_message)

        output = await conn.send(input='cli', delimiter=r'>')
        print(output)

        output = await conn.send(input='show interfaces fxp0 | no-more', delimiter=r'>')
        print(output)

        output = await conn.send(input='configure', delimiter=r'#')
        print(output)

        output = await conn.send(input='show interfaces', delimiter=r'#')
        print(output)

        output = await conn.send(input='commit', delimiter=r'#', timeout=10)
        print(output)

asyncio.run(main())RequirementsPython >= 3.7asyncsshInstallationpip install nw-sshLicenseMIT
Package: nwt-dataset-cli
dataset-cliGetting startedThis project uses:poetryas dependency managermypyfor static typing analysisblackfor code formattingflake8for lintingpytestas testing frameworkcoveragefor code coverage reportingpre-committo setup git hooks (formatting and linting before commits)# Clone the repositorygitclonegit@bitbucket.org:newtralmedia/dataset-cli-lib# Install the dependencies using poetrypoetryinstall# Enable virtual environmentpoetryshell# Setup pre commit hookspoetryrunpre-commitinstall
poetryrunpre-commitrun--all-files# If you need create a tunel ssh to connect to remote mongossh-ikey.pemuser@remotehost-L27017:localhost:27017-NCli Commands# CommandscreateCreateadatasetwithcustomparameters.
fromjsonCreateadatasetfromjsonfile.# Show all options for commandpythondataset_cli/app.pycreate--help
pythondataset_cli/app.pyfromjson--help# Create dateset from clipythondataset_cli/app.pycreate--start2018-09-24--targetfact--sourceslack--random123# Create dateset from jsonpythondataset_cli/app.pyfromjson--filexxxxxx.json# Custom mongo uripythondataset_cli/app.pyfromjson--mongomongodb://remote_host:27017--filexxxxxxx.json# Folder to export datasetpythondataset_cli/app.pycreate--targetfact--sourceeditor--random123--foldermy_folderReleaseIn order to generate a new release you will need:Node LTScurl-o-https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh|bash
nvminstalllts# You may need to open a new shellstandard-versionnpminstall--globalstandard-versionJust run the following script. It will:Checkout to masterMerge the most recent develop changesUpdate package version and create a new tagPush changes to master and develop./scripts/releaseTestRun every testspoetryrunpytestCoverageRun tests and generate a code coverage reportpoetryruncoveragerun-mpytest
poetryruncoveragereport-m# Remove a previously generated coverage reportspoetryruncoverageerase
Package: nwunity
NW-UnityNW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.Quick UsageInstall by pip on Windows/Linux/MacOS:pipinstallnwunityInstall by pip on GameShell:sudopip3installnwunityPack your game:# Package your Unity WebGL game(resolution is 320*240, full screen mode is on) on PC, Linux, or MacOS.nwunity-d'/path/to/UnityWebGLDir'-n'MyGame'--width320--height240--fullscreen# Package your Unity WebGL files on GameShell.nwunity-d'/path/to/UnityWebGLDir'-n'MyGame'-pGameShellHow to useNW-Unity is easy to use. You can install  it by pip.Install by pippipinstallnwunityParametersYou can usenwunity -hornwunity --helpto get help.FormatParameter Explain-d   --directorySet the root directory of your Unity WebGL files, default is current working directory.-n   --nameSet the name of your game, default is 'Untitled-Game'.--widthSet the width of your game window, default is 1024.--heightSet the height of your game window, default is 768.--fullscreenSet full screen mode on, default is off.--noframeHide window frame title, default is show.--resizableSet resizable mode on, default is off.--transparentSet transparent mode on, default is off.-p   --platformSet platform, default is normal(PC, Linux, MacOS...). Options: GameShell.-i   --iconSet the icon of the game.GameShell tipsMake sure the OS version of your GameShell is 0.5 or newer.Switch the GPU Driver of your GameShell to Lima if it's not.LicenseThe project is under theMITlicense.
Package: nx3d
nx3dA 3D plotting library fornetworkxbuilt onpanda3d.Installationpipinstallnx3dCheck your installationThe four nx.Graph classesnx.Graph demopython-mnx3dnx.DiGraph demopython-mnx3ddirnx.MultiGraph demopython-mnx3dmulnx.MultiDiGraph demopython-mnx3dmuldirDynamic graph processesDiffusion demopython-mnx3ddiffusionwattnolabelGame of Life demopython-mnx3dlifenofilterUsageIn your Python code:importnetworkxasnximportnx3dg=nx.frucht_graph()nx3d.plot(g)Next stepsCheck out thedocsfor tutorials, how-to-guides, explanations, and reference
material.
Package: nx5d
NX5 Duct Tapenx5da.k.a.nx5ducta.k.a.NX5 Duct Tapeis a collection of tools
that factilitate rapid generation and hacking of HDF5/Nexus files.
It's used to transform experimental data of specific origins
(e.g.Uni Potsdam's UDKM Group's)
into a Nexus compliant format.Treat this as "work in progress", and, it being Free Software, if you break
it you get to keep both halves ¯\_(ツ)_/¯Contents:DependenciesInstallationFunctionality OverviewThenxmoduleTheDataSourcemoduleXRD helpersDependenciesnx5duses the following linraries:fabio, theSilX Fable I/O libraryh5py, thePython HDF5 librarynumpy, thePython numerical frameworkwhich
hopefully needs no introduction ;-)scipy, a Python framework forscientific data analysisxrayutilities, Dominik Kriegner's library for processing and simulatingX-ray diffractiondata and geometriesxarray, framework forN-dimensional labeled arrays...possibly a few others, too...InstallationWork in progress. Should work in PyPI soon (pip install nx5dor so).Functionality OverviewNote that thenx5dpackage is in very early stages of development.
Project scope is shifting, having essentially started off as a repository
of "things I need to do XRD data analysis" and currently aiming to reach
more specific, general-purpose tool character.As of now, there are several distinct components tonx5d:Thenxmodule: provides synthetisation of "NX5-Files"
(Nexuspackaged inHDF5) from the former ESRF
Logfile beamline format. This format is obsolete as of 2022, but may
be needed for legacy data.TheDataSourcemodule: provides high-level
I/O functionality for x-ray diffraction data (XRD) based on thexrayutilities.The XRD helpers: distinct bits and snippets of
algorithms to help with numerical data analysis, specifically with
XRD data as provided by theDataSourcemoduleCaveats & BugsNot enough code to call them "bugs" yet. We call them "gaping, deep,
dark holes." :-p
Package: nx-altair
nx_altairDraw NetworkX graphs with Altairnx_altairoffers a similardrawAPI to NetworkX but returns Altair Charts instead.If you'd like to contribute, join theGitter chatroomand share your ideas! Also, checkout theto-do listbelow.ExamplesIf you'd like to start playing with nx_altair, downloadthis notebook!Simple graphimportnetworkxasnximportnx_altairasnxa# Generate a random graphG=nx.fast_gnp_random_graph(n=20,p=0.25)# Compute positions for viz.pos=nx.spring_layout(G)# Draw the graph using Altairviz=nxa.draw_networkx(G,pos=pos)# Show it as an interactive plot!viz.interactive()Leverage AltairCustomize the visualizationnx_altairalso supports many of the same arguments from NetworkX for styling your network--with an Altair twist! Map visualization attributes in a declarative manner.importnumpyasnp# Add weights to nodes and edgesforninG.nodes():G.nodes[n]['weight']=np.random.randn()foreinG.edges():G.edges[e]['weight']=np.random.uniform(1,10)# Draw the graph using Altairviz=nxa.draw_networkx(G,pos=pos,node_color='weight',cmap='viridis',width='weight',edge_color='black',)# Show it as an interactive plot!viz.interactive()InstallTo install from PyPI:pip install nx_altairTo install for development, clone this repos and install using pippip install -e .ContributingWe welcome pull requests! If you find a bug, we'd love for you to submit a PR. If you're not sure how to do that, check out thissimple guide.If you have a feature request, please open an issue or submit a PR!Todo listA list of things to-do (good ideas for PRs).Adddrawmethod that mirrors networkx (easy)Node color scale vmix, vmax (easy)Edge color scale vmix, vmax (easy)Node labels (medium)Edge labels (medium)Mouse-hover interactivity (medium)Arrows for edges (hard)Support for large (>1000 edge) networks (hard)Force-directed interactivity (very hard---beyond altair's current support).
Package: nxapi-plumbing
nxapi-plumbingA low-level library for managing Cisco devices through NX-API using JSON-RPC and XML.Examples:Creating device object using JSON-RPC.fromnxapi_plumbingimportDevicedevice=Device(api_format="jsonrpc",host="device.domain.com",username="admin",password="password",transport="https",port=8443,)JSON-RPC single command that returns structured data.output=device.show("show hostname")print(output)Output would be the response from the command{'hostname':'nxos.domain.com'}JSON-RPC list of commandsoutput=device.show_list(["show hostname","show ntp status"])pprint(output)Output would be a list of responses (list of dictionaries)[{"command":"show hostname","result":{"hostname":"nxos.domain.com"}},{"command":"show ntp status","result":{"distribution":"Distribution : Disabled","operational_state":"Last operational state: No session"}}]
Package: nxcreole
NxCreole Wiki Parser====================NxCreole is a parser for Wiki Creole 1.0 text markup (http://www.wikicreole.org/).The parser is written in C and can be used both directly or as Python extension.When called from Python it is 10x to 100x times faster than native Python parsers.License: LGPLv3Usage-----Clone source, then execute:- python setup.py install- python tests/nxcreole_test.pyOr install from PyPi and use in your code:- pip install nxcreole- import nxcreole- print nxcreole.render_xhtml(u'**Hello!**')Easily customizable. You can override all serialization primitives defined in parser.py(eg, append_text, append_link, append_table_cell_open, append_paragraph_close,and so on), by inheriting from nxcreole.CreoleParser class.Compliance----------NxCreole supports all Creole 1.0 features with the following extensions:- Nowiki blocks and spans {{{...}}} can start and end anywhere (within text, in lists,table cells). If }}} needs to be included into nowiki-block it has to be escaped by ~}}}.If nowiki block has to end with tilde (~), insert newline after tilde; for inline nowikijust put tilde outside nowiki block: nowiki~.- Nowiki is treated as a block if it has newline characters within it. Block nowikisare rendered with < pre > tag, inline nowikis rendered without any additional tags around(monospaced font can be turned on by ##).- Ordered/unordered lists can be intermixed when nesting (eg, #*#).- Support for underlined (__) and monospaced (##) font styles.- Quotes (>), indents (:), and centered paragraphs (!). These can be intermixed with lists (*#).- Unnumbered lists can be done with minus (-) character as well as with (*).- Table cells can span multiple columns (by using multiple pipes in a row: |||).- Double minus (--) surrounded by spaces produces n-dash (–).- Simplified Mediawiki-style multiline tables ({| ... | ... |- ... | ... |}) to allowstructured wiki content within table cells.
Package: nxcurve
nxcurveDimensionality reduction ( DR ) is a data transformation process which provides a low-dimensional ( attribute or variable ) representation of high dimensional data sets. This with the following purposes: noise reduction, storage space reduction, data visualization, efficient data processing and to concentrate the important information in fewer variables than the original set. A performance visual measure in DM is topology preservation.Quality curves RNX, proposed by Lee and Verleysen, evaluates performance generating a graphical representation of topology preservation.  Nowadays there is a tool for topology conservation evaluation of DM algorithms, developed also by Lee and Verleysen (2009) but this tool is implemented only in Matlab. Here a problem arises because Matlab is limited and cannot be implemented in other technologies. here, we are going to implement, in python, a software evaluation module of curves RNX in order to be used in other technologies.InstallationUse the package managerpipto install nxcurve.pipinstallnxcurveUsagefromsklearnimportmanifold,datasets# datasetsfromnxcurveimportquality_curven_comp=2# number of components to be reducedn_nei=20# nearest neighborsnsamples=2000# number of points (samples)# Creating manifoldX,color=datasets.make_swiss_roll(n_samples=nsamples)# Performing dimensionality reductionX_r,err=manifold.locally_linear_embedding(X,n_neighbors=n_nei,n_components=n_comp)# Drawing RNX curvequality_curve(X,X_r,n_nei,'r',True)"""input: X original data, X_r reduced data, n_neighbors, option, graphoutput: _NX vector, area under the curve and plot if graph == TrueAny character in the following list generates a new figure: (opt)q: Q_NX(K)b: N_NX(K)r: R_NX(K)"""FeaturesRNX curve and area under the curveQNX curve and area under the curveBNX curve and area under the curveDevelopmentGrahp for the coranking matrixLCMC from a coranking matrix (local continuity meta criterion)Error HandlingContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: nxdomain
nxdomainA domain (ad) block list creator. Takes block lists from local files or URLs as input
(inhosts(5)or domain-list format) and outputs a BIND zone or dnsmasq config.Sample usage$python-mnxdomain\# Where to store the output file.--out=adblock.zone\# BIND Response Policy Zone file. Also available: --format=dnsmasq.--format=bind\# A simple list of domains, one per line. Lines starting with '#' are skipped.--simple=https://mirror1.malwaredomains.com/files/justdomains\# A hosts(5) formatted list of domains. Lines starting with '#' are skipped.--hosts=https://raw.githubusercontent.com/StevenBlack/hosts/master/hostsNotesThis program does not try to be smart. Reloading the DNS server is your responsibility. There is no caching or smart diffing.
The only smartness is that, with--format=bind, the SOA serial will be incremented automatically if the file already exists.LicenseGNU General Public License v3.0
Package: nx-itertools
A drop-in replacement for itertools including the recipes from the itertools
document page(including tests) and some extras.The extras.py file adds a couple of useful function along with an alternate
pairwise function to avoid over-loading with tee, an alternate partition
function to return lists instead of generators as tee would have also generated
the overhead and the predicate would have run twice for each element, and an
alternate powerset function providing a reverse argument.multi-map converts an itertable into a multi-map(dict of lists)split splits an iterable into segments similar to string.splitchunk chunks data into segments of a limited size - similar to grouperdivide evenly divides elements into a fixed number of chunksdivide_sizes determine the sizes of chunks if a number of elements were evenly dividedAll of itertools and the functions in extra.py are pulled in on __init__.The recipes are included in the recipes.py file and are pulled in on __init__
with the exception of the alternates provided by extra.py.
Package: nxlib
Announcement:With Ensenso SDK version 3.3 we stop the maintenance of ourGitHub repository, since
our SDK now includes a corresponding Python interface package. The Ensenso SDK
can be downloadedhere.We will continue to provide the package on PyPI, however, with a few changes:The package is from now on namednxlibFor each new SDK release there will be a corresponding package with the same
version number as the SDKWe will also publish the package under the old nameensenso_nxlib(for those who do not
want to or cannot change their dependency list)Check ourmanualfor installation
guidelines and a detailed description including some examples to get you
started.
Package: nxmodbus
Python library to access Studer-Innotec Next devices through Modbus RTU/TCP.PrerequisitesPlease read the complete documentation available on :Studer Innotec SA-> Support -> Download Center -> Software and UpdatesGetting Started1. Package installation$pipinstallnxmodbus2. Hardware installationConnect your Next installation through a Next gateway (e.g. nx-interface) to your controller (personal computer, Raspberry Pi, etc.)(RTU) using aUSBtoRS-485adapter.(TCP) using the Ethernet interface connecting to your local area network.3. Serial configurationThis package rely onpyserialstandard package, in order to use thenxmodbuspackage make sure to instantiate it like :importserialserial_port=serial.Serial(SERIAL_PORT_NAME,SERIAL_PORT_BAUDRATE,parity=serial.PARITY_EVEN,timeout=1)whereSERIAL_PORT_NAMEis your serial port interface, for example set it to‘COM4’(string argument) when usingWindowsotherwise you may set it to‘/dev/ttyUSB0/’onLinuxwhereSERIAL_PORT_BAUDRATEis the baudrate used by your serial port interface (use the Nx-interface to set the serial parameter of the server)4. Run an example from/examplesfolderGo to/examplesfolder with a terminal and execute this script$pythonex_rtu_read_param.py$pythonex_tcp_read_param.pyCheckclient_rtu fileorclient_tcp fileto understand it.5. Open documentationOpen documentation fromRead The DocsWarningsUsedevices addresses generated intoaddresses fileIt is strongly recommendedNOTto spam theNext gatewaywith multiple requests. The correct way to communicate with theNext gatewayis to send a request and towaitfor the response before sending the next request. If no response comes from thenxmodbusafter a delay of 1 second, we can consider that the timeout is over and another request can be send. It is also howModbus RTUis intended to work.AuthorsStuder Innotec SA-Initial work-Studer Innotec SALicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: nxmx
Read NXmx-flavour NeXus HDF5 data in PythonThis package provides a neat and tidy Python interface for reading data fromHDF5 filesthat are structured according to theNXmx application definitionof theNeXus standard.Installationpython-nxmxis available asnxmxon PyPI, so you just need Pip.$pipinstallnxmxGetting startedIf you have an HDF5 file in NXmx format, inspecting it withh5lswill look something like this:$h5ls-rmy-nxmx-file.h5/Group
/entryGroup
/entry/dataGroup
/entry/definitionDataset{SCALAR}/entry/end_timeDataset{SCALAR}/entry/end_time_estimatedDataset{SCALAR}/entry/instrumentGroup
/entry/instrument/beamGroup
/entry/instrument/beam/incident_beam_sizeDataset{2}/entry/instrument/beam/incident_wavelengthDataset{SCALAR}/entry/instrument/beam/total_fluxDataset{SCALAR}/entry/instrument/detectorGroup

...etc....Withnxmx, you can access the NXmx data in Python like this:importh5pyimportnxmxwithh5py.File("my-nxmx-file.h5")asf:nxmx_data=nxmx.NXmx(f)A slightly more detailed exampleimporth5pyimportnxmxwithh5py.File("my-nxmx-file.h5")asf:nxmx_data=nxmx.NXmx(f)# Explore the NXmx data structure.entry,*_=nxmx_data.entriesprint(entry.definition)# Prints "NXmx".instrument,*_=entry.instrumentsdetector,*_=instrument.detectors# Get the h5py object underlying an instance of a NX class.entry_group=entry._handle# entry_group == f["entry"]# Find instances of a given NX class in a h5py.Group.beams=nxmx.find_class(instrument._handle,"NXbeam")# The equivalent for more than one NX class.beams,detectors=nxmx.find_classes(instrument._handle,"NXbeam","NXdetector")# Query attributes of an object in the normal h5py way.# Suppose out detector has a transformation called "det_z".transformations,*_=nxmx.find_class(detector._handle,"NXtransformations")attrs=transformations["det_z"].attrs# Get the attributes of the "det_z" dataset.
Package: nx-nix
NXA fast and beautiful NixOS and Nix management utility ❄💡 FeaturesBeautiful and powerful CLI using Python'styperlibraryQuick and easy deployment and management of NixOS systems and Nix profiles💾 Installation💽 From BinaryInstall NX usingnix profile$nixprofileinstallgitlab:mchal_/nx$nx📸 Screenshots📜 LicenseGPLv3-only