Saravanan666/pypi-org huggingface dataset:
Package: polyno
PolynoPolynomial object (class)InstallationpipinstallpolynoImport Poly objectfrompolynoimportPolySet P1 and P2 for the examples belowThe parameter of Poly object is 
a vector of coefficients in descending 
according to the degrees order 
or a dictionnary {degree:coef}>>>P1=Poly([3,1,0])>>>P2=Poly({0:5,3:2})>>>P2.coefficients()[5.0,0,0,2.0]>>>Print polynomial>>>P1.toString()'3x^2 + x'>>>print(P1)3x^2+x>>>print(P2)2x^3+5>>>Addition (with Poly and scalar)>>>P1+P22x^3+3x^2+x+5>>>>>>P1+23x^2+x+2>>>Substraction (with Poly and scalar)>>>P1-P2-2x^3+3x^2+x-5>>>P2-P12x^3-3x^2-x+5>>>P1-23x^2+x-2>>>Multiplication with scalar>>>P1*-2-6x^2-2x>>>P2*36x^3+15>>>Multiplication with Poly>>>P1*P26x^5+2x^4+15x^2+5x>>>Division with scalar>>>P2/2x^3+2.5>>>Derivative>>>P1.derivative()6x+1>>>k_th order Derivative>>>print(P2.derivative())# first order6x^2>>>print(P2.derivative(2))# second order12x>>>print(P2.derivative(3))# third order12>>>Other methodseval: value of P(x)integral: polynomial integral from a to bzero: solution of P(x) = 0 for x in [a, b] intervalEval>>>P1.eval(2)14Integral>>># integeral of P2 from 1 to 3>>>P2.integral(1,3)50Zerof(x) = 0 ==> x ?>>># solution of P(x) = 0 ?>>>P=Poly({2:-1,1:-1,0:1})>>>P.zero(0,10)0.6180338561534882>>>P.zero(-3,0)-1.6180343627929688>>>>>>P.zero(3,6)# no solution>>>P.zero(-3,3)# two solution,>>># but nothing is returned>>># because of dichotomy (binary search) algorithmFutures
Package: polynom
polynom(Short) DescriptionA package to provide polynomials/polynomial-basis-functions for interpolationprovides routines forsimple arithmetic(vectorized) evaluation(vectorized) (higher order) differentiationbase conversionsupports the following polynomial basesMonomial baseNewton baseLagrange base... others (experimentally)Getting StartedInstallation... via pip from PYPI (python package index)pipinstallpolynom... or locally (using pip)gitclonehttps://gitlab.com/berlinade/polynom.gitcdpolynom
pipinstall-e.Usage...under constructionDocumentation... can be found here (under construction):https://berlinade.gitlab.io/polynom/Find polynom@ GitLab:https://gitlab.com/berlinade/polynom@ PYPI:https://pypi.org/project/polynom/auther:codima on youtube.com(Informal Info on) Licensethis version of the "polynom" has been published under GPLv3 (seeLICENSE).Alternative Licenses are negotiable.
Package: polynomial2d
Polynomial2Dpip install polynomial2dPolynomial2D is a class containing data and methods to represent 2D polynomial function: y = f(x1,x2,norder,[cij]), where fij = cij * x1i * x2j and y = sum_{i=0}^{i=norder} sum_{j=0}^{j=i} fkj given k = i-j and k >= 0.
Package: polypeptideclient
PolypeptideClientA HTTP client for the Polypeptide WebservicesFree software: GNU General Public License v3Documentation:https://polypeptideclient.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-04-02)First release on PyPI.
Package: polypharm
PolypharmA Python-based library to perform induced fit docking (IFD) and MM/GBSA
calculations on different targets using a polypharmacological approach.Refer to theofficial documentationfor
details about installation, usage, methodology, and developer interface.InstallationThe version at the Python Package Index (PyPI) is always the latest
stable release that is relatively bug-free and can be installed via pip:pipinstallpolypharmThe minimum Python version is 3.9, and requires the pandas and Jinja2
packages. Refer to theInstallationpage of the documentation for more details.NOTE: The main functionality (i.e., IFD and MM/GBSA) does require a
workingSchrödinger Suiteinstallation (2018-4 or
greater) including the Glide and Prime modules.Usagepolypharmcan be used either programmatically or from the command
line. There is Jupyter Notebook at the examples folder that shows the
common usage. In any case, below is a brief example.importglobimportosimportpolypharmasppm# required to run docking and binding energy calculationos.environ["SCHRODINGER_PATH"]="/path/to/schrodinger"# gather input files and configurationprot_files=glob.glob(os.path.join("proteins","*.mae*"))lig_files=glob.glob(os.path.join("molecules","*.mae*"))resid_map={"6lqa":["B:1462","B:1466","B:1760","B:1767"],"6rv3":["A:126","A:171","A:194","A:198","A:199","A:234","A:235","A:236","A:238"],}parallel=10# 1. Run induced-fit cross dockingppm.cross_dock(prot_files,lig_files,resid_map,tasks=parallel)# 2. Rescore generated IFD poses using MM/GBSAppm.rescore_docking(glob.glob(os.path.join("ifd","**","*","*-out.maegz")),tasks=parallel,)# 3. Generate a report from MM/GBSA outputmaefiles=glob.glob(os.path.join("mmgbsa","**","*-out.maegz"))results=ppm.report(maefiles,resid_map,tasks=parallel)# 4. Rank molecules by their docking performanceranked_results=ppm.rank_molecules(results)The same workflow can be performed via command line:$vimresids.txt# write residues into a file$mkdirifd&&cdifd
$python-mpolypharmdock-p../proteins-r../resids.txt-t5../ligands
$cd..
$mkdirmmgbsa&&cdmmgbsa
$python-mpolypharmrescore-t5../ifd
$cd..
$python-mpolypharmreport-oreport.csv-c6-t5mmgbsa
$python-mpolypharmrank-orank.csvreport.csvPlease refer to theofficial documentationfor more information.CitingIf you usepolypharmin your research, please consider citing the
following article:To be addedContributorsMauricio Bedoya- creator,
maintainerFrancisco Adasme- maintainerLicenseLicensed under the MIT license, see the separate LICENSE file.
Package: polyphemus
Polyphemus-CI=============.. raw:: html<p style="text-align:center;"><span style="font-family:Times;font-size:28px;font-style:normal;font-weight:normal;text-decoration:none;text-transform:none;font-variant:small-caps;color:000000;"><br />~ One eye makes for shallow bugs ~<br /><br /></span></p>Polyphemus is a continuous integration tool that front-ends to`GitHub <https://github.com/>`_ et al. and backends to`BaTLaB <https://www.batlab.org/>`_.  This fills a similar role to that of Travis-CIor the GitHub plugin for Jenkins.  However, BaTLab has a wider vareity of machinesthan Travis-CI and is cheaper (free) than running your own machines with Jenkins.=========Contents=========tutorialbatlabapi/indexrcdocsprevious/indexfaqauthors============Installation============Since polyphemus is pure Python code, the ``pip`` or ``easy_install`` may be usedto grab and install the code::$ pip install polyphemus$ easy_install polyphemusThe source code repository for polyphemus may be found at the`GitHub project site <http://github.com/polyphemus-ci/polyphemus>`_.You may simply clone the development branch using git::git clone git://github.com/polyphemus-ci/polyphemus.gitAlso, if you wish to have the optional BASH completion, please add thefollowing lines to your ``~/.bashrc`` file::# Enable completion for polyphemuseval "$(register-python-argcomplete polyphemus)"============Dependencies============Polyphemus currently has the following external dependencies,*Run Time:*#. `flask <http://flask.pocoo.org/>`_#. `paramiko <http://www.lag.net/paramiko/>`_#. `github3.py <http://github3py.readthedocs.org/en/latest/>`_#. `apache 2 <http://httpd.apache.org/>`_, optional for real depolyment#. `argcomplete <https://argcomplete.readthedocs.org/en/latest/>`_, optional for BASH completion#. `modwsgi <https://code.google.com/p/modwsgi/>`_==========Contact Us==========If you have questions or comments, please send them to the mailing listpolyphemus-ci@googlegroups.com or contact the author directly or open an issue onGitHub.`Join the mailing list here! <https://groups.google.com/forum/#!forum/polyphemus-ci>`_============Contributing============We highly encourage contributions to polyphemus!  If you would like to contribute,it is as easy as forking the repository on GitHub, making your changes, andissuing a pull request.  If you have any questions about this process don'thesitate to ask the mailing list (polyphemus-ci@googlegroups.com). We are particularlyinterested in adding bitbucket and mercurial support.=============Helpful Links=============* `Documentation <http://polyphemus.org>`_* `Mailing list <https://groups.google.com/forum/#!forum/polyphemus-ci>`_
Package: polypheny
Polypheny Connector for PythonThis enables Python programs to access Polypheny databases, using an API that is compliant with thePython Database API Specification v2.0 (PEP 249).InstallationThe recommended way to install the Python Connector for Polypheny is via pip:pipinstallpolyphenyAlternatively, if you prefer to install the package manually you can also download the latestrelease, extract the archive and install it manually:cd/path/to/polyphney-connector-python-x.y.z/
pythonsetup.pyinstallGetting StartedA few examples of the most common functionalities provided by the adapter:importpolypheny# Connect to Polyphenyconnection=polypheny.connect('localhost',20591,user='pa',password='')# Get a cursorcursor=connection.cursor()# Create a new tablecursor.execute("CREATE TABLE dummy (id INT NOT NULL, text VARCHAR(2), num INT, PRIMARY KEY(id))")# Insert values into tablecursor.execute("INSERT INTO dummy VALUES (407 , 'de', 93)")connection.commit()# Execute a querycursor.execute("SELECT * from dummy")result=cursor.fetchall()# Close the connectionconnection.close()An in-depth and more detailed documentation can be foundhereRoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingWe highly welcome your contributions to thePolypheny Connector for Python. If you would like to contribute, please fork the repository and submit your changes as a pull request. Please consult ourAdmin Repositoryand ourWebsitefor guidelines and additional information.Please note that we have acode of conduct. Please follow it in all your interactions with the project.CreditsThis work was influenced by the following projects:python-phoenixdbsnowflake-connector-pythonLicenseThe Apache 2.0 License
Package: polyphony
polyphonyPolyphony is Python based High-Level Synthesis compiler.RequirementsPython 3.6 or laterInstallation$ pip3 install polyphonyUsageusage: polyphony [-h] [-o FILE] [-d DIR] [-c CONFIG] [-v] [-D] [-q] [-vd][-vm] [-V]
sourcepositional arguments:source                Python source fileoptional arguments:-h,--helpshow this help message and exit-oFILE,--outputFILEoutput filename (default is “polyphony_out”)-dDIR,--dirDIRoutput directory-cCONFIG,--configCONFIGset configration(json literal or file)-v,--verboseverbose output-D,--debugenable debug mode-q,--quietsuppress warning/error messages-vd,--verilog_dumpoutput vcd file in testbench-vm,--verilog_monitorenable $monitor in testbench-V,--versionprint the Polyphony version numberExamplesseehttps://github.com/ktok07b6/polyphony/tree/master/tests
Package: polypie
Python polymorphic function declaration with obvious syntax. Just use
the same function name and mark each function definition with@polymorphicdecorator.Installationpip install polypieRequirementsPython 3.5+typeguard(will be installed automatically)ExamplefromtypingimportAny,Sequencefrompolypieimportpolymorphic,PolypieException@polymorphicdefexample(a:int,b):print('(1)')@polymorphicdefexample(a:str,b:Any):print('(2)')@polymorphicdefexample(a:Sequence[str]):print('(3)')example(100,200)# (1)example('foo',200)# (2)example(['foo'])# (3)example(('bar','baz'))# (3)try:example({'foo':'bar'})exceptPolypieExceptionasexc:print(exc)# Matching signature <...> not foundclassExample:def__init__(self):self.values={}@polymorphicdefvalue(self,name):returnself.values[name]@polymorphicdefvalue(self,name,value):self.values[name]=valueinstance=Example()instance.value('foo',100)instance.value('bar','baz')print(instance.value('foo'))# 100print(instance.value('bar'))# bazTeststox[-eENV][----cov]
Package: polypoly
polypoly中文多音字注音模型在开源数据上训练Bi-LSTM进行实体标注，实现多音字注音。更新说明2021-06-30基本注音功能。将模型打包成wheel格式，使用pip进行安装。使用说明调用get_wheel.sh生成安装文件，在dist目录下；使用pip install XXX.whl文件；在python中使用import polypoly引入注音包；使用polypoly.predict进行注音。
Package: polyprops
polypropspolyprops is a Python package written in Rust used for the analysis of polygon properties with a focus on performance.FeaturesFast and efficient calculation of polygon properties using algorithms written in RustInstallationInstall polyprops with pip:pipinstallpolypropsUsage/Examplesimportpolypropsaspp# Create a polygonpolygon=pp.Polygon([0,0,10,0,10,10,])# Calculate the areaarea=polygon.area()# Calculate the centroidcentroid=polygon.centroid()
Package: poly-py-tools
Configure Asterisk and Polycoms from a CSV file.This package is designed to read a CSV file, and help you generate sip.conf device definitions, which can then be used to generate Polycom config files.Quick start and Order of OperationsCreate a CSV file with at least the following information in it: Extension, Mac address, User first name, User last nameRunpolypy configureto setup the polypy app.Runpolypy sip configureto setup your column definition map.Runpolypy sip generate all from /path/to/csv/fileRunpolypy provisionto generate the Polycom config files you need.CommandsconfigureThis helps setup the polypy environment by telling PolyPy where to find your asterisk config path, tftp server config path and other important stuff.provisionCommand:polypy provision polycomThis command helps you provision Polycom phones and maintain decent security on those phones. You can:Provision one or more extensions as defined in sip.conf to a single phone.Provision all phones defined in sip.conf.List all the devices that are found in sip.confShow a particular extensionClean a particiular extensionSwap two extensiosn (really useful when Bob and Alice want to swap phones).Audit passwordsReset a password for an extension.sipThis command generates device entries forsip.confand (optionally) voicemail entries forvoicemail.conf.
See command help:polypy sipfor more commands and details.
Package: polyquack
polyquackPreamblepolyquackis a set of utilities for pluralizing words based on rules of varying complexity, and translating words or longer texts.The pluralization module has been inspired by theLocalization and Pluralspagefrom the MDN.InstallationSimply runpip install polyquack.UsageSee thepolyquack documentationfor usage instructions.PyPI pageYou can seepolyquack on PyPI.
Package: polyrat
PolyRat: Polynomial and Rational Function LibraryPolyRat is a library for polynomial and rational approximation.
Formally we can think ofpolynomialsas a sum of powers of:Arational functionis a ratio of two polynomial functionsThe goal of this library is to construct polynomial and rational approximations
given a collection of point data consisting of pairs of
inputsand outputsthat minimizes (for example)The ultimate goal of this library is to provide algorithms to construct these approximations
in a variety of norms with a variety of constraints on the approximants.Thepolynomial approximationproblem is relatively straightfoward
as it is a convex problem for anyp-normwith p≥1.
However, there is still a need to be careful
in the construction of the polynomial basis for high-degree polynomials
to avoid ill-conditioning.
Here we provide access to a number of polynomial bases:tensor-product polynomials based on Numpy (e.g., Monomial, Legendre, etc.);Vandermonde with Arnoldipolynomial basis;barycentric Lagrangepolynomial bases.Therational approximationproblem is still an open research problem.
This library provides a variety of algorithms for constructing rational approximations
including:Adaptive Anderson AntoulasSanathanan Koerner iterationStabilized Sanathanan Koerner iterationVector FittingInstallation> pip install --upgrade polyratDocumentationFull documentationis hosted on Read the Docs.UsageUsing PolyRat follows the general pattern ofscikit-learn.
For example, to construct a rational approximation of the tangent functionimportnumpyasnpimportpolyratx=np.linspace(-1,1,1000).reshape(-1,1)# Input data 🚨 must be 2-dimensionaly=np.tan(2*np.pi*x.flatten())# Output datanum_degree,denom_degree=10,10# numerator and denominator degreesrat=polyrat.StabilizedSKRationalApproximation(num_degree,denom_degree)rat.fit(x,y)After constructing this approximation, we can then evaluate
the resulting approximation by calling the class-instancey_approx=rat(x)# Evaluate the rational approximation on XComparing this to training data, we note
that this degree-(10,10) approximation is highly accurateReproducibilityThis repository contains the code to reproduce the figures in the associated papersMultivariate Rational Approximation Using a Stabilized Sanathanan-Koerner IterationinReproducibility/Stabilized_SKRelated Projectsbaryrat: Pure python implementation of the AAA algorithmBlock-AAA: Matlab implementation of a matrix-valued AAA variantRationalApproximations: Julia implementation AAA variantsRatRemezRational Remez algorithm (Silviu-Ioan Filip)BarycentricDCBarycentric Differential Correction (seeSISC paper)
Package: polyrepo
PolyRepoKeep repos organized locally the same as on GitLabBird icons created by Mihimihi - FlaticonInstallation and UseAs a WIP, PolyRepo supports only thegroupscommand, which lists a group and all its subgroups.To install:pipx install polyrepoTo configure, create a~/.polyrepo.ymlfile that looks like this:gitlab:host:gitlab.comtoken:glpat-aaaaaaaaaaaaaaaaaaaa(The token is optional if you're just pulling public groups/subgroups)Then:polyrepogroupsgitlab-org... with the path to the group you want to examine.Proposed functionalitypolyrepo sync steampunk-wizardIn a subdirectory called steampunk-wizard, clone all its subgroups and projects.If a subdirectory doesn't exist, create it to hold the clone.If a subdirectory exists for a project:Confirm that the default git remote points to the correct path in GitLabOptionally, fetch everything, including tagsIf a subdirectory exists that does NOT correspond to a GitLab repo, remove it?Output in text/steampunk-wizard/busy                 Created
/steampunk-wizard/labcrawler           Disjoin
/steampunk-wizard/mypyref              Correct  Changed  
/steampunk-wizard/sandbox/ci-sandbox   Fetched
/steampunk-wizard/sandbox/play-around  MissingStatuses:CreatedThe repo did not previously exist locally, and now has been cloned and fetched.FetchedThe repo did exist, and has been fetchedCorrectWas already up to date; no changesMissingThere is no repo in GitLab, but there's a local folder with contentDisjoinA local directory exists, but either isn't a git repo or has the wrong default remoteThenChangedmeans local changes exist, which could includeLocal branches still to be pushedCommits in a branch beyond what was fetchedLocal changes to be committedNote that PolyRepo doesn't pull or merge anything, doesn't touch the working directory except in the case of creation, and ...There's a .polyrepo file (optional) to specify the subgroups/repos to consider.QuestionsHow to handle moves of repos between namespaces?Any operation to polyrepo every namespace the user can access?Developmentmakeclear
poetryinstallexportGITLAB_TOKEN=$(opitemget"Gitlab.com (personal) [2FA]"--fieldslabel=/steampunk-wizard)python-mpolyrepo--configtest/files/.polyrepo.ymlgroupssteampunk-wizard
Package: polyroi
polyroi.pySelect and manipulate Region of interest.📝 Table of ContentsAboutGetting StartedDeploymentUsageBuilt UsingTODOContributingAuthorsAcknowledgments🧐 AboutA small python module to select a polygonal region of interest (ROI) in a given image that is stored as a Shape object. You can use this Shape object later to manipulate the polygon selected. You can also extract the inner content from an image, calculate the histogram of the created shape, calculate the center of the shape, rotate the shape around its center, or translate the shape.🏁 Getting Startedimportcv2ascvfrompolyroiimportShapeimg=cv.imread('image.jpg')shape=Shape.get_roi(img)#returns a Shape objectshape.draw_shape(img,color=(0,255,255),thickness=1)while(1):cv.imshow("Getting Started",img)k=cv.waitKey(1)&0xFFifk==27:breakcv.destroyAllWindows()Prerequisitespipinstallcv2
pipinstallnumpyInstallingpipinstallpolyroi🎈 UsageSome time ago, I looked for an efficient tool to draw and manipulate polygons in a python environment. But I didn't find anything useful for my case. I did find some tools that can draw and extract a NumPy array, but as for the manipulation of shapes, I had to develop the logic myself. So I decided to create one.
I was trying to implement the particle filter fromPart-Based Lumbar Vertebrae Tracking in Videofluoroscopy Using Particle Filter. You can check the repository of how I did manage to work with this package.img=cv.imread('image.jpg')# returns a Shape objectshape=Shape.get_roi(img)# Copy the shapeshape2=Shape.copy(shape)# Rotate the shapeshape2.rotate_around_center(np.pi/4)# x translate the shape by 5shape2.translate_x(5)# y translate the shape by 5shape2.translate_y(5)# recalculate the center of the shapeshape2.centroid()# translate the shape first point to (10, 15) along with the shapeshape2.translate_to(10,15)# x translate, y translate, and rotate around the center by np.pi / 12shape2.update(5,3,np.pi/12)# Drawing the shapesshape.draw_shape(img,color=(0,255,255),thickness=1)shape2.draw_shape(img,color=(0,255,0),thickness=1)# return the bounding box points (upper left, bottom right)p1,p2=shape2.to_rectangle()# plotting the imagewhile(1):cv.imshow("Getting Started",img)k=cv.waitKey(1)&0xFFifk==27:breakcv.destroyAllWindows()⛏️ Built UsingNumpy- NumpyOpenCV- OpenCV✍️ Authors@skywolfmo- Idea & Initial workSee also the list ofcontributorswho participated in this project.🎉 Acknowledgementshttps://stackoverflow.com/a/30902423/6512445https://stackoverflow.com/questions/15341538/numpy-opencv-2-how-do-i-crop-non-rectangular-region/15343106#15343106https://github.com/hbenbel/VOIR
Package: polyscience
polysciencePython driver forPolyscience Advanced Digital Controller Circulating Baths.Note: We've moved away from using these baths, opting instead forHuber. On top of the communication issues, these units were remarkably unreliable.This was created to support older circulating baths (before touch screen models).
These older devices have ethernet ports, but only support serial communication
over UDP. This code attempts to handle the awkwardness of serial-over-UDP communication,
providing a simple API to read and control the unit.Installationpip install polyscienceUsageCommand LineRead the bath from any networked computer with:polyscience [ip-address]This provides methods to set temperature, pump speed, control, and others. Seepolyscience --helpfor more.PythonFor complex interaction, use this as part of a Python script.frompolyscienceimportCirculatingBathbath=CirculatingBath('192.168.1.100')print(bath.get_setpoint())A common usage is to create an interactive web site. This driver blocks (my earlier async implementations were prone to overwhelming the bath), so put the bath i/o in its own thread.
Package: polysdk
polysdkPackage Installationpip install polysdkUsage#!/usr/bin/env python"""make sure to runpip install polysdk to be ableto import from the package polysdk below"""frompolysdkimportPolyClient"""visit https://v1.polymerapp.io/ whereyou can generate client_token from"Developer API" option under user icon"""client_token="<your_client_token_here>"# initializing client using client_tokenclient=PolyClient(api_token=client_token)# masking key can be less than or equal to 16 charactersmasking_key="<your_masking_key_here>""""masking/unmasking text"""input_data="Hey a@b.com!"masked_data=client.mask_text(text=input_data,key=masking_key)masked_data.get_text()unmasked_data=client.unmask_text(text=masked_data.get_text(),key=masking_key)unmasked_data.get_text()"""masking/unmasking file"""fmd=client.mask_text_file(file_path="<your_file_path>",key=masking_key)fmd.get_text()fumd=client.unmask_text_file(file_path="<your_file_path>",key=masking_key)fumd.get_text()