Saravanan666/pypi-org huggingface dataset:
Package: prakriya
prakriyaprakriya is a package to derive information about given Sanskrit verb form.Free software: GNU General Public License v3Documentation:https://prakriya.readthedocs.io.FeaturesProvides step by step derivation of certain tiNanta forms based on Panini’s grammar of Sanskrit, using a ready database of prakriyas and sutras.Supports various transliteration as input and output.Also provides a commandline tool.SupportYou can help development of code by testing and bug report.You can contribute monetarily at the following link.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.This package usesindic-transliterationpackage.History0.0.1 (2017-12-30)First release on PyPI.0.0.2 (2018-01-01)Broken release. Kindly update to v0.0.3 immediately.0.0.3 (2018-01-02)A fix for broken v0.0.2 release.
jsonindex.json file which was crucial and missed in v0.0.2, added back.0.0.4 (2018-01-03)Added transliteration support. See #5 .Adding data file in system specific locations like APPDATA. See #6 .Made code python 2.7, 3.3, 3.4, 3.5, 3.6 compliant.Corrected all errors / smells identified by landscape.io.0.0.5 (2018-01-13)Added verb form generation facility. Seehttps://github.com/drdhaval2785/prakriya/issues/39.0.0.6 (2018-01-16)Added CLI functionality ‘generate’. Seehttps://github.com/drdhaval2785/python-prakriya/issues/12.Guess the correct verb e.g. eD -> eDa~. Seehttps://github.com/drdhaval2785/python-prakriya/issues/13.All data files moved to appdata folder. Seehttps://github.com/drdhaval2785/python-prakriya/issues/14.Memoize data read from JSONs for speedup. Seehttps://github.com/drdhaval2785/python-prakriya/issues/15.Removed unnecessary duplicate loading of JSONs. Seehttps://github.com/drdhaval2785/python-prakriya/issues/11.0.0.7 (2018-01-21)Changed the output format of Generate class. Seehttps://github.com/drdhaval2785/prakriya/issues/37#issuecomment-359224797.0.1.0 (2018-12-17)VerbFormGenerator now uses methods instead of getitem. Seehttps://github.com/drdhaval2785/python-prakriya/issues/36.0.2.0 (2019-01-13)Prakriya now uses method instead of getitem. Seehttps://github.com/drdhaval2785/python-prakriya/issues/75.0.2.1 (2019-01-14)Documentation of commandline (CLI) tools added in documentation.0.2.4 (2023-01-04)Provided a graceful exit in case the sutra does not exist insutra_info.json.
Package: praline-aln
PRALINEReimplementation of the PRALINE multiple sequence alignment program.FeaturesProgressive multiple sequence alignmentTree generation through hierarchical clustering and on-the-fly (PRALINE-style)Profile-profile pairwise alignmentAffine and linear gap penalties supported; arbitrary gap penalties supported w/ reduced speedSemi-global, global alignment for the MSA merge stepLocal, global and semi-global preprofile generationImproved preprofile sampling through PSI-BLAST search (requires local installation of NCBI BLAST+)Nucleotide and amino acid alphabets supported out of the boxEasy to extend to with arbitrary alphabets (e.g. secondary sequence)Packaged with common substitution matrices (BLOSUM), can be provided to the program.Coming soonHMM-like gap penalties per positionHeuristics to speed up tree building for large numbers of sequencesBetter multithreading for improved scaling on many-core systemsInstalling PRALINERequirementsPython 2.7 / Python 3.6 (earlier 3.x versions may also work, but have not been tested)A C compiler (C99 support required)NCBI BLAST+ (optional, for homology searching using PSI-BLAST)InstructionsYou can install PRALINE by cloning this repository and running (in a shell):python setup.py installPRALINE is also available on PyPI. You can install it with the following command:pip install praline
Package: pramda
PramdaPramda helps you implement functional programming in PythonI didn't have a good functional programming tool like Ramda.js, so I made it.[Pypi]Install$pipinstallpramdaHow to useaddadd(1,2)# 3add(1)(2)# 3adjustadjust(0,add(2),[1])# 3adjust(2,add(10),[4,3,2,1])# 12allis_one=lambdax:x==1all(is_one,[1,1,1,1])# Trueall(is_one,[1,1,1,2])# Falseall(is_one)([2,1,1,1])# Falseall(is_one)([2,2,2,2])# Falseall(is_one)([1,1,1,1])# Trueanyany(is_one,[1,1,1,1])# Trueany(is_one,[1,1,1,2])# Trueany(is_one)([2,1,1,1])# Trueany(is_one)([2,2,2,2])# Falseany(is_one)([1.1,1,1,1])# Truecurry@currydefexample(a,b):returnf'{a}equals{b}'example('1','one')# 1 equals oneexample('2')('two')# 2 equals twogtgt(1,2)# Falsegt(2,2)# Falsegt(2.1,2)# Truegt(3,2)# Truegtegte(1,2)# Falsegte(2,2)# Truegte(2.1,2)# Truegte(3,2)# Trueltlt(1,2)# Truelt(2,2)# Falselt(2.1,2)# Falselt(3,2)# Falseltelte(1,2)# Truelte(2,2)# Truelte(2.1,2)# Falselte(3,2)# Falsemapmultiplication=lambdax:x*2map(multiplication,[4,2,3])# [8, 4, 6]map(multiplication)([4,2,3])# [8, 4, 6]pipeinc=lambdax:x+1pipe(inc,inc,inc,inc,inc)(1)# 6reducereduce(add,[1,2,3])# 6reduce(concat_string,["a","b","c"])# "abc"cond@curryequal(a,b):returna==btest=cond([equal(1),lambda_:'a'],[equal(10),lambda_:'b'],[equal(50),lambda_:'c'],[equal(100),lambda_:'d'],)test(1)# "a"test(10)# "b"test(50)# "c"test(100)# "d"
Package: pranaam
Pranaam uses the Bihar Land Records data, plot-level land records (N= 41.87 million plots or 12.13 individuals/accounts across 35,626 villages), to build machine learning models that predict religion and caste from the name. Our final dataset has around 4M unique records. To learn how to transform the data and the models underlying the package, check thenotebooks.The first function we are releasing with the package ispred_rel, which predicts religion based on the name (currently onlymuslimornot). (For context, nearly 95% of India’s population are Hindu or Muslim, with Sikhs, Buddhists, Christians, and other groups making up the rest.) The OOS accuracy assessed on unseen names is nearly 98% for bothHindiandEnglishmodels.Our training data is Hindi. To build models that classify names provided in English, we used theindicatepackage to transliterate our training data to English.We are releasing this software in the hope that it enables activists and researchers.Highlight biases,Fight biases, andPrevent biases (regress out some of these biases in models built on natural language corpus with person names).InstallWe strongly recommend installingpranaaminside a Python virtual environment.
(seevenv documentation)pip install pranaamGeneral APIpranaam.pred_rel takes a list of Hindi/English names and predicts whether the person is Muslim or not.ExamplesBy using names in Englishfrom pranaam import pranaam
names = ["Shah Rukh Khan", "Amitabh Bachchan"]
result = pranaam.pred_rel(names)
print(result)output -name  pred_label  pred_prob_muslim
0    Shah Rukh Khan      muslim              73.0
1  Amitabh Bachchan  not-muslim              27.0By using names in Hindifrom pranaam import pranaam
names = ["शाहरुख खान", "अमिताभ बच्चन"]
result = pranaam.pred_rel(names, lang="hin")
print(result)output -name  pred_label  pred_prob_muslim
0    शाहरुख खान      muslim              73.0
1  अमिताभ बच्चन  not-muslim              27.0FunctionsWe expose one function, which takes Hindi/English text (name) and predicts religion and caste.pranaam.pred_rel(input)What it does:predicts religion based on hindi/english text (name)OutputReturns pandas with name and label (muslim/not-muslim)AuthorsRajashekar Chintalapati, Aaditya Dar, and Gaurav SoodContributor Code of ConductThe project welcomes contributions from everyone! It depends on
it. To maintain this welcoming atmosphere and to collaborate in a fun
and productive way, we expect contributors to the project to abide by
theContributor Code of
Conduct.LicenseThe package is released under theMIT
License.
Package: pr-analyzer
PR AnalyzerImagine that you work on a project, and your Pull Requests don't get reviewed fast enough. Is it just that odds were
against you, or in this project Pull Requests are usually not reviewed in a timely fashion?PR Analyzer is a small set of command line utilities for analyzing Pull Requests in the GitHub, and it should help you
to find an answer for the question above.UsingPR Analyzeryou will be able:Find out the list of open pull requestsGet the statistics about lead time, time before a first comment for the Pull Requests in the repoGenerate some nice reports from this statistics, or export this into other systemsNote:Please be aware that the tool is currently under active development.InstallationYou can install pr_analyzer using pip:$pipinstallpr-analyzerGitHub token is required for the pr_analyzer to be able to use GitHub API:$setGITHUB_TOKEN=your_token_valueAvailable commandslist_prsusage:list_prs[-h][--created[created]][--updated[updated]][--top[top]]url[url...]Printslistofopenpullrequestsforgivenrepositories

positionalarguments:urlrepositoryurl

optionalarguments:-h,--helpshowthishelpmessageandexit--created[created]Ifgiven-willshowPRscreatedmorethan`created`daysago--updated[updated]Ifgiven-willshowPRsupdatedmorethan`updated`daysago--top[top]Ifgiven-returnsupto`top`PRsstartingfromtheoldestprint_statsusage:print_stats[-h]url[url...]Printsstatisticsaboutpullrequestsactivityforgivenrepositories

positionalarguments:urlrepositoryurl

optionalarguments:-h,--helpshowthishelpmessageandexit
Package: prana-rc
Prana RCDISCLAIMER: This library is under active development now. There are no any stable release yet, so please do not
use it in your installation unless you are developer who would like to contribute into modulePython library and CLI to manage Prana recuperators (https://prana.org.ua/) via BLE interface.
It provides access to the device API and provides functionality similar to functionality of the official mobile
application with some limitations (see limitation section below).ATTENTION: Manufacturer doesn’t provide any technical documentation describing protocol and also officially doesn’t
provide an ability to interact with the devices programmatically. This library is based on reverse engineering of the
closed proprietary protocol. Used it on your own risk.Features:Read current prana stateControl everything which could be managed via official app with a few exceptions (see limitations section)Discover not connected devices aroundClient-server architecture (allows distributed setup)CLI interface available for quick tinkeringInstallationInstall regular server component with Http API:pip install prana-rc[server-tornado]If you prefer dockerized setup you could run it like this:docker run --rm prana-rc:latest -d  --network=host --restart=unless-stoppedFor more detailssee readme.DisclaimerThis module is licensed under GPL v3. This means you are free to use in non-commercial projects.The GPL license clearly explains that there is no warranty for this free software. Please see the included LICENSE file for details.
Package: prana-rc.client
ATTENTION: This is a python client designed for easy interaction with Prana RC server.Python library and CLI to manage Prana recuperators (https://prana.org.ua/) via BLE interface.
It provides access to the device API and provides functionality similar to functionality of the official mobile
application with some limitations (see limitation section below).Please refer toPrana RC documentationfor details.InstallationInstall regular server component with Http API:pip install prana-rc.client
Package: pranyaoptimalpricingmodel
This is an optimal pricing model and loan allotment model based on ROI.There are two functions within, one for each model.calc_new_prod_price(var_cost_list, max_qty, max_price, fixed_cost, profit_margin)This function has to be called for determining the optimal price of a new product entering the market.
It takes the following arguments:var_cost_list : (compulsory) Takes a list of variable cost inputs per unit of product.max_qty : (compulsory) Takes an integer input of the maximum quantity that can be produced of the product.max_price : (compulsory) Takes a numeric input of the maximum price that can be set for the product
based on precedent or industry standards.fixed_cost : (compulsory) Takes a numeric input of the fixed costs incurred while producing the product
regardless of the quantity produced.profit_margin : (optional) Takes a numeric input and allows the user to provide their desired profit margins for
optimal pricing. In case it is left blank, a default profit margin will be calculated via mathematical formulas.loan_alloc(total_fund, percent_alloc, i, signs)This function has to be called for estimating the loan allotment for each category.
The function takes the following arguments:total_fund: (Compulsory) Takes a numeric input of the total fund that the bank has available for loan allotment.percent_alloc: (Compulsory) Takes a list input of numeric data for the percentage of the total fund allotted to each loan category.i: (Compulsory) Takes a list input of numeric data for the Rate of Interest associated with each loan category.signs: (Compulsory) Takes a list input of string type for the sign of the constraint i.e. â€œ<=â€œ or â€œ>=â€œCHANGE LOG0.0.1 (04/11/2022)First Release
Package: pranyaoptimalpricingmodel1
This is an optimal pricing model and loan allotment model based on ROI.There are two functions within, one for each model.calc_new_prod_price(var_cost_list, max_qty, max_price, fixed_cost, profit_margin)This function has to be called for determining the optimal price of a new product entering the market.
It takes the following arguments:var_cost_list : (compulsory) Takes a list of variable cost inputs per unit of product.max_qty : (compulsory) Takes an integer input of the maximum quantity that can be produced of the product.max_price : (compulsory) Takes a numeric input of the maximum price that can be set for the product
based on precedent or industry standards.fixed_cost : (compulsory) Takes a numeric input of the fixed costs incurred while producing the product
regardless of the quantity produced.profit_margin : (optional) Takes a numeric input and allows the user to provide their desired profit margins for
optimal pricing. In case it is left blank, a default profit margin will be calculated via mathematical formulas.loan_alloc(total_fund, percent_alloc, i, signs)This function has to be called for estimating the loan allotment for each category.
The function takes the following arguments:total_fund: (Compulsory) Takes a numeric input of the total fund that the bank has available for loan allotment.percent_alloc: (Compulsory) Takes a list input of numeric data for the percentage of the total fund allotted to each loan category.i: (Compulsory) Takes a list input of numeric data for the Rate of Interest associated with each loan category.signs: (Compulsory) Takes a list input of string type for the sign of the constraint i.e. â€œ<=â€œ or â€œ>=â€œCHANGE LOG0.0.1 (04/11/2022)First Release
Package: prapi
Prapi SummaryMore Detail information is onhttp://www.bioinfor.org/tool/PRAPI/.PRAPI is a one-stop solution for Iso-Seq analysis of analyze alternative transcription initiation (ATI), alternative splicing (AS), alternative cleavage and polyadenylation (APA), natural antisense transcripts (NAT), and circular RNAs (circRNAs) comprehensively.Update2019.9.6Fix APA support number Bugs.InstallationBasic prapi installation (python 2.7 support)Before install,Please install these base.$conda install -y -c bioconda bx-python$conda install -y -c bioconda pycairo$conda install -c bioconda pysam$conda install -c bioconda gmap$conda install -c biocodna samtools==0.1.19$conda install -c bioconda  gmap==2016.09.23$conda install -c bioconda cufflinks==2.2.1$conda install -c bioconda bioconductor-edger$conda install -c bioconda bioconductor-degseq$pip install scipy$pip install fisher$pip install CIRCexplorer$wgethttp://www.bioinfor.org/tool/PRAPI/download/SpliceGrapher-0.2.5.tar.gz$tar -xzvf SpliceGrapher-0.2.5.tar.gz$cd SpliceGrapher-0.2.5$python setup.py install#After this,Please install prapi$pip install prapi#####################################test filewgethttp://www.bioinfor.org/tool/PRAPI/download/v2/test_v2.tar.gztar -xvzf test_v2.tar.gzcd test_v2sh run.sh####################################See more complete tutorials on thedocumentation page.RNAFurther DocumentationCitationGao Y, Wang H, Zhang H, Wang Y, Chen J, Gu L, (2017), PRAPI: post-transcriptional regulation analysis pipeline for Iso-Seq.Bioinformatics,Bioinformatics, btx830,https://doi.org/10.1093/bioinformatics/btx830
Package: prasopes
Prasopes is a free and open source Thermo/Finnigan .RAW spectra viewer. It is an implementation example of the rawFin library. Its limitation in means of the supported format scope is defined by the current developemnt state of the rawFin library.## InstallationInstall using the command bellow. Remove –user from command if You want to
install the application into system directory.Linux:` python3 setup.py install--user`Windows:
Install python 3.x AS ADMINISTRATOR (!!), for simplicity I prefer to “install for all user” and check the checkbox to add python to PATH. Then run CMD (command prompt) AS ADMINISTATOR (!!) and type there:` pip install prasopes pip install rawautoparams `you can then run Prasopes by typing <i>prasopes</i> to cmdline.For Git version - download this git repository and:` pip install PyQt5 pip installPyQt5-sippython3 setup.py install--user`PyQt5 and PyQt5-sip .egg packages are broken, if you will initiate installation by python3 setup.py the whole process will fail (at least true at 2018-09-16). If you install them by pip install valid .whl packages are downloaded instead and everything works as it should. If you accidentaly installed abovementioned .egg packages please remove them and proceed as stated above.Mac:
Not tested yet, please report.## UsageExecute as:prasopes [<SPECTRUM_FILE_PATH>]TheSPECTRUM_FILE_PATHargument is optional, it is path to file with spectrum.
Use File -> Open or Ctrl+O to open a spectrum from GUI.For exporting a spectrum use File -> Export or Ctrl+E.experimentalmonitoring of the spectrum during acqusition (Need File -> Settings temp setted-up properly)### GUI controlDoubleclickresets active graphright button selectionselects timelapse in chromatogram and zoom the selection in mass spectrumleft buttonpan on x-axisscrollingzoom on x-axisshift + scrollingzoom on y-axisarrowsmove selection in chromatogram left/right (need a right button selection existing first)## Special toolsexperimentalTSQ zce: ZCE calculator for the Finnigan TSQ 7000, for details see help in the TSQ zce window.experimentalDRL: data extractor for the relative ion intensities in course of time. Now in testing state.## Supported format.raw (based on rawprasslib => limited machine scope)in future: .mzml (will be next), .CDF
Package: prasticus
prasticusPackage documentation: soon availableCatchall module extensible by pluginsThis is a root module to allow its author to distribute
other modules as plugins. There are currently two subpackages:prasticus.catchallan extensible container for plugins.prasticus.configurea module configuration system.Post installTheconfiguresubpackage needs a root directory to work. Create
a directory and initialize it with the commandpython -W ignore -m prasticus.configure set-root --create DIRECTORYThecatchallsubpackage needs an initial configuration file to work.
Create one with the commandpython3 -m prasticus.configure init-config prasticus.catchallLicenseThis software is licensed under theMIT License© 2018 Eric Ringeisen
Package: pratelimiter
Simple Python module providing rate limiting.OverviewThis package provides theratelimitermodule, which ensures that an
operation will not be executed more than a given number of times on a
given period. This can prove useful when working with third parties APIs
which require for example a maximum of 10 requests per second.UsageDecoratorfromratelimiterimportRateLimiter@RateLimiter(max_calls=10,period=1)defdo_something():passContext ManagerfromratelimiterimportRateLimiterrate_limiter=RateLimiter(max_calls=10,period=1)foriinrange(100):withrate_limiter:do_something()CallbackThe callback is called in its own thread, so your callback may usesleepwithout delaying the rate limiter.importtimefromratelimiterimportRateLimiterdeflimited(until):duration=int(round(until-time.time()))print('Rate limited, sleeping for{:d}seconds'.format(duration))rate_limiter=RateLimiter(max_calls=2,period=3,callback=limited)foriinrange(3):withrate_limiter:print('Iteration',i)Output:Iteration 0
Iteration 1
Rate limited, sleeping for 3 seconds
Iteration 2asyncioTheRateLimiterobject can be used in anasync withstatement on
Python 3.5+. Note that the callback must be a coroutine in this context.
The coroutine callback is not called in a separate thread.importasyncioimporttimefromratelimiterimportRateLimiterasyncdeflimited(until):duration=int(round(until-time.time()))print('Rate limited, sleeping for{:d}seconds'.format(duration))asyncdefcoro():rate_limiter=RateLimiter(max_calls=2,period=3,callback=limited)foriinrange(3):asyncwithrate_limiter:print('Iteration',i)loop=asyncio.get_event_loop()loop.run_until_complete(coro())LicenseOriginal work Copyright 2013 Arnaud PorterieModified work Copyright 2016 Frazer McLeanLicensed 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: prat-gevent
geventis a Python networking library that usesgreenletto provide synchronous API on top oflibeventevent loop.Features include:Fast event loop based onlibevent.Lightweight execution units based ongreenlet.Familiar API that re-uses concepts from the Python standard library.Cooperative sockets with ssl support.DNS queries performed through libevent-dns.Ability to use standard library and 3rd party modules written for standard blocking socketsFast WSGI server based on libevent-http.geventisinspired by eventletbut features more consistent API, simpler implementation and better performance. Read why othersuse geventand check out the list of theopen source projects based on gevent.geventis written and maintained byDenis Bilenkoand is licensed under MIT license.get geventInstall Python 2.4 or newer, greenlet and libevent.Download the latest release fromPython Package Indexor clonethe repository.Read the documentation online athttp://www.gevent.orgPost feedback and issues on thebug tracker,mailing list,blogandtwitter (@gevent).