Saravanan666/pypi-org huggingface dataset:
Package: nrel.routee.compass
RouteE Compass is an energy-aware routing engine for the RouteE ecosystem of software tools with the following key features:Dynamic and extensible search objectives that allow customized blends of distance, time, cost, and energy (via RouteE Powertrain) at query-timeCore engine written in Rust for improved runtimes, parallel query execution, and the ability to load nation-sized road networks into memoryRust, HTTP, and Python APIs for integration into different research pipelines and other softwareRouteE Compass is a part of theRouteEfamily of mobility tools created at the National Renewable Energy Laboratory.InstallationSee theinstallationguide for installing RouteE CompassUsageSee thedocumentationfor more information.ContributorsRouteE Compass is currently maintained by Nick Reinicke (@nreinicke) and Rob Fitzgerald (@robfitzgerald).LicenseCopyright 2023 Alliance for Sustainable Energy, LLCRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: nrel.routee.powertrain
OverviewRouteE-Powertrain is a Python package that allows users to work with a set of pre-trained mesoscopic vehicle energy prediction models for a varity of vehicle types. Additionally, users can train their own models if "ground truth" energy consumption and driving data are available. RouteE-Powertrain models predict vehicle energy consumption over links in a road network, so the features considered for prediction often include traffic speeds, road grade, turns, etc.The typical user will utilize RouteE's catalog of pre-trained models. Currently, the
catalog consists of light-duty vehicle models, including conventional gasoline, diesel,
hybrid electric (HEV), plugin hybrid electric (PHEV) and battery electric (BEV). These models can be applied to link-level driving data (in the form
ofpandasdataframes) to output energy consumption predictions.Users that wish to train new RouteE models can do so. The model training function of RouteE enables users to use their
own drive-cycle data, powertrain modeling system, and road network data to train custom models.QuickstartRouteE Powertrain is available on PyPI and can be installed withpip:pipinstallnrel.routee.powertrain(For more detailed instructions, seehere)Then, you can import the package and use a pre-trained model from the RouteE model catalog:importpandasaspdimportnrel.routee.powertrainaspt# Print the available pre-trained modelsprint(pt.list_available_models(local=True,external=True))# [#   '2016_TOYOTA_Camry_4cyl_2WD',#   '2017_CHEVROLET_Bolt',#   '2012_Ford_Focus',#   ...# ]# Load a pre-trained modelmodel=pt.load_model("2016_TOYOTA_Camry_4cyl_2WD")# Inspect the model to see what it expects for inputprint(model)# ========================================# Model Summary# --------------------# Vehicle description: 2016_TOYOTA_Camry_4cyl_2WD# Powertrain type: ICE# Number of estimators: 2# ========================================# Estimator Summary# --------------------# Feature: speed_mph (mph)# Distance: miles (miles)# Target: gge (gallons_gasoline)# Raw Predicted Consumption: 29.856 (miles/gallons_gasoline)# Real World Predicted Consumption: 25.606 (miles/gallons_gasoline)# ========================================# Estimator Summary# --------------------# Feature: speed_mph (mph)# Feature: grade_dec (decimal)# Distance: miles (miles)# Target: gge (gallons_gasoline)# Raw Predicted Consumption: 29.845 (miles/gallons_gasoline)# Real World Predicted Consumption: 25.596 (miles/gallons_gasoline)# ========================================# Predict energy consumption for a set of road linkslinks_df=pd.DataFrame({"miles":[0.1,0.2,0.3],# miles"speed_mph":[30,40,50],# mph"grade_dec":[-0.05,0,0.05],# decimal})energy_result=model.predict(links_df)
Package: nrepl
Auto reload class withnREPL.Quick StartInstallnreplbypip:$ pip install nreplStart watching clojure files, Runnreplwith watch command:$ nrepl watch -p 59258 -w /path/to/project
Start watching /home/shonenada/Projects/clojure/src
Detected changes of /home/shonenada/Projects/clojure/src/route.clj, reloading(or) Start clojure project (lein run) and watch clojure files:$ nrepl run -p 59258 -w /path/to/project
[lein]: Compiling 1 source files...
[lein]: Start server on 8080
[nrepl]: Start watching /home/shonenada/Projects/clojure/src
[nrepl]: Detected changes of /home/shonenada/Projects/clojure/src/route.clj, reloading
Package: nrewebservices
NREWebServicesA Python 2/3 client for the National Rail Enquiries web services.Supported Web ServicesThe following NRE web services are currently supported by this library.Darwin Live Departure Boards (ldbws).UsageTake a look at theexamplesor read thedocumentationto learn how to use this library.Installationpip install nrewebservicesUnder DevelopmentClasses for accessing the following NRE web services are still under development, and not yet ready
for general usage:Darwin Live Departure Boards - Staff Version (staff)Historical Performance Information (historical)
Package: nrf24
nrf24 for PythonPLEASE NOTE: The new version 2.0.0 containsbreakingchanges with previous version 1.1.1.  Please make sure to consult theCHANGES.mdfor details.This package implements 2.4Ghz communication using NRF24L01 modules on a Raspberry Pi using Python via the pigpio daemon.The code is based on a modified version of some example code found onStackExchange.  The author of the original code is also the author of thepigpiolibrary found herehttp://abyz.me.uk/rpi/pigpio/.I have obtained the original authors approval to modify and distribute the code anyway I want.  So, I have created a very basic Python package and published it on PyPI under a MIT license.Thenrf24packages depends on thepigpiopackage that is available via PyPI as well.For further information please refer to the github project page athttps://github.com/bjarne-hansen/py-nrf24.
Package: nrfapy
nrfapyA collection of tools for exploring the national river flow archivehttps://nrfa.ceh.ac.uk/.Free software: MIT licenseDocumentation:https://nrfapy.readthedocs.io.FeaturesGets national river flow archive datasets and loads them into pandas dataframesExplanation of the dataset is here:https://nrfa.ceh.ac.uk/History0.1 (2024-01-20)Initial coding by Simon Moulds, packaged by Simon MuddInitial release on pypiThen Simon Mudd had to delete the release because he was calling it NFRA instead of NRFA, mainly because nfrapy sounds a bit like frappuchino and that suggests a clever logo. Simon Moulds had to point out to the disappointed Muddpile that this was the wrong acronym.Basic functionality: simply calls the NRFA API and gets time series dataA command line script is included: nrfa_get_ts0.2 (2024-02-01)Update so that the time column is always parsed as a datetime (S Moulds)Added flag that allows the time to be used as an index, which is useful for some dataframe operations (D Golberg)Added an option to feed the timeseries function a list of strings that all fetching then concatenaiton of different timeseries (D Goldberg)0.3 (2024-02-02)Added some code to make sure the package works on pandas versions < 2.0.0 (SMM)0.4 (2024-02-02)For utterly crazy reasons, I need to make this package resiliant against cases where the pandas version using .__version__ is different than that from pkg_resources0.5 (2024-02-23)pandas concat in get_ts() needs to be called with the axis kwarg set to 1, otherwise strange behavior
Package: nrfsec
nrfsecnrfsec is security research tool used for unlocking and reading memory on nrf51 series SoCs from Nordic Semiconductor.Read all target memory, bypassing the Memory Protection Unit (MPU) settings with integrated read gadget searching.Automated unlock feature: read all program and UICR memory, erase all memory, patch UICR image, reflash target into unlocked state.Boot delay command flag for interacting with target prior to performing memory read, allowing for RAM dumps.All firmware images are saved for importing into your favorite disassembler.Installationnrfsec is built on thepyswd libraryand currently only works with theST-Linkdebugging interface.nrfsec requires python 3.7+ to run and can be installed with pip:pip3installnrfsecInfoA quick info check will ensure that nrfsec is able to communicate with both the debugger and the target. The output for the info will also specify if the target is currently locked with some additional interesting target information.nrfsecinfoSpecifying the verbose flag here with dump the previously mentioned information plus the full contents of both the UICR and FICR. All the information displayed here can be found by interpreting registers contained within the UICR and FICR.Readnrfsec will automatically find a useable read gadget and dump all memory on a locked target. nrfsec will store all the extracted images in /fw of the current working directory. The below example can be used to automatically read all memory regions by parsing memory specifications located in the FICR.nrfsecread-aRead specified memory regions with an optional delay before beginning memory extraction. Great for interacting with the target though any associated mobile applications in order to populate RAM and intialize peripherals.nrfsecread-s0x1000-e0x2000-d8-ooutfile.binLockIssuing the lock sub-command will the target again. This was useful in developing nrfsec but can also be used if you simply want to lock your target if it is not already locked.nrfseclockUnlockThe unlock sub command will perform the following steps:Read all memory regions (most importantly, ROM and UICR) and save the images.Perform a full target erase, this will enable writing to the UICR againPatch the UICR image extracted during step 1 to disable read back protectionRe-flash the ROM and patched UICR back to the targetnrfsecunlockDebug sessions are now possible.Usage✗nrfsec-h
usage:nrfsec<command>[<args>]performsecurityrelatedtasksonnRF51targetsthroughSWDinterface

optionalarguments:-h,--helpshowthishelpmessageandexit-fFREQUENCY,--frequencyFREQUENCYfrequencytoruntheSWDinterface(default4MHz)-v,--verboseincreaseoutputverobsity

supportedsubcommands:{info,erase,restore,read,unlock,lock}infodisplaychipinformationeraseperformacompleteeraserestorerestorespecificimagestoanunlockedchipreadreadmemorycontentstooutfileunlockunlockthedeviceiflockedlocklockthedeviceifunlockedTodosTest on moar targetsLicenseGNU GPLv3
Package: nrftool
A tool to flash and erase nRF devicesDependenciesJ-Link programmer or J-Link OB microcontroller (on-board)[Segger’s JLink software](http://www.segger.com/jlink-software.html) (V4.80)Supported devicesCurrently, only the nRF51822 chip is supported.UsageTo flash new firmware:$ nrftool flash FIRMWARE ADDRESS [–verbose]To erase current firmware:$ nrftool erase [–verbose]IfJLinkExecan’t be found in yourPATH, it can be specified using–jlinkexeoption:$ nrftool –jlinkexe path/to/your/JLinkExe erase
Package: nr.gitignore
nr.gitignoreA simple.gitignorepattern parser and matcher.Example Usageimportosimportnr.gitignorepatterns=nr.gitignore.parse()forroot,dirs,filesinnr.gitignore.walk(patterns,'.'):# ...importnr.gitignoreignore=nr.gitignore.IgnoreList()ignore.parse(['__pycache__','dist'])assertignore.match('./dist/module-1.0.0.tar.gz')==nr.gitignore.MATCH_IGNORECopyright © 2018 Niklas Rosenstein
Package: nr.git-subrepo
git-subrepoThegit-subrepocommand is a tool to create a worktree of a remote Git
repository and tracking its files.Advantages over submodulesAvoid depending on the longevity of the submodule's remote repositoryTrack changes to the sub repository in the parentInstallationYou can get the latest stable version fromPyPI. We recommended creating
an alias in your Git configuration file so you can access the tool via thegitcommand-line.$ pip install nr.git-subrepo
$ git config --global alias.subrepo '!nr git-subrepo'
$ git subrepo --version
1.0.0You may choose to install the tool directly from the source repository. This
allows you to get the latest development version.$ pip install git+https://gitlab.niklasrosenstein.com/NiklasRosenstein/python/nr.git-subrepo.git
$ git subrepo --version
1.0.1-devUsage ExampleAny time that you think about adding a Git submodule, you can add a sub
repository instead. Thegit subrepotool allows you to conveniently add,
remove and stage sub repositories. It also provides you with a tool to convert
existing Git submodules to sub repositories.To add a new sub repository:$ git subrepo add -s https://github.com/some/library.gitSimilar togit submodule, the add command will use the basename of the
provided URL as the default path to place the Git worktree at. In the case
above, it will be./library.$ git -C library remote get-url origin
https://github.com/some/library.git
$ git status
Changes to be committed:
    new file: .gitsubrepos
    new file: library/README.mdThe-soption in the add command is used to automatically stage the added
sub repository. You can use thegit subrepo stagecommand instead to
explicitly add all changes in the sub repository and the proper Git ref to
the.gitsubreposfile.If you have uncommited changes in a sub repository, your changes will be
reflected for your sub repository only inside the parent repository. They will
not be reflected in the actual sub repository or its remote.Copyright © 2018 Niklas Rosenstein
Package: nrgmodbus
nrgmodbusnrgmodbusis a Python package for making modbus connections to NRG devices.RequirementsSymphoniePRO/iPackACCESSLogger FW version 3.2.3 / iPackACCESS FW version 2.2.0 (or higher)InstallationpipinstallnrgmodbusExamplesiPackACCESSIn[1]:fromnrgmodbus.ipackaccessimportipackaccessIn[2]:poller=ipackaccess(ip='192.168.178.168')In[3]:poller.connect()Connectingto192.168.178.168...[OK]In[4]:poller.return_diag_readings()In[5]:poller.hr.diag['12v_bat']['value']Out[5]:14.09000015258789In[6]:poller.hr.diag['temp']['value']Out[6]:22.739999771118164In[7]:poller.return_channel_data(1)In[8]:poller.hr.data_ch[1]Out[8]:{'avg':{'reg':[2506,2],'value':6.4},'sd':{'reg':[2508,2],'value':2.1},'max':{'reg':[2510,2],'value':9.1},'min':{'reg':[2512,2],'value':4.6},'gust':{'reg':[2514,2],'value':9.0},'samp':{'reg':[1506,2],'value':6.2}}spidarIn[1]:fromnrgmodbus.spidarimportspidar_v1In[2]:poller=spidar_v1(ip="192.168.1.1",connect=True)Connectingto192.168.1.1...[OK]In[3]:poller.return_rt_data_readings()In[4]:poller.hr.met_dataOut[4]:...In[5]:poller.hr.data_chOut[5]:...
Package: nrg-parser
nrg-parserIEA task 43 parsers for NRG Systems, Inc. SymphoniePRO loggers.Website and sourcehttps://github.com/nrgpy/nrg-parserDocumentationhttps://nrgpy.github.io/nrg-parser/IEA Task 43 GitHub pagehttps://github.com/IEA-Task-43/digital_wra_data_standardInstallationInstall with pippip install nrg-parserUsageThis package takes the TXT exports of SymphoniePRO data files, and converts the metadata there into IEA Task 43 format.NOTE:For converting binary SymphoniePRO/Symphonie Classic data files into TXT, see thenrgpyrepository.ExamplesSee thenrg-parser_example.ipynbJupyter Notebook for usage examples.ContributingContributions to this project are welcome!Follow theContributing Guidelinesto be a part of it!
Package: nrh-lotr
Lord of the Rings SDKAuthor: Nathanial HapemanSimple SDK for exploring 2 endpoints fromthe-one-api:LotR moviesSupports fetching by idLotR quotesSupports fetching quotes by idLotR movie quotesSupports fetching quotes by movie idAll LotR sdk functions support limit and offset.The data pulled from the external api will be loaded into pydantic models
which have the added benefit of validating the data and being easy to declare.InstallationUsing python>=3.9:pip install nrh-lotrUsage# First grab an api key from: https://the-one-api.dev/documentation#3# Then put it in an env var like: `export API_KEY=SOME_API_KEY`# Or insert it directly into the LOTR class as depicted belowfromlotrimportLOTR,Movie,Quote# Movie basics.lotr=LOTR("YOUR_API_KEY")# lotr = LOTR() # if using env varmovies=lotr.movies(limit=5)assertlen(movies)==5movie_3=movies[3]assertlotr.movies(id=movie_3.id)[0]==movie_3# Quote basics.lotr=LOTR()quotes=lotr.quotes(limit=7)assertlen(quotes)==7quote_6=quotes[6]assertlotr.quotes(id=quote_6.id)[0]==quote_6# Movie quotes (only works on original 3).lotr=LOTR()all_movies=lotr.movies()two_towers=next(mforminall_moviesifm.name=="The Two Towers")movie_quotes=lotr.movie_quotes(id=two_towers.id,limit=11)assertlen(movie_quotes)==11assertall(isinstance(q,Quote)forqinmovie_quotes)Developing from source? Install like:python3-mvenvlotrsource./lotr/bin/activate
python-mpipinstall-e.Original PromptCreate these endpoints:/movie/movie/{id}/movie/{id}/{quote}/quote/quote/{id}Deploy to package manager like: npm, pip, maven, etc...Fill out design.md
Package: nrich
nrich.pyPython equivalent of the rustnrichprogram, developed by Shodan. Simple async Python program to interact with the Shodan InternetDB API.In addition to the official tool, you can specify subnets, and this tool just unpacks them.Usagenrich.pynrich --help:usage: nrich.py [-h] [-input-file INPUT_FILE] [-output-file OUTPUT_FILE] [-output-type {json,str}] [-skip_missing]

options:
  -h, --help            show this help message and exit
  -input-file INPUT_FILE, -i INPUT_FILE
                        File to parse IPs from, if not given parse from stdin
  -output-file OUTPUT_FILE, -o OUTPUT_FILE
                        file to write IPs to
  -output-type {json,str}, -t {json,str}
                        Format to output in
  -skip_missing, -s     skip IPs with no information on them.parse_internetdb.pyExample script to parse the shodan internet.db outputInstallationMake a virtual environment and install dependencies, like so:python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txtNix usersnix developLicenseGPLv3, see license.txt
Package: nr.interface
Note: This package is in the dangerous land of0.x.yversions and may be subject to breaking
changes with minor version increments.Important: Development ofnr.interfaceis discontinued. We recommend to use theabcmodule instead.nr.interfaceInterface definitions for Python. Inspired byzope.interface.Quickstartfromnr.interfaceimportInterface,implements,overrideclassPet(Interface):defmake_sound(self)->str:pass@implements(Pet)classDog:@overridedefmake_sound(self)->str:return'Bark!'assert'make_sound'inPet.membersassertPet.implemented_by(Dog)assertlist(Pet.implementations())==[Dog]Copyright © 2020 Niklas Rosenstein
Package: nr.io.graphviz
nr.io.graphvizA simple utility for writing Graphviz files.APIclassnr.io.graphviz.writer.GraphvizWriter(out: TextIO, indent: str = "\t")functionnr.io.graphviz.render.render(graphviz_code: str, format: str, algorithm: str = "dot") -> bytesfunctionnr.io.graphviz.render.render(graphviz_code: str, format: str, algorithm: str = "dot", output_file: Path) -> None
Package: nrk-api
API for NRK. (Norsk rikskringkasting) (Originally intended to support a
CLI)CLI UsageIn addition you will need`ffmpeg<https://ffmpeg.org/>`__, e.g.apt-getinstall ffmpeg(Ubuntu),brew install ffmpeg(macOs)usage: nrkdl [-h] [-s keyword] [-d] [-b] [-sub] [-dr] [-sp SAVE_PATH] [-u URL]
         [-ea EXPIRES_AT]

CLI tool to download video from NRK.

optional arguments:
  -h, --help            show this help message and exit

  -s keyword, --search keyword
                        Search nrk for a show and download files

  -d, --description     Print verbose program description in console
  -b, --browse          Builds a menu where you can choose popular categories
  -sub, --subtitle      Download subtitle for this program too.
  -dr, --dry_run        Dry run, dont download any files.
  -sp SAVE_PATH, --save_path SAVE_PATH
                    Set a save path
  -u URL, --url URL     Use NRK URL as source. Comma separated e.g. "url1, url2"
  -ea EXPIRES_AT, --expires_at EXPIRES_AT
                    Get all files that looses access rights between two
                    dates or a dateSearch> nrkdl -s "brannma"
  2: Brannmann i seks knop
  1: Brannmann
  0: Brannmann Sam

Select a number or use slice notation
0

  .....
  .....
  4: Brannmann Sam S03E29
  3: Brannmann Sam S03E30
  2: Brannmann Sam S03E32
  1: Brannmann Sam S03E33
  0: Brannmann Sam S05E25

Select a number or use slice notation
::

Downloads starting soon.. 23 downloads to go
100%|############################################################################| 23/23 [03:57<00:00, 79.09s/it]URL> nrkdl -u "http://tv.nrksuper.no/serie/bernt-og-erling-paa-nye-eventyr http://tv.nrksuper.no/serie/bertine-paa-besoek"
100%|####################################################################################| 2/2 [00:21<00:00, 13.63s/it]Modulenrk = NRK()
s = await nrk.search("lille jack", strict=True)[0]
for e in await s.episodes():
    await e.download()

all_downloads = nrk.downloads()

# How many files are we gonna download
print(len(nrk.downloads()))
# Start downloading
await all_downloads.start()See example and source file for more examplesUsing DockerTo usenrkdlin a self-contained docker container, the proviededDockerfileshould get you going for a minimalistic install. If you
want to combine this into a standalone command, something like this will
be what you want.#!/bin/sh# export DATA="/mnt/multimedia/tmp" # Set if you don't want downloads to go to your ${HOME}/downloadscd${HOME}/Projects/programming/nrkdl# Path where we can find a checkout of this repositorydockerrun-it-v${DATA:-${HOME}/downloads}:/nrkdl/downloads$(dockerbuild-q.)$*# Open data-path if we are on osx
# [[ $? == 0 ]] && ( open ${DATA} )You can now run it using examplenrkdl-s"brannma".Installpip install nrk_apiWhy should you use this library?Easy to download entire showsBrowsing featuresFixes up tvshows fucked up naming so it can be parsed by
kodi/plex/embyPretty fast, maxes my 500 mbit connection.Similar toolsIf you need a guiOther cli toolnrk written in phpnrk-tv-downloader written in
bashnrk-download cli toolUse the search there is loads of nrk options.