Saravanan666/pypi-org huggingface dataset:
Package: pySlipQt
pySlipQt is a ‘slip map’ widget for PyQt5.  You can use it to embed a tiled map
into your PyQt5 application.  The map can be overlayed with points, images, text
and other layers.  The map tiles can come from a local source of pre-generated
tiles or from a tile server.  The tiles may have any desired coordinate system
as tile coordinates are translated to pySlipQt internal coordinates.pySlipQt works on Linux, Mac and Windows.  Requirements are python 3 and PyQt5.For more information visit theGitHub repositoryor view the API
documentation inthe wiki.Release NotesRelease 0.5 of pySlipQt is early-release and is considered BETA software.
It is being released so anyone interested in pySlipQt can run the
“pyslipqt_demo.py” program and get comfortable with the way pySlipQt
works.  Note that testing has only been under macOS and no testing has been
done on either of Linux or Windows, though the aim is to make pySlipQt
cross-platform.This release has these notes:Some testing has been done, but not comprehensive testing, so please report
any errors to me atrzzzwilson@gmail.comand attach the “pyslipqt.log” file.“Box selection” now works.Wrap-around of tiles doesn’t work yet, but Ihopeto have it working even
though it will come with some limitations.The included GMT tileset is very old and has a different zoom compared to any
tiles from the ‘net, such as OSM tiles, for instance.  I hope to fix this
later.  The GMT tiles can still be used an example of how to use locally
generated tiles.All the “examples/test_*.py” programs have been converted to python3
and PyQt5, but there may still be problems.Some bugs found and removed.The GMT example tileset is included in the “examples” subdirectory.  The
gmt_local_tiles.py tileset code assumes that the zip file has been unzipped in
the user’s home directory (ie, ~/gmt_local_tiles).  If you put the tiles in any
other place, please make the appropriate changes in gmt_local_tiles.py or make
your own version of gmt_local_tiles.py.See the API documentation for the details on how to use pySlipQt.  The
demonstration program “examples/pyslipqt_demo.py” does require that the pySlipQt
package has been installed, though you make run pyslipqt_demo.py from any place
as long as it is moved along with its required files from the “pySlipQt/examples”
directory.
Package: pyslise
PyslisePyslise [1] is a collection of algorithms to solve one (and two, in development) dimensional time-independent Schrödinger equations. These algorithms are based upon constant perturbation methods to efficiently solve these eigenvalue problems.The code (and name) is based on Matslise [2]. This is a feature-rich MATLAB library for solving the one dimensional time independent Schrödinger equation.To solve the two dimensional problem an algorithm is developed on the basis of a method proposed by Ixaru [3].This implementation is developed in C++ with a focus on efficiency. This code is precompiled and packaged in wheels for 64 bit Linux, Windows, and Mac.DocumentationFull documentation can be found onmatslise.ugent.be. This document contains some examples of how to use this library.On the same page an interactive version is available.ExamplesOne dimensional problems can be tackled with:frompysliseimportPyslisefrommathimportpi,cosproblem=Pyslise(lambdax:2*cos(2*x),0,pi,tolerance=1e-6)problem.eigenvaluesByIndex(0,10,(0,1),(0,1))Also two dimensional problems are possible:frompysliseimportPyslise2DdefV(x,y):return(1+x**2)*(1+y**2)problem=Pyslise2D(V,-5.5,5.5,-5.5,5.5,tolerance=1e-6)problem.eigenvalues(0,13)Bibliography[1]Baeyens, Toon, and Marnix Van Daele. “The Fast and Accurate Computation of Eigenvalues and Eigenfunctions of Time-Independent One-Dimensional Schrödinger Equations.” Computer Physics Communications, August 26, 2020, 107568.https://doi.org/10.1016/j.cpc.2020.107568.[2]Ledoux, Veerle, and Marnix Van Daele. “MATSLISE 2.0 : A Matlab Toolbox for Sturm-Liouville Computations.” ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE 42, no. 4 (2016): 18.[3]Ixaru, L. Gr. “New Numerical Method for the Eigenvalue Problem of the 2D Schrödinger Equation.” Computer Physics Communications 181 (October 1, 2010): 1738–42.https://doi.org/10.1016/j.cpc.2010.06.031.
Package: pyslise2d
PyslisePyslise [1] is a collection of algorithms to solve one (and two, in development) dimensional time-independent Schrödinger equations. These algorithms are based upon constant perturbation methods to efficiently solve these eigenvalue problems.The code (and name) is based on Matslise [2]. This is a feature-rich MATLAB library for solving the one dimensional time independent Schrödinger equation.To solve the two dimensional problem an algorithm is developed on the basis of a method proposed by Ixaru [3].This implementation is developed in C++ with a focus on efficiency. This code is precompiled and packaged in wheels for 64 bit Linux, Windows, and Mac.DocumentationFull documentation can be found onmatslise.ugent.be. This document contains some examples of how to use this library.On the same page an interactive version is available.ExamplesOne dimensional problems can be tackled with:frompysliseimportPyslisefrommathimportpi,cosproblem=Pyslise(lambdax:2*cos(2*x),0,pi,tolerance=1e-6)problem.eigenvaluesByIndex(0,10,(0,1),(0,1))Also two dimensional problems are possible:frompysliseimportPyslise2DdefV(x,y):return(1+x**2)*(1+y**2)problem=Pyslise2D(V,-5.5,5.5,-5.5,5.5,tolerance=1e-6)problem.eigenvalues(0,13)Bibliography[1]Baeyens, Toon, and Marnix Van Daele. “The Fast and Accurate Computation of Eigenvalues and Eigenfunctions of Time-Independent One-Dimensional Schrödinger Equations.” Computer Physics Communications, August 26, 2020, 107568.https://doi.org/10.1016/j.cpc.2020.107568.[2]Ledoux, Veerle, and Marnix Van Daele. “MATSLISE 2.0 : A Matlab Toolbox for Sturm-Liouville Computations.” ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE 42, no. 4 (2016): 18.[3]Ixaru, L. Gr. “New Numerical Method for the Eigenvalue Problem of the 2D Schrödinger Equation.” Computer Physics Communications 181 (October 1, 2010): 1738–42.https://doi.org/10.1016/j.cpc.2010.06.031.
Package: pysllo
PyslloMake your python logging more structured and easy to aggregate using all
features of pysllo. Pysllo is set of useful python logging extenders
that make possible saving logs into StackLight with possibility of flow
tracking, data binding and raising all logs if error occurs.For more information go to documentation onReadTheDocs.Quick startpipinstallpyslloFeaturesStructuredLoggerPropagationLoggerTrackingLoggerJsonFormatterElasticSearchUDPHandlerExamplefrompysllo.handlersimportElasticSearchUDPHandlerfrompysllo.formattersimportJsonFormatterfrompysllo.utilsimportLoggersFactory# configurationhost,port,limit='localhost',9000handler=ElasticSearchUDPHandler([(host,port)])formatter=JsonFormatter()handler.setFormatter(formatter)MixedLogger=LoggersFactory.make(tracking_logger=True,propagation_logger=True,structured_logger=True)logger=MixedLogger('test')logger.addHandler(handler)# examlpe usagemsg="TEST"logger.bind(ip='127.0.0.1')logger.debug(msg,user=request.user)
Package: pyslo
pysloCalculate service level objective measurements from metrics stored in common backends in accordance with the logic set out in theSRE WorkbookGetting StartedInstallation processpipinstallpysloBuild and TestpytestDocumentationVisitreadthedocsfor full documentation.Current SupportProvidersAt this time, theStackdriverbackend is supported. Future plans include Prometheus andAzure MonitoringMetric TypesStackdriverBooleanLogicThe library pulls raw timeseries data from the metric provider and performs aggregations in memory. This is in order to standardize the computation across providers.Boolean Metricssli = good_events/valid_eventswheregood events = (sum of metric entries == True)valic_events = (sum of metric entries)
Package: pyslock
pyslockHigh-performance distributed sync service and atomic DB. Provides good multi-core support through lock queues, high-performance asynchronous binary network protocols. Can be used for spikes, synchronization, event notification, concurrency control.https://github.com/snower/slockInstallpipinstallpyslockEventimportredisimportpyslockslock_client=pyslock.Client("localhost")event=slock_client.Event("test",5,120,False)event.set()importasyncioimportpyslockasyncdefrun():slock_client=pyslock.AsyncClient("localhost")event=slock_client.Event("test",5,120,False)awaitevent.set()loop=asyncio.get_event_loop()loop.run_until_complete(run())Licenseslock uses the MIT license, see LICENSE file for the details.
Package: pysloth
pyslothA Python package for Probabilistic Predictionv0.0.3InstallationThis package supports Python 3.6, 3.7, 3.8, and 3.9Install via PyPIRunpip install pyslothInstall from repositoryClone repo with SSHgit clone git@github.com:PySloth/pysloth.gitChange directory to whereREADME.md(this file) is located and runpip install .QuickstartThe following is a code sample showingscpdandccpdin actionfrompyslothimportscpd_function,ccpd_functionimportnumpyasnpimportstatsmodels.apiassmnp.random.seed(142)n=1000# training setm=int(0.8*n)# proper training setn_cal=n-m# Calibration = training - proper trainingn_test=100sd_noise=1n_delta=1000# discretization for y values in interval y_hat +/- 3 * deltaw=2# the weightsx_train=w*np.random.random(m)-1x_cal=w*np.random.random(n_cal)-1x_test=w*np.random.random(n_test)-1y_train=w*x_train+np.random.randn(m)*sd_noisey_cal=w*x_cal+np.random.randn(n_cal)*sd_noisey_test=w*x_test+np.random.randn(n_test)*sd_noisex_train_cal=np.reshape(np.hstack((x_train,x_cal)),(n,1))y_train_cal=np.reshape(np.hstack((y_train,y_cal)),(n,1))xy_train_cal=np.hstack((x_train_cal,y_train_cal))model=sm.OLS(y_train,x_train).fit()predictions=model.predict(x_train)model.summary()y_hat=model.predict(x_test)delta=3*np.std(y_hat)y_grid=np.linspace(y_hat.min()-delta,y_hat.max()+delta,n_delta)print(ccpd_function(x_train_cal,y_train_cal,x_test,y_grid,5,n_delta))print(scpd_function(x_train,x_cal,y_train,y_cal,x_test,y_test,y_grid,5,n_delta))
Package: pyslowloris
PySlowLorisPySlowLoris is a tool for testing if your web server is vulnerable to slow-requests kind of attacks. The module is based on python-trio for Asynchronous I/O and poetry for dependency management. The idea behind this approach to create as many connections with a server as possible and keep them alive and send trash headers through the connection. Please DO NOT use this in the real attacks on the servers.More information about the attack you can findhere.InstallationPyPiFor installation through the PyPI:$pipinstallpyslowloris==2.0.1This method is prefered for installation of the most recent stable release.Source-codeFor installation through the source-code for local development:$gitclonehttps://github.com/[username]/SlowLoris.git
$cdSlowLoris
$pipinstallpoetry
$pyenvinstall3.8.3
$pyenvlocal3.8.3
$poetryenvuse3.8.3Basic UsageAvailable command list:$slowloris--help
usage:slowloris[-h]-uURL[-cCONNECTION_COUNT][-s]AsynchronousPythonimplementationofSlowLorisattack

optionalarguments:-h,--helpshowthishelpmessageandexit-uURL,--urlURLLinktoawebserver(http://google.com)-str-cCONNECTION_COUNT,--connection-countCONNECTION_COUNTCountofactiveconnections(defaultvalueis247)-int-s,--silentIgnorealloftheerrors[pureattackmode]-boolDocker usageDownload image from Docker HubPull the image fromDocker Huband run a container:$dockerpullmaxkrivich/pyslowloris
$dockerrun--rm-itmaxkrivich/pyslowloris[-h][-uURL][-cCONNECTION_COUNT][-sSILENT]Build image from source-codeAlso you can build image fromDockerfileand run a container:$dockerbuild-tpyslowloris.
$dockerrun--rm-itpyslowloris[-h][-uURL][-cCONNECTION_COUNT][-sSILENT]Note:Don't forget about 'sudo'!Example of usageHow to use module through Python APIHere is an example of usagefrompyslowlorisimportHostAddress,SlowLorisAttackurl=HostAddress.from_url("http://kpi.ua")connections_count=100loris=SlowLorisAttack(url,connections_count,silent=True)loris.start()How to use module via CLIThe following command helps to use module from command line$slowloris-uhttp://kpi.ua/-c100-sstop execution: Ctrl + CTestingTesting with real apache server$docker-composeupweb_server-d
$.....Module-tests$makepytestBugs, issues and contributingIf you findbugsor havesuggestionsabout improving the module, don't hesitate to contact me.LicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsCopyright (c) 2017-2020 Maxim Krivich
Package: pyslurm
OverviewCurrently PySlurm is under development to move from it’s thin layer on top of
the Slurm C API to an object orientated interface.This release is based on Slurm 18.08.PrerequisitesSlurmPythonCythonThis PySlurm branch has been tested with:Cython 0.15.1*, 0.19.2, and the latest stablePython 2.6, 2.7, and 3.4Slurm 18.08.0 thru 18.08.1Note: Cython 0.15.1 is only tested on Python 2.7.InstallationYou will need to instruct the setup.py script where either the Slurm install root
directory or where the Slurm libraries and Slurm include files are :Slurm default directory (/usr):python setup.py buildpython setup.py installIndicate Blue Gene type Q on build line:–bgqSlurm root directory (Alternate installation directory):python setup.py build –slurm=PATH_TO_SLURM_DIRpython setup.py installSeparate Slurm library and include directory paths:python setup.py build –slurm-lib=PATH_TO_SLURM_LIB –slurm-inc=PATH_TO_SLURM_INCpython setup.py installThe build will automatically call a cleanup procedure to remove temporary build files but this can be called directly if needed as well with :python setup.py cleanDocumentationThe API documentation is hosted athttps://pyslurm.github.io.To build the docs locally, useSphinxto
generate the documentation from the reStructuredText based docstrings found in
the pyslurm module once it is built:cd doc
make clean
make htmlAuthorsMark RobertsGiovanni TorresHelpAsk questions on thepyslurm group.
Package: pyslurmutils
pyslurmutilsSLURM utilities for Python.DemoGet an access token on rniceexportSLURM_TOKEN=$(scontroltokenlifespan=3600)exportSLURM_URL=...exportSLURM_USER=...Run any of the example scriptspython3scripts/examples.pyRun the tests (CI or locally)python3-mpytest.WhenSLURM_TOKEN,SLURM_URLorSLURM_USERis missing it will mock
the SLURM clients.Execute a python function on SLURMExecute a function on SLURM with an API similar to python'sconcurrent.futuresfrompyslurmutils.concurrent.futuresimportSlurmRestExecutorwithSlurmRestExecutor(url,user_name,token,log_directory="/path/to/log",# for log filesdata_directory="/path/to/data",# TCP when not providedpre_script="module load ewoks",# load environmentpython_cmd="python",)aspool:future=pool.submit(sum,[1,1])assertfuture.result()==2
Package: pyslurpers
Python slurpers for XML, JSON, configs (or .ini) and so onInspired by Groovy's XmlSlurperSlurper is a object that encapsulates access to structured document file using its dynamic fields as file tags.JSON example:Json document:{"name":"Joan","surname":"Baez","born":1941,"albums":[{"name":"Folksingers 'Round Harvard Square","year":1959,"number-of-tracks":18},{"name":"Joan Baez","year":1960,"number-of-tracks":16},{"name":"Joan Baez, Vol. 2","year":1961,"number-of-tracks":17},{"name":"Joan Baez/5","year":1964,"number-of-tracks":14},{"name":"Farewell, Angelina","year":1965,"number-of-tracks":14}]}code:json=JsonSlurper.create(file_name="testdata/baez.json",illegal_chars=Constants.STRIP_CAPITALIZE)self.assertEqual("Joan",json.name)self.assertEqual("Baez",json.surname)self.assertEqual(1941,json.born)self.assertEqual(5,len(json.albums))self.assertEqual("Farewell, Angelina",json.albums[4].name)self.assertEqual(14,json.albums[4].numberOfTracks)Config example:Sample config file:[Database]host:mysql.google.comdatabase:search_index[Security]auth provider:google# and so on...code:config=ConfigSlurper.create(file_name="testdata/google.config",illegal_chars=Constants.REPLACE_WITH_UNDERSCORES)self.assertEqual("mysql.google.com",config.Database.host)self.assertEqual("google",config.Security.auth_provider)XML example:Xml document (see intestdata/test1.xml):<?xml version="1.0" encoding="utf-8"?><beatles><man><name>John</name><name>Winston</name><surname>Lennon</surname><born><place>Liverpool</place><year>1940</year></born></man><man><name>James</name><name>Paul</name><surname>McCartney</surname><born><place>Liverpool</place><year>1942</year></born></man><man><name>Ringo</name><surname>Starr</surname><born><place>Liverpool</place><year>1940</year></born></man><man><name>George</name><surname>Harrison</surname><born><place>Liverpool</place><year>1943</year></born></man></beatles>Python code:xml=XmlSlurper.create('testdata/test1.xml')formaninxml.man:print('{}{}born at{}in{}'.format(' '.join(man.name),man.surname,man.born.year,man.born.place))Output:John Winston Lennon born at 1940 in Liverpool
James Paul McCartney born at 1942 in Liverpool
R i n g o Starr born at 1940 in Liverpool
G e o r g e Harrison born at 1943 in LiverpoolStarr and Harrison don't have second name, soman.namefor them is a single string, so' '.join()concatenates each char in it.Lennon and McCartney aredoublenamed, soman.namefor them is list.
Package: pyslvs
Pyslvs LibrariesA no-GUI module of mechanism synthesis system and a 2D geometric constraint solver.InstallationInstall from PyPI:pipinstallpyslvsOr install and test from source:pipinstall-e.
pythontestDocumentationRun the solver through an example:frompyslvsimportexample_list,parse_vpoints,t_config,expr_solving# Get example with nameexpr,inputs=example_list("Jansen's linkage (Single)")# Parse the mechanism expression into a list of joint datavpoints=parse_vpoints(expr)# Config joint data and control data for the solverexprs=t_config(vpoints,inputs)# Solve the positionresult=expr_solving(exprs,vpoints,{pair:0.forpairininputs})# Get the result from joint 7x,y=result[7]print(x,y)# -43.170055 -91.753226The documentation of Pyslvs library is onReadthedocs.If you have any questions, please post on GitHub issue or contactpyslvs@gmail.com.
Package: py-slvs
Python Binding of SOLVESPACE Constraint Solverpy_slvsis a Python binding of the 2D/3D geometry constraint solver from aforked versionofSOLVESPACE.The fork is based on SOLVESPACE v2.3, with some memory optimization
on Linux build. The Python binding is done usingSWIGand modeled straight from SOLVESPACE's solver library
(seehereandhere),
and is thus considered fairly low level.The binding is currently used to implement the primiary solver for
FreeCADassembly3workbench
Package: pyslvSudoku
PySudokuSolver - The simplest Python Sudoku Solver out there!Simple package for finding the possible outcomes of a 9X9 sudoku by Subhradipta PaulGithub :https://github.com/SDP010LinkedIn :https://www.linkedin.com/in/subhradipta-paul-079005238/UsageBellow is the description of how to use this package and use it for solving a sudoku in python.Getting itTo download the package, either fork this github repo or simply use Pypi via pip.$ pip install pyslvSudokuImporting the package$ from solver.SudokuSolver import sudoku_solverCreating object and using the solver method$ slv_obj = sudoku_solver()
$ slv_obj.solve()LicenseMIT LicenseCopyright (c) 2018 Joel BarmettlerPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pyslvs-ui
Pyslvs-UIA GUI-based (PyQt5) tool used to design 2D linkage mechanism.Planar Linkages SimulationPython-Solvespace: Kernel fromSolvespacewith Cython bundle.Pyslvs: Kernel fromSketch Solvewith Cython.Mechanical SynthesisNumber Synthesis: Combine the attributes of mechanism.Structural Synthesis: Cython algorithm used to find out structural possibilities of the mechanism.Dimensional Synthesis: Kernel from the three Cython algorithms (rewrite).WebsitesReadthedocs (stable/latest)Content Management System(to be maintained)Blog Framework(to be maintained)OthersCross three platforms.CAD-like user interface.Auto layout of generalized chain.The code is following with Python Enhancement Proposals (PEP):PEP 8(code format)PEP 484(typing)PEP 517(build_metaproject)PEP 561(typed package)If you have any question, please post on GitHub issue or contactpyslvs@gmail.com.Getting StartedExecutablesDownload portableexecutable fileof your platform.PyPIpipinstallpyslvs-uiSourceBranchmasteris in development, usestablebranch to install stable dependencies directly.gitcheckoutstable
pipinstall-e.There are more detailed instructions in the documentation.LibrariesPyslvs has a solver backend that can works without the GUI:frompyslvsimportexample_list,parse_vpoints,t_config,expr_solving# Get example with nameexpr,inputs=example_list("Jansen's linkage (Single)")# Parse the mechanism expression into a list of joint datavpoints=parse_vpoints(expr)# Config joint data and control data for the solverexprs=t_config(vpoints,inputs)# Solve the positionresult=expr_solving(exprs,vpoints,{pair:0.forpairininputs})# Get the result from joint 7x,y=result[7]print(x,y)# -43.170055 -91.753226Please seethe documentationfor more information.DocumentationThe documentation of Pyslvs and kernel API.
Start it from sources:pipinstallmkdocs
pipinstall-rdoc-requirements.txt
mkdocsserveCitePlease see thereference.
Package: pysm3
PySM 3PySM generates full-sky simulations of Galactic emissions in intensity
and polarization relevant to CMB experiments. It is a large refactor ofPySM 2focused on
reducing memory usage, improving performance and run in parallel with
MPI.See the documentation athttps://pysm3.readthedocs.ioSee changes inCHANGES.rstin the repository.Related scientific papersSeeCITATIONThe Python Sky Model 3 software (Zonca et al, 2021)The Python Sky Model: software for simulating the Galactic microwave sky (Thorne et al, 2017)InstallSee thedocumentationInstall withpip install .or withpip install .[test]to also install the requirements for running testsOptionally, if you have an MPI environment available and you would like to test the MPI capabilities of PySM, installmpi4pyandlibsharp, check the documentation link above for more details.Check code style withtox-ecodestyleTest withpytestortox-etestBuilding docs requirespandoc, not the python package, the actualpandoccommand line tool, install it with conda or your package managerBuild docs locally withtox-ebuild_docsSupportFor any question or issue with the softwareopen an issue.ReleaseTag the new version with gitpip install build--upgradepython-mbuild--sdist--wheel.twine upload dist/*