Saravanan666/pypi-org huggingface dataset:
Package: nekontrol
nekontrol - Control your kattis solutionsThis is a simple program that compiles, runs and tests your kattis solutions
against local and sample input and output.DemoFeaturesAutomatically downloads sample input and outputDiscovers local sample input and outputCompiles your source code and runs it with local and sample input and outputIgnores debug messages - ignores lines starting with "dbg" or "debug" and
inline messages "(dbg...)" and "(debug...)". If debug lines are discovered
then you are notified in the output so that you don't submit something that is
incorrect.The current supported languages are:C++ (requiresc++in your path)Rust (requirestrustcin your path)Python (requires python in your path)Haskell (requiresghcin your path)Lua (requiresluain your path)JavaScript (Node) (requiresnodein your path)NoteNekontrol will try to find a way to run your program, but it is not guranteed
that the program it uses matches the version that kattis has. For instance
kattis runs python with pypy 3.8. Nekontrol will try to run it with pypy 3.8,
but will fall back to other versions if it cannot be found.Adding more languages is left as an exercise for the reader.UsageSimply runnk <source file>and it should hopefully compile (if needed)
and run!nkassumes that the name of the source files matches the name of the
problem (found in the url, ex.https://open.kattis.com/problems/hello).
If this assumption is incorrect, you can specify the problem with--problem <problem name>. Local files are still matched with the filename
regardless of the problem specified.Input and output files should follow the format<filename>.inor<filename>.<number>.inand corresponding outputs are named<filename>.ansetc. where<filename>comes fromnk <filename>.cppfor instance.NoteMultiple files are not supported as of yetRequirementsThe requirements of this program is only having python 3.10 or newer as well
pipA half decent terminal, almost anything other than cmd.exe on windows will
workInstall or updateTo install or update, run the following.pipinstall-UnekontrolNow it should hopefully work, enjoy!NixThere is a flake for Nix users, but if you use Nix I trust you know how to use
flakes.OtherIf you are thinking "nekontrol is a kinda weeby name", I ask you: have you
ever tried coming up with an original name?
Package: neko.py
Neko.pyA Python API Wrapper forNekoBot APIusageimportnekoclient=neko.NekoClient(token)asyncdefget_image():image=awaitclient.generate_image('baguette','https://example.com/image.jpg')returnimage.urlasyncdefmain():image_url=awaitget_image()print(image_url)asyncio.run(main())
Package: nekosama
NEKO SAMA API[!WARNING]
Dropping support for this. It still works as of late 2023, but you might expect bugs in the future.An API wrapper for theneko-sama.franime website. It supports searching and downloading with different
qualities and providers.SetupUse python3.11or higherInstall using pip:pip install nekosamaOptionally, install FFMPEG to your system.UsageDownloading a whole anime season:importnekosamaasnsclient=ns.Client()anime=client.get_anime('https://neko-sama.fr/anime/info/9520-tensei-shitara-slime-datta-ken_vostfr')anime.download('slime/',quality=ns.quality.HALF)Downloadnig a single episode:episode6=anime.episodes[5]episode6.download('ep6.mp4',quality=ns.quality.BEST)Searching for animes:importnekosamaasnsclient=ns.Client()slimes=client.search('slime datta ken',lang='VOSTFR')DocsA simple documentation is availablehere.
For more information, see docstrings and source code.LicenseThis project uses the MIT license. See theLICENSEfile.
Package: nekosbest
nekos-best.pyA simple async Python wrapper fornekos.bestAPI.Join the official Discord serverhere.Requirementsaiohttp (>=3.6.2)InstallationMake sure to have pip installed in your environement. It will also install all requirements.pipinstall-UnekosbestExampleimportasynciofromtypingimportUnionfromnekosbestimportClient,Resultclient=Client()asyncdefget_img(type:str,amount:int=1)->Union[Result,list[Result]]:result=awaitclient.get_image(type,amount)print(result)loop=asyncio.get_event_loop()loop.run_until_complete(get_img("nekos"))# <Result url=https://nekos.best/api/v1/nekos/0356.jpg artist_href=https://www.pixiv.net/en/users/38378485 artist_name=奥馬 source_url=https://www.pixiv.net/en/artworks/88188062>loop.run_until_complete(get_img("nekos",2))# [<Result url=https://nekos.best/api/v1/nekos/0072.jpg artist_href=https://www.pixiv.net/en/users/12191 artist_name=こみやひとま source_url=https://www.pixiv.net/en/artworks/66834141>, <Result url=https://nekos.best/api/v1/nekos/0215.jpg artist_href=https://www.pixiv.net/en/users/3684923 artist_name=ひゅらさん source_url=https://www.pixiv.net/en/artworks/79697176>]Breaking changesMigrate from 0.x.x to 1.0.0Client.teardownhas been removed, it is no longer needed to pass it when closing.Migrate from 1.0.20 to 1.1.0nekosbest.Result.source_detailshas been removed. Source details are now inResult.And therefore,nekosbest.Resultsandnekosbest.SourceDetailsgot removed too.
Package: nekosfw
NEKOSFWDeveloped by Crian69 (c) 2021Installing The PackagepipinstallnekosfwExamples of How To UseInitializing the image type to receivefromnekosfwimportImageTypeimagetype=ImageType.Foxgirl# Other CodeAll the currently available image types are:WaifuKitsuneNekoKemonomimiFoxgirlGetting the image linkfromnekosfwimportImageTypefromnekosfwimportgetImageimportasyncioasyncdefmain():imagetype=ImageType.FoxgirlimageUrl=awaitgetImage(imagetype)returnimageUrlif__name__=="__main__":loop=asyncio.get_event_loop()x=loop.run_until_complete(main())# Return the image url
Package: nekoslife
NekoslifeAn unofficial wrapper fornekos.life apiwith proxy support.Installation:pip install nekoslifeUsage:fromnekoslifeimportLifelife=Life()asyncdeffunc():data=awaitlife.img_neko()returndata.get("url")To use proxy:life=Life(proxy=True)List of available modules:life=Life()print(life._endpoints)Features:Fully Asynchronous.Proxy Support.Easy to use.LightweightFast even with proxy
Package: nekoton
nekoton-pythonPython bindings for NekotonUsageInstallpip install nekotonExampleimportasyncioimportnekotonasntgiver_abi=nt.ContractAbi("""{"ABI version": 1,"functions": [{"name": "sendGrams","inputs": [{"name": "dest", "type": "address"},{"name": "amount", "type": "uint64"}],"outputs": []}],"events": []}""")send_grams=giver_abi.get_function("sendGrams")assertsend_gramsisnotNoneclassGiver:def__init__(self,transport:nt.Transport,address:nt.Address):self._transport=transportself._address=address@propertydefaddress(self)->nt.Address:returnself._addressasyncdefgive(self,target:nt.Address,amount:nt.Tokens):# Prepare external messagemessage=send_grams.encode_external_message(self._address,input={"dest":target,"amount":amount,},public_key=None).without_signature()# Send external messagetx=awaitself._transport.send_external_message(message)iftxisNone:raiseRuntimeError("Message expired")# Wait until all transactions are producedawaitself._transport.trace_transaction(tx).wait()asyncdefmain():transport=nt.JrpcTransport('https://jrpc-broxustestnet.everwallet.net')awaittransport.check_connection()giver=Giver(transport,Address('-1:1111111111111111111111111111111111111111111111111111111111111111'))awaitgiver.give(giver.address,nt.Tokens(10))asyncio.run(main())Local developmentInstallmaturin.Configure virtual env:python-mvenv.envsource.env/bin/activateDev build:maturindevelopPublishmaturinbuild--release--zig--strip
maturinuploadpath/to/generated/file.whlContributingWe welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.LicenseThis project is licensed under the [License Apache].
Package: nekoyume
Nekoyume is the firstMMORPGbased onblockchain.Nekoyume is entirely decentralized MMORPG game.Nekoyume usesDungeon Worldas a basic rule.To achieve randomness on the blockchain, this project implements Hash random. (Readwhite paperfor details.)DependenciesPython>= 3.6SQLite>= 3.16.0gmp(Recommended)PostgreSQL>= 9.5(Recommended)Redis(Recommended)Docker ComposeInstallationInstallation for development$gitclonegit@github.com:nekoyume/nekoyume.git$cdnekoyume$python3-mvenv.venv$source.venv/bin/activate$pipinstall-e.[dev,test]$gitconfigcore.hooksPathhooks$nekoyumeinitLaunching node$pipinstallhoncho$curlhttps://raw.githubusercontent.com/nekoyume/nekoyume/master/Procfile>Procfile$PORT=5000honchostartMining$nekoyumemine"user private key"Running single node for development$cp.env.dist.env$docker-composebuild$docker-composeup
Package: nekpy
Nek-related utilities in Python.Toolsnekpy.toolssupports common pre- and post-processing tasks, such as populatingSIZE,rea, andusrfiles and callingmakenek.
For the special case of single boxes,nekpy.toolscan also generate meshes and map file.Configurationnekpyreads the paths to simulation and tools installations from the~/.nekpy.jsonfile, which is created with default values if not present.LICENSEMIT. SeeLicense File.
Package: nekrosis
NekrosisA multi-platform persistence toolkit, with the goal of simplifying malware deployment.Developed as a capstone project for the Southern Alberta Institute of Technology's Information Systems Security program (Winter 2024), to demonstrate the many techniques that can be used to achieve persistence on Windows, macOS, and Linux.Please use irresponsibly.Note: This project is still in development, and is not yet ready for use.For contributors, seeCONTRIBUTING.mdfor project architecture and design.SetupRequires Python 3.6 or newer, install from official website when applicable:python.org.Additional dependencies can be installed with pip:python-mpipinstall-rrequirements.txtUsageProject designed to be used either as a library or as a standalone executable.LibraryfromnekrosisimportNekrosisnekrosis=Nekrosis("/path/to/malware")nekrosis.supported_persistence_methods()nekrosis.recommended_persistence_method()nekrosis.install()Executable - Help$ nekrosis (-h | --help)

>>> usage: nekrosis [-h] [-p PAYLOAD] [-m METHOD] [-v] [-l]
>>>
>>> Install a payload for persistence on Windows, macOS, or Linux.
>>>
>>> options:
>>>   -h, --help            show this help message and exit
>>>   -p PAYLOAD, --payload PAYLOAD
>>>                         The payload to install.
>>>   -m METHOD, --method METHOD
>>>                         The custom persistence method to use (optional).
>>>   -v, --version         show program's version number and exit
>>>   -l, --list-supported-methods
>>>                         List the supported persistence methods for the current OS.
>>>   -e {xml,json,plist}, --export {xml,json,plist}
>>>                         Export the supported persistence methods to STDOUT in the specified format.
>>>   -n, --nuke            Remove all traces of Nekrosis and the original payload.
>>>   -s, --silent          Suppress output.Executable - Install PayloadBest method determined by privilege and other environmental factors if no method is specified.$ nekrosis (-p | --payload) <malware> (-m | --method) <method>

>>> Creating persistence
>>>   Payload: <malware>
>>>   OS: macOS
>>>   Effective User ID: 501
>>>   Persistence Method: "LaunchAgent - Current User"
>>> Installing launch service (LaunchAgent - Current User)
>>>   Relocated payload: /Users/target/Library/LaunchAgents/713753
>>>   Service file: /Users/target/Library/LaunchAgents/com.80309.plist
>>>   Service started successfully 🎉Method can also be specified by index starting at 0, example:0 - "LaunchAgent - Current User"
  1 - "LaunchAgent - Electron"AuthorsEzra FastMitchell NicholsonMykola GrymalyukScott BanisterUlysses Hill
Package: nekton
NektonA python package for DICOM to NifTi and NifTi to DICOM-SEG and GSPS conversionSETUPThe python package is available for use on PyPI. It can be setup simply via pippipinstallnektonTo the check the setup, simply check the version number of thenektonpackage bypython-c'import nekton; print(nekton.__version__)'DICOM to NifTiThe DICOM to NifTi conversion in the package is based on a wrapper around thedcm2niixsoftware.Usagefromnekton.dcm2niiimportDcm2Niiconverter=Dcm2Nii()converted_files=converter.run(dicom_directory='/test_files/CT5N',out_directory='/test_files/CT5N',name='Test')# Converted 5 DCM to Nifti; Output stored @ /test_files/CT5Nprint(converted_files)# ['/test_files/CT5N/Test_SmartScore_-_Gated_0.5_sec_20010101000000_5.nii.gz']Parametersconverter.run:dicom_directory (Path): path to directory with Dicomsdicom_directory (Path, optional): directory to store the output niftiname (str, optional): Name to be given to the output file. Defaults to "".Returns:List[Path]: output list of Nifti filesNotesThe renaming functionality retains thesuffixesfrom the original program.The BIDS sidecar json is retained as well.NifTi to DICOM-SEGThe NifTi to DICOM-SEG within nekton converts incoming segmentation NifTi to DICOM-SEG. The matching of the segmentation index to a text label is
done via json file using the schema suggested bydcmqi. The json can be generated using theguialso an example can be seenhere.Currently,nektonsupports creation of multiclass DICOM-SEG of two types-single layer DICOM-SEG, where each non-empty slice has an individual filemulti layer DICOM-SEG, where all the n slices are rolled into a single fileUsageNifTi to single layer DICOM-SEGfromnekton.nii2dcmimportNii2DcmSegimportglobconverter=Nii2DcmSeg()path_dcms=[pathforpathinglob.glob(dir_dcms)]path_mapping="mapping.json"path_seg_nifti="CT5N_segmentation.nii.gz"dcmsegs=converter_dcmseg.multiclass_converter(segfile=path_seg_nifti,segMapping=path_mapping,dcmfiles=path_dcms,multiLayer=False)print(len(dcmsegs))# 3NifTi to multi layer DICOM-SEGfromnekton.nii2dcmimportNii2DcmSegimportglobconverter=Nii2DcmSeg()path_dcms=[pathforpathinglob.glob(dir_dcms)]path_mapping="mapping.json"path_seg_nifti="CT5N_segmentation.nii.gz"dcmsegs=converter.multiclass_converter(segfile=path_seg_nifti,segMapping=path_mapping,dcmfiles=path_dcms,multiLayer=True)print(len(dcmsegs))# 1Parametersconverter.multiclass_converter:segfile (Path): path to the nifti segmentation filesegMapping (Path): path to the dcmqii format segmentation mapping jsondcmfiles (List[Path]): list of paths of all the source dicom filesmultiLayer (bool, optional): create a single multilayer dicomseg. Defaults to False.Returns:List[Path]: list of paths of all generated dicomseg filesNotesMultilabel NifTi(in the form of a NifTi file for a single label) to DICOM-SEG is under development.NifTi to GSPSThis feature will be available in a future release of the nekton
Package: nekumo
Nekumo allows you to work with your files anywhere. Using Nekumo is very easy: run it in a directory and share
your files with the world.$ nekumo /directory/to/serve
Welcome to Nekumo Cloud! Your personal cloud. Serving:
  /directory/to/serve/ (FS)
Interfaces on use:
  http://0.0.0.0:7080 (AngularWeb)Install$ pip install nekumoFeaturesOpen, move, copy and delete files.Thumbnails for your files without opening them.Preview files (audio, video, image).Send videos to Chromecast.Changes are displayed in real time (Websockets) including changes made by external programs.Modern Angular Material responsive web interface.Future featuresTests.Users and permissions.Openstack Gateway.Search.Upload files.Download multiple files.Text and sourcecode editor.
Package: neldermead
# neldermeadNelder-Mead implementation[![CircleCI](https://circleci.com/gh/nmasahiro/neldermead.svg?style=shield)](https://circleci.com/gh/nmasahiro/neldermead)## Getting Started### PrerequisitesYou need only [NumPy](http://www.numpy.org/) that is the package for scientific computing.### InstallingPlease run the following command.```bash$ pip install neldermead```## ExampleThis is a simple example that objective function is sphere function.```pythonimport numpy as npfrom neldermead import NelderMeaddim = 3f = lambda x: np.sum(x**2)simplex = np.zeros([dim, dim + 1])for i in range(dim + 1):simplex[:, i] = np.array([np.random.rand() for _ in range(dim)])nm = NelderMead(dim, f, simplex)x_best, f_best = nm.optimize(100)print("x_best:{}, f_best:{}".format(x_best, f_best))#x_best:[[-1.48045204e-08]# [-1.80962770e-08]# [ 5.08040874e-08]], f_best:3.1277043680572982e-15```## VersioningWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/nmasahiro/neldermead/tags).## LicenseThis project is licensed under the MIT License - see the [LICENSE](https://github.com/nmasahiro/neldermead/blob/master/LISENCE) file for details
Package: nelean
A Lisp formatterDeterministic, like Black and Prettier!Tolerable defaults!Works with at least one Lisp dialect!Nealean is a deterministic Lisp formatter.  It chops your source up and puts it back together again, better.Install with:pip3 install --user neleanUninstall with:pip3 uninstall --user neleanUse with Vim withNeoformatwith the hotkey "shift-L" with:let g:neoformat_scheme_n = { 'exe': 'nelean', 'args': [], 'stdin': 1, 'replace': 0, 'valid_exit_codes': [0], }
let g:neoformat_enabled_scheme = ['n']
nnoremap L :Neoformat<Cr>Nelean has no dependencies, so you can also just copynelean.pysomewhere in yourPATH.Additional options are availabile via the command line help.The name comes from a famous professor of penmanship I found on Wikipedia,D'Nelean.
Package: neleval
Entity linking evaluationPython command-line evaluation scripts forTACentity linking and related wikification, named entity disambiguation, and
within- and cross-document coreference tasks.It aims forfastandflexiblecoreference resolution andsophisticatednamed entity recognition evaluation, such as partial scores
for partial overlap between gold and system mentions. CEAF, in particular, is
much faster to calculate here than in theCoNLL-11/12 scorer. It boasts features
such as configurable metrics; accounting for or ignoring cross-document
coreference (see theevaluate--by-docflag); plotting to compare
evaluation by system, measure and corpus subset; and bootstrap-based confidence
interval calculation for document-wise evaluation metrics.Requires thatpython(2.7, with Py3k support experimental/partial)
be installed on your system withnumpy(and preferablyscipyfor
fast CEAF calculation) andjoblib.matplotlibis required for
theplot-systemscommand.See a list of commands with:./nel--helpOr install onto your Python path (e.g. withpip installgit+https://github.com/wikilinks/neleval) thenpython-mneleval--helpTAC-KBP 2014 EDL quickstart./scripts/run_tac14_evaluation.sh\/path/to/gold.xml\# TAC14 gold standard queries/mentions/path/to/gold.tab\# TAC14 gold standard link and nil annotations/system/output/directory\# directory containing (only) TAC14 system output files/script/output/directory\# directory to which results are writtennumber_of_jobs# number of jobs for parallel modeEach file in in the system output directory is scored against gold.tab.Similar facility is available for TAC-KBP’15 EDL.More detailsSeethe documentationfor more
details.
Package: nelkit
Nelkit is a collection of tools aimed to help network engineers.InstallationInstall using pip:$pipinstallnelkitToolsThese tools are currently included:nk-compare-configs - Preforms audits of configuration files for network devicesnk-snmp-deviceinfo - Polls a network device using SNMP to show vendor and version informationRelease History0.0.5Allow configuration of baseline file for nk-compare-configs0.0.4Bugfixes for nk-snmp-deviceinfo0.0.3Speed improvements for nk-compare-configs0.0.2Added description for the tests used by nk-compare-configs0.0.1First initial release
Package: nelly
Matthew Shaw <mshaw.cx@gmail.com><%pre
    import sys
%>

::NT(start)
    : 'A' # comment
    | 'B' <% print($$) %>
    ;

<%post
    print($$)
%>ConstantsConstants in productions can consist of double-quoted strings, single-quoted strings, decimal, hexadecimal.A: "A" | 'A' | \d65 | \x41;ConcatenationProductions are concatenated when they are seperated by white-space.CONCAT: "CONC" \x41 "TEN" \d65 "TION";SelectionWhen multiple productions are present one is chosen at random.NUMBER: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';GroupingGRP: ('A'|'B') ('C'|'D');Possible values are ‘AC’, ‘AD’, ‘BC’, or ‘BD’.RangesNUM1: ('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'){3};
NUM2: ('0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'){1,5};NUM1 will generate a 3-digit number while NUM2 will generate a number of random length between 1 and 5 digits.SlicingA sub-string of a production can be referenced using indices.SLICE1: "0123456789" [:];    // 0123456789
SLICE2: "0123456789" [4];    // 4
SLICE3: "0123456789" [:4];   // 0123
SLICE4: "0123456789" [4:];   // 456789
SLICE5: "0123456789" [2:8];  // 234567
SLICE6: "0123456789" [-4];   // 6
SLICE7: "0123456789" [-4:];  // 6789
SLICE8: "0123456789" [:-4];  // 012345
SLICE9: "0123456789" [2:-2]; // 234567The output of each production is documented in the comment proceeding it.Inline Python<%pre
    import base64
%>

NT: %base64.b64encode('string');Non-TerminalsNT1: "The value of NT2 is " NT2;
NT2: "substitution";Semantic Actions$$PSA1: PSA2 <% var = $$ %>;
PSA2: "one" | "two";In this example the Python variablevarwill contain either ‘one’ or ‘two’ for future use.Variable Non-Terminals$*NT1: $NT2;

$NT2:
  "I WILL BE SUBSTITUTED INTO NT1 IN LOWERCASE"
  <%
    $* = $$.lower()
  %>
  ;Back ReferenceBR: "A" | "B";
NT: BR \BR;$BR: ("a"|"b") <% $* = $$.upper() %>;
NT: $BR \$BR;In both casesNTwill generate the string ‘AA’ or ‘BB’ but not ‘AB’ or ‘BA’.
Package: nelmon
Install using pip:$pipinstallnelmonOr if you want the plugins to be installed to your Nagios plugins directory$pipinstallnelmon--install-option="--install-scripts=/usr/local/nagios/libexec"When you need to upgrade:$pipinstall-Unelmon--install-option="--install-scripts=/usr/local/nagios/libexec"Release History1.3.6 (2017-09-30)Bugfixes due to changes in nelsnmp1.3.5 (2016-11-04)New plugin nm_notify_slackBugfix for SNMPv31.3.4 (2015-10-14)Performance data (connections) using nm_check_asa_connections1.3.3 (2015-08-31)Monitor compliance with nm_check_version (-d)1.3.2 (2015-08-27)Changes for nelsnmp v0.2.11.3.1 (2015-08-09)Added nm_check_environment1.3.0 (2015-07-29)Added nm_check_uptimeAdded nm_check_version (only reports in this version)1.2 (2015-07-26)Added nm_check_admin_up_oper_downAdded nm_check_asa_connectionsCleaned up code1.1 (2015-07-25)First release to pypi
Package: nelsie
NelsieNelsie allows you to create slides programmatically using Python. It is a library
with a Python API and a renderer written in Rust.
The output is a PDF file or a set of SVG/PNG files.There is no DSL or GUI; presentations created with Nelsie are fully programmed in Python.
We believe that creating presentations in a programmable way
makes the process of creating slides smoother and more reliable.Nelsie focuses on controlling what the audience sees, so you can continuously reveal fragments of the slide,
or simply manage which parts are highlighted.Quick linksDocumentationDemonstration of features (PDF,source code)Hello worldfromnelsieimportSlideDeckdeck=SlideDeck()@deck.slide()defhello_world(slide):slide.text("Hello world!")deck.render("slides.pdf")Steps revealingNelsie allows you to easily reveal parts of slides:@deck.slide()defsteps_demo(slide):semaphore=slide.box(width=100,height=300,bg_color="gray")semaphore.box(y=InSteps([20,110,210]),# Set "y" coordinate for each stepwidth=80,height=80,bg_color=InSteps(["red","orange","green"]),# Set color for each step)slide.code("""fn main() {// Print text to the console.println!()"Hello World!");}""","Rust",show=4,# Show in 4. stepm_top=80,)The code generates four  PDF pages:Installation$ pip install nelsie