Saravanan666/pypi-org huggingface dataset:
Package: nigsp
NiGSPA python library (and toolbox!) to run Graph Signal Processing on multimodal MRI data.
Full documentationon ReadTheDocsThe project is currently under development stage beta.
Any suggestion/bug report is welcome! Feel free to open an issue.This project follows theall-contributorsspecification. Contributions of any kind welcome!CiteIf you usenigspin your work,please cite either the all-time Zenodo DOIor the Zenodo DOI related to the version you are using.
Please cite the following paper(s) too:Preti, M.G., Van De Ville, D.Decoupling of brain function from structure reveals regional behavioral specialization in humans. Nat Commun 10, 4747 (2019).https://doi.org/10.1038/s41467-019-12765-7.If you are using the Couple/Decoupled Functional Connectivity, please cite also:Griffa, A., et al.Brain structure-function coupling provides signatures for task decoding and individual fingerprinting. NeuroImage 250, 118970 (2022).https://doi.org/10.1016/j.neuroimage.2022.118970.Stefano Moia🤔💻🚇📖📆Nawal Kinani🎨Mathieu Scheltienne🚇📦Maria Giulia Preti🧑‍🏫🤔💻🖋Dimitri Van De Ville🧑‍🏫🤔🖋💵LicenseCopyright 2022, Stefano Moia, EPFL.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: nihao
检测字符串中是否包含中文字符概述Unicode 是全球文字统一编码。它把世界上的各种文字的每一个字符指定唯一编码，实现跨语种、跨平台的应用。中文用户最常接触的是汉字 Unicode 编码。中文字符数量巨大，日常使用的汉字数量有数千个，再加上生僻字，数量达到数万个。下面这个表格将中文字符集的 Unicode 编码范围列出：字符集字数Unicode编码范围基本汉字209024E00-9FA5基本汉字补充749FA6-9FEF扩展A65823400-4DB5扩展B4271120000-2A6D6扩展C41492A700-2B734扩展D2222B740-2B81D扩展E57622B820-2CEA1扩展F74732CEB0-2EBE0扩展G493930000-3134A康熙部首2142F00-2FD5部首扩展1152E80-2EF3兼容汉字477F900-FAD9兼容扩展5422F800-2FA1DPUA(GBK)部件81E815-E86F部件扩展452E400-E5E8PUA增补207E600-E6CF汉字笔画3631C0-31E3汉字结构122FF0-2FFB汉语注音433105-312F注音扩展2231A0-31BA〇13007根据上述字符范围，可以使用本工具来识别给定字符串是否含义中文字符。安装方法pipinstallnihao使用方法importnihaoa='这里包含了中文abcded'b='there is no chinese here'deftest_chinese1():result=nihao.containChinese(a)expected=Trueassertresult==expecteddeftest_chinese2():result=nihao.containChinese(b)expected=Falseassertresult==expected
Package: nihao-pypi
NIHAO PYPIInstallationFrom source code:python setup.py installFrom pypi:pip install nihao-pypiWorkshop<script src=”https://gist.github.com/sunwei/8cb78d270ff1cd3414bbe3ae10fd4fad.js”></script>LicenseThis software is licensed under theMIT licenseSeeLicense fileChangelog0.1.0Update readme0.0.1Initial release
Package: nihilo
This package allows you to do the fantastic import:>>> from nihilo import nihilThis is a nice object which behaves like None but does accept method calls.
Why would you want this?So, we have:>>> a_dict = { 'who': 'Parmenides' }
>>> print a_dict.get('who')
Parmenides
>>> print a_dict.get('where')
NoneBut you might want to do:>>> a_dict.get('who').startswith('g')
False
>>> a_dict.get('where').startswith('g')
Traceback (most recent call last):
...
AttributeError: 'NoneType' object has no attribute 'startswith'With nihil, you can do:>>> print a_dict.get('where', nihil).startswith('g')
nihil()Note that casting to bool returns false, so you can easily test..:>>> if a_dict.get('where', nihil).startwith('g'):
...   print "got it!"nihil is very flexible, it will also allow you to call almost any method
and it will return itself:>>> nihil.foo.bar('quux', frop=True)
nihil()And remember, ex nihilo nihil fit.
Package: nih-scraper
Titlenih ScraperDescrptionWith nih Scraper you can scrape search results and extract the contents produced by the search result.In nih scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.JSON sample data{"Scraper_NIH":[{"blank_link":"https://www.pbs.org/wnet/amanpour-and-company/video/nih-director-our-culture-wars-are-killing-people/","element_invisible_link":"/collins/20211103-dc-amanpour.jpg","file_image":"20211103-dc-amanpour.jpg","teaser_title":"In conversation with Walter Isaacson, Dr. Collins discusses a variety of topics including his decision to step down as NIH director, COVID-19 vaccines, and the Human Genome Project(link is external)","time":"November 3, 2021"}Click Here for moreRun Scraperfromnih_scraperimport*link="https://www.nih.gov/about-nih/what-we-do/nih-almanac"data=run_nih_scraper(link)How it works?It takes URL of nih page with a search keyword to scrape the data.It generates the json data which contains the information of the nih search result.It gives the every detail present inside website in the form of json data.ExamplesBelow are some of the examples of URLs using which you can scrape:Example 1Example2Queries/ FeedbackIf you have some queries or feedback please contact us at followingTelegramEmail
Package: nihtest
This is nihtest, a testing tool for command line utilities.Tests are run in a sandbox directory to guarantee a clean separation of the test.It checks that exit code, standard and error outputs are as expected and compares the files in the sandbox after the run with the expected results.It is written in Python.It is documented in man pages:nihtest(1), the config
file formatnihtest.conf(5)and the test
case languagenihtest-case(5).The man pages are included in the source distribution tarball in themanpagesdirectory in man (Linux-like), mdoc (BSD), and HTML
format. When you're packaging nihtest, please make sure they are
installed in an appropriate location.
Package: nii2png
NIfTI Image Converter (nii2png) for Python and MatlabRejoice OpenCV users, a lightweight neuroimaging .nii to .png converter that actually works.Now supports both Python3 and Matlab 2017b!Input 4D fMRI or 3D MRI NIfTI file (i.e. brain.nii)Rotate orientation of your imageAutomatically creates .png files for every single slice in every volume.Automatically renames your images with their slice and volume name (i.e. brain_t001_z001.png, etc)Automatically moves all your images into a chosen folder within your working directory.Unlike other tools out there, this just works.EnvironmentPython 3.7 (or Matlab 2017b)Matlab UsageAdd your script to your path. And run it simply by typing this and hitting enter:nii2pngSelect your working directory.Select your NIfTI image.Rotate your image if you wish:>> Would you like to rotate the orientation? (y/n)
>> y
>> OK. By 90° 180° or 270°? 
>> 90Let it run.Your png files are now in the png folder of your working directory.Download nii2png for Matlab 2017bDownload Latest Build:DownloadDownload Stable Release:DownloadPython SetupModulesscipyshutilosnibabelnumpyBasic SetupFor those without Python, Pip or the modules, simply open Terminal and type in the following commands and hit enter.Install Homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Install Python 3brew install python3Install pipsudo easy_install pipInstall pluginspip install scipy

pip install shutil

pip install os

pip install nibabel

pip install numpyDownload nii2png for PythonDownload Latest Build:DownloadDownload Stable Release:DownloadPermissionsOn unix systems, Python scripts can be made executable using the following process:$ chmod +x nii2png.pyOptional: You can also movenii2png.pyinto your bin directory, and it will be runnable from anywhere.Python UsageLet's run the file and start converting images! Please ensure that your output folder ends with a slash to avoid errors.$ python3 nii2png.py -i <inputfile> -o <outputfolder>or$ python3 nii2png.py --input <inputfile> --ouput <outputfolder>Tip: You can drag and drop the file/folder into the terminal window instead of typing the pathRotate the images if you wish$ Would you like to rotate the orientation? (y/n) y
$ OK. By 90° 180° or 270°? 90Examplewith change directory command$ cd ~/images/
$ python3 nii2png.py -i brain.nii -o png/with full paths$ python3 /users/ernie/images/nii2png.py -i /users/ernie/images/brain.nii -o /users/ernie/images/png/with long options$ python3 /users/ernie/images/nii2png.py --input /users/ernie/images/brain.nii --output /users/ernie/images/png/
Package: niicat
niicatThis is a tool to quickly preview nifti images on the terminal.
This can be helpful if you are working on a remote server via SSH and do not have
a -X connection. It useslibsixelto display the images.
Niicat can also display png, jpg or similar images.Install:pip install niicatUsage:niicat T1.nii.gzPossible problemsIf nothing is displayed check if yourterminal supports sixel.Per default niicat is trying to use libsixel-python. If this is causing problems you can also try using niicat with
the option-icif you are using iterm2 (this will useimgcatfrom iterm2) or
with the option-lb(this will uselibsixel-binwhich can be installed viasudo apt install libsixel-bin).Niicat was only tested on python >= 3.5.CopyrightCopyright © German Cancer Research Center (DKFZ), Division of Medical Image Computing (MIC).
Please make sure that your usage of this code is in compliance with thecode license.
Package: nii-info
nii-infoDisplay NIfTI image information in a tabular formatInstallationpipinstallnii-infoMotivationThis package attempts to provide a quick and easy way to get a high-level overview of a collection of NIfTI images.Often when dealing with a collection of NIfTI images the metadata describing those images is embeded across multiple files, specifically the nii images themselves, as well as potential JOSN sidecar files.Of course, one can crack open a NIfTI file to inspect the header, or load a JSON sidecar into an editor to view its contents. However this quickly becomes tedious when one is dealing with many files and many fields of interest.nii-infocollects the values of fields of interest across a set of NIfTI files and aggregates them in a tablular format.Usagenii-infoexposes a CLI:nii$ nii --help
usage: nii [-h] [-o OUT_TSV] [-f FIELDS] [-v] [-D]
           path [path ...]

Display NIfTI image information in a tabular format

...

positional arguments:
  path                  nifti files or directories
                        containing nifti files,
                        directories are searched
                        recursively

optional arguments:
  -h, --help            show this help message and exit
  -o OUT_TSV, --out-tsv OUT_TSV
                        file to write info to. (default:
                        stdout)
  -f FIELDS, --fields FIELDS
                        Fields to include in the table.
  -v, --version         show program's version number and
                        exit
  -D, --debug           run program in debug modeTheniiCLI accepts a list of files and/or directories. Directories are searched recursively for*.niiand*.nii.gzfiles.Simple usage might look something like:nii/path/to/nii/file1.nii.gz/path/to/nii/file2.nii.gz/path/to/nii/dir/Modifying Fields/ColumnsThis application enables the user to modify which JSON sidecar & NIfTI header fields are included in the generated output via the-f/--fieldsoption.The-foption can be passed multiple times and uses a special syntax.The argument for the-foption should be string of comma-separated values, where each value contains the "location", sidecar or nii header "key", and optional "label".For example, to add theFlipAngleandInversionTimefields from the sidecars as well as thedatatypeanddescripfields from the NIfTI headers to the default set of outputs, the command could look something like:nii\-f'sidecar:FlipAngle,sidecar:InversionTime'\-f'header:datatype,header:descrip:Header Description'\/path/to/nii/dir/In the above example,sidecar:FlipAngletells the application to extract theFlipAnglefield from each image's sidecar.Additionally,header:descrip:Header Descriptiontells the application to extract thedescripfield from each image's NIfTI header and use the labelHeader Descrptionas the column heading.ContributingHave or install a recent version ofpoetry(version >= 1.1)Fork the repoSetup a virtual environment (however you prefer)Runpoetry installRunpre-commit installAdd your changes (adding/updating tests is always nice too)Commit your changes + push to your forkOpen a PR
Package: nijel-thepay
ThePayLibrary for accesing ThePay payment gateway from pythonExampleConfigure ThePay accountfromthepay.configimportConfigconfig=Config()config.setCredentials(12345,12345,'abcdefg12345','abcdefg12345')# Credentials from ThePay account settingsList available payment methodsfromthepay.dataApiimportDataApidata_api=DataApi(config)payments=data_api.getPaymentMethods()print methods as radio buttons with images<div>{%forpaymentinpayments%}<divclass="payment-method"><inputtype="radio"name="payment_method"value="{{ payment.id }}"id="payment_{{ payment.id }}"><labelfor="payment_{{ payment.id }}"title="{{ payment.name }}"><imgsrc='http://www.thepay.cz/gate/images/logos/public/209x127/{{ payment.id }}.png'alt="{{ payment.name }}"></label></div>{%endfor%}</div>Redirect user to ThePay - create paymentfromthepay.paymentimportPaymentpayment=Payment(config)payment.setValue(321)payment.setMethodId(13)# ID of payment method from abovepayment.setCustomerEmail('test@test.te')payment.setDescription('Order 123 payment')payment.setReturnUrl('https://example.com/payment')# where to redirect user after paymentpayment.setMerchantData(123)# Any custom data - not visible to userpayment.getCreateUrl()# Redirect user to this URL to begin paymentCheck incomming paymentThis code should be run onreturnUrlfrom above codefromthepay.paymentimportReturnPaymentreturn_payment=ReturnPayment(config)return_payment.parseData(self.request.GET)# Pass all GET received data in form of dict()ifnotreturn_payment.checkSignature():returnFalse# Invalid payment signaturereturn_payment.getMerchantData()# -> 123, previously saved custom datareturn_payment.getValue()# -> 321return_payment.getStatus()# Order status, see next paragraphOrder statuses2 = STATUS_OK3 = STATUS_CANCELED4 = STATUS_ERROR6 = STATUS_UNDERPAID7 = STATUS_WAITING9 = STATUS_CARD_DEPOSITGet info about paymentpayment_id=return_payment.getPaymentId()payment=data_api.getPayment(payment_id)# returns object with all payment dataLicenseLGPL
Package: nijtaio
NijtaIOThenijtaiolibrary provides helper functions to streamline access to Nijta's API for Python application. It includes helper functions to prepare and retrieve the audio data.You can find usage examples in our API reference and the Nijta samples repository.InstallationYou can install the module usingpip:pipinstallnijtaioBasic UsageimportosimportjsonimporttimeimportnijtaioTOKEN='<token>'API_URL='https://api.nijta.com'headers={"Content-Type":"application/json; charset=utf-8","TOKEN":TOKEN}params={'language':'french_8','gender':'f','voice':True,'content':True}output_folder='output'session_id=nijtaio.session(TOKEN,api_url=API_URL)response=nijtaio.send_request(["path/to/audio_1.wav","path/to/audio_2.wav"],params,session_id,headers=headers,api_url=API_URL)task_id=json.loads(response.content)['data']['task_id']print('Waiting for the batch to be processed.')whileTrue:time.sleep(1)status,anonymized_batch=nijtaio.read_response(task_id,api_url=API_URL)ifstatus=='finished':breakprint(f'Writing results in{output_folder}.')fororiginal_filepathinanonymized_batch:filename=os.path.basename(original_filepath)withopen(os.path.join(output_folder,filename),mode='wb')asf:f.write(anonymized_batch[original_filepath]['audio'])ifparams['content']:print(filename,anonymized_batch[original_filepath]['transcription'])print(f'Done. Check the results in the{output_folder}directory.')
Package: nik
nikGeneral Informationnikis a simplistic, versatile implementation of theZettelkastennote-taking method roughly based on the originalZettelkastenintroduced by German sociologist and philosopherNiklas Luhmann. It is based on plain-text markup files and intends to not get into your way whenever possible. Think of it more like a useful companion that helps you to browse, navigate and visualize your text-based Zettelkasten.FeaturesPlain-text markup files (Markdown,Org-mode,AsciiDoc)HTML based web view of your Zettelkasten (usingstatic site generator)LaTeX support for web view (using MathJax)GraphMLexport of your ZettelkastenInstallationYou can installnikfromThe Python Package Index (PyPI). To do this, run the following command:pip install nikUsage (CLI)Initialize a directory as your Zettelkasten withnik init <PATH>. Following on you can either provide the path to the Zettelkasten directly (-doption) or use theenvironment variableZETTELKASTEN_PATHto point to your Zettelkasten. To show some basic information about your Zettelkasten runnik status. You can always runnik --helpto ask for help.Usage (Python)Did you know thatnikis both a command-line tool and a Python library? This is how it works:fromnikimportZettelkastenpath='~/Zettelkasten'z=Zettelkasten(path)# Let's perform a rescan of the Zettelkasten directoryz.scan()# Print all files in the indexprint(z.index.files)DevelopmentCreate and activate virtual environment: e.g.mkvirtualenv -p /usr/bin/python nikInstall:pip install -e .Run:python -m nik
Package: nik2img
nik2imgGenerate Mapnik graphics from the command lineDescriptionUse nik2img to interact with the Mapnik C++/Python mapping toolkit from the command line.RequirementsMapnik >=0.6.0Tests only work with >= Mapnik 0.7.2Installing nik2imgTo run this program::Make sure you have Mapnik installed (https://trac.mapnik.org/wiki/MapnikInstallation)Then install nik2imgSee INSTALL.txt for detailsFor more info see:http://code.google.com/p/mapnik-utils/wiki/Nik2ImgTroubleshootingPost issues you encounter athttp://code.google.com/p/mapnik-utils/issues/listSee alsohttp://code.google.com/p/mapnik-utils/http://mapnik.org/http://trac.mapnik.org/
Package: nikamap
NikamapNikamap is a  python package to manipulate data produced by the IDL NIKA2 pipeline.To get started using these components in your own software, please go to the
repositoryREADME.Licensenikamapis licensed under the terms of the MIT license. See the file
“LICENSE” for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2017–, Alexandre Beelen, Laboratoire d’Astrophysique
de Marseille.
Package: nikefy
NikefyPython library that amasses metadata from Nike.com website.OverviewNikefy will allow users to quickly access metadata from Nike.com website such as products and prices data.Create a database that easily queries shoesEasily find sold out productsFind out most popular products via ratingsInstallpip install nikefyUsageimportnikefyasnfurl='https://www.nike.com/w/mens-shoes-nik1zy7ok'nf.get_nike_products(url)nike_products=nf.get_nike_products(url)sorted_nike_products=sort_nike_products(nike_products,sort_order='asc')filtered_nike_products=filter_nike_products(nike_products,price_range=(100,150),product_type="Men's Shoes")get_nike_products()gets Men's shoes products from Nike.com website and returns a dataframesort_nike_products()sorts Men's shoes products based on pricefilter_nike_products()filters Men's shoes based on price range and typeExampleRunning the following codeimportnikefyasnfurl='https://www.nike.com/w/mens-shoes-nik1zy7ok'nike_products=nf.get_nike_products(url)print(nike_products)Outputs something like this to the consoleProduct Name Price  ...                                        Description                                        Product URL
0                         Nike Pegasus 40  $130  ...  A springy ride for every run, the Peg’s famili...  https://www.nike.com/t/pegasus-40-mens-road-ru...
1                     Nike Dunk Low Retro  $110  ...  Created for the hardwood but taken to the stre...  https://www.nike.com/t/dunk-low-retro-mens-sho...
2                        Air Jordan 1 Low  $110  ...  Inspired by the original that debuted in 1985,...  https://www.nike.com/t/air-jordan-1-low-mens-s...
3                        Air Jordan 1 Mid  $125  ...  Inspired by the original AJ1, this mid-top edi...  https://www.nike.com/t/air-jordan-1-mid-mens-s...
4                      Nike Free Metcon 5  $120  ...  When your workouts wade into the nitty gritty,...  https://www.nike.com/t/free-metcon-5-mens-trai...
5                          Cosmic Unity 3  $170  ...  Better for your game, designed with sustainabi...  https://www.nike.com/t/cosmic-unity-3-basketba...DemoDetailsThis project is a pure python project using modern tooling. It uses aMakefileas a command registry, with the following commands:make: list available commandsmake develop: install and build this library and its dependencies usingpipmake build: build the library usingsetuptoolsmake lint: perform static analysis of this library withflake8andblackmake format: autoformat this library usingblackmake annotate: run type checking usingmypymake test: run automated tests withpytestmake coverage: run automated tests withpytestand collect coverage informationmake dist: package library for distribution
Package: nikel-py
nikel-pyA modern, easy to use, async and sync API wrapper for the nikel API written in Python.Key FeaturesGather Data about UofT Courses, Programs, Textbooks, Services, and moreGather Data asynchronously so main event loop isn't blockedInstallationPython 3.6 or higher is required#Linux/macOSpython3-mpipinstall-Unikel-py#Windowspy-3-mpipinstall-Unikel-pyCurrent list of endpointsCoursesProgramsTextbooksExamplesEvalsFoodServicesBuildingsParkingMethodsget(query : Dict, limit : int=10)Synchronousasync_get(query : Dict, limit : int=10)AsynchronousBasic ExamplesSynchronousfromnikel_pyimportCourses'''Creates a list (limited to 1) of courses that have the name "Introduction to ComputerProgramming"'''x=Courses.get({'name':'Introduction to Computer Programming'},limit=1)print(x[0].code)# >> CSC108H1Asynchronousimportasynciofromnikel_pyimportTextbooksasyncdefmain():#Creates a list (limited to 1) of Textbooks that have the ID '10552179'x=awaitTextbooks.async_get({'id':'10552179'},limit=1)print(x[0].name)asyncio.run(main())# >> Where The Wild Things AreAdvanced Examples (Filtering & Extra Fields)Synchronousfromnikel_pyimportFoodsquery={'coordinates.latitude':43.66332,'attributes':'~Gluten Free'}'''Creates a list (limited to 10) of Restaurants that provide Gluten Free Foods and havea latitude of 43.66332'''x=Foods.get(query,limit=10)print(x[0].name)# >> Second Cup KioskAsynchronousimportasynciofromnikel_pyimportProgramsasyncdefmain():query={'campus':'St. George','name':'(Computer Science'}'''Creates a list (limited to 1) of Programs that start with Computer Science andare done at the St. George Campus'''x=awaitPrograms.async_get(query,limit=1)print(x[0].type)asyncio.run(main())# >> majorFiltersOperatorStringNumerical/BooleanFuzzy SearchEquality=EqualityEquality!InequalityInequality<N/ALess than<=N/ALess than or equal to>N/AGreater than>=N/AGreater than or equal to(Starts withN/A)Ends withN/A~SerializationN/ANote: the~operator essentially "yolos" and tries to search within nested arrays and hard to navigate nested structures.For more information. Please goHereQuery & Properties Lookup TableNote: All Objects listed below have anall_dataproperty which returns every property in JSON format.CoursesProgramsTextbooksExamsEvalsFoodServicesBuildingsParkingidididididididididcodenameisbncourse_idnamenamenamecodenamenametypetitlecourse_codecampusdescriptionaliastagsaliasdescriptioncampuseditioncampustermstagsbuilding_idnamebuilding_iddivisiondescriptionauthordatelast_updatedcampusdescriptionshort_namedescriptiondepartmentenrollmentimagestartaddresscampusaddresscampusprerequisitescompletionpriceendcoordinatesaddresscoordinatesaddresscorequisiteslast_updatedurldurationhoursimagelast_updatedcoordinatesexclusionscoursessectionsimagecoordinateslast_updatedrecommended_preparationlast_updatedlast_updatedurltagsleveltwitterattributescampusfacebooklast_updatedtermattributesarts_and_science_breadthlast_updatedarts_and_science_distributionutm_distributionutsc_breadthapsc_electivesmeeting_sectionslast_updatedFor more info please refer to the Schemas of each EndpointHere