Saravanan666/pypi-org huggingface dataset:
Package: pyro-thunder
pyro-thunderProbabilistic modeling framework to define, experiment with, and critique models in service of iterating through Box's loop.Documentation:https://cameronraysmith.github.io/pyro-thunder/Source Code:https://github.com/cameronraysmith/pyro-thunderUsagepyro-thunderis pre-development. Please see the document outlining thespecification proposal.Installationpython -m pip install "pyro-thunder @ git+https://github.com/cameronraysmith/pyro-thunder.git@main"DevelopmentSetup environmentWe usehatchto manage the development environment and production build. Ensure it's installed on your system. It is often convenient to do this withpipx.Run unit testsYou can run all the tests with:hatchruntestFormat the codeExecute the following command to apply linting and check typing:hatchrunlintPublish a new versionYou can check the current version with:hatchversionYou can bump the version, create a commit and associated tag with one command such ashatch version patchorminorormajor. Your git default text editor will open so you can add information about the release.When you push the tag on github, the workflow will automatically publish it on PyPI and a github release will be created as draft.Serve the documentationYou can serve the mkdocs documentation with:hatchrundocs-serveIt'll automatically watch for changes in your code.LicenseThis project is licensed under the terms of the GNU Affero 3.0-only license.
Package: pyrotor
PyRotor - Python Route Trajectory OptimiserPyRotor is a Python library for trajectory optimisation problems. Initially developed for the aeronautic setting, it is intended to be generic and to be used in a wide range of applications.PyRotor leverages available trajectory data to focus the search space and to estimate some properties which are then incorporated in the optimisation problem. This constraints in a natural and simple way the optimisation problem whose solution inherits realistic patterns from the data. In particular it does not require any knowledge on the dynamics of the system.Documentation and examplesAn online documentation is availableherebut is still under construction. Thereotical details on the methodology are available in the below reference.Theexamplesfolder provides currently two examples showing the use of PyRotor.InstallationRun the following command:$pipinstallpyrotorReferenceFlorent Dewez, Benjamin Guedj, Arthur Talpaert, Vincent Vandewalle. An end-to-end data-driven optimisation framework for constrained trajectories. Preprinthttps://arxiv.org/abs/2011.11820.Please consider citing the preprint if you are using the library:@unpublished{dewez2020endtoend,
title={An end-to-end data-driven optimisation framework for constrained trajectories}, 
author={Florent Dewez and Benjamin Guedj and Arthur Talpaert and Vincent Vandewalle},
year={2020},
abstract = {Many real-world problems require to optimise trajectories under constraints. Classical approaches are based on optimal control methods but require an exact knowledge of the underlying dynamics, which could be challenging or even out of reach. In this paper, we leverage data-driven approaches to design a new end-to-end framework which is dynamics-free for optimised and realistic trajectories. We first decompose the trajectories on function basis, trading the initial infinite dimension problem on a multivariate functional space for a parameter optimisation problem. A maximum \emph{a posteriori} approach which incorporates information from data is used to obtain a new optimisation problem which is regularised. The penalised term focuses the search on a region centered on data and includes estimated linear constraints in the problem. We apply our data-driven approach to two settings in aeronautics and sailing routes optimisation, yielding commanding results. The developed approach has been implemented in the Python library PyRotor.},
url = "https://arxiv.org/abs/2011.11820",
url_Software = "https://github.com/bguedj/pyrotor",
eprint={2011.11820},
archivePrefix={arXiv},
primaryClass={stat.AP}
}
Package: pyrotorque
PyroScope is a collection of tools for the BitTorrent protocol and especially
the rTorrent client.This is the queue manager and statistics package.Copyright (c) 2010 The PyroScope Project <pyroscope.project@gmail.com>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: py-roughviz
py-roughvizThis is the Python wrapper of the JaveScript Library RoughViz which you could
use to visualize sketchy/hand-drawn styled charts.
You could check out original JS libarary here:RoughVizImplemented ChartsCurrently, there are seven types of charts available on JS RoughViz project, and I implemented all of them:BarBarhPieLineScatterDonutStackedBarBefore Use itCloning:
If you clone the repo, please install the dependencies in order to use them, and simply do below if you are usingpip.pipinstall-rrequirements.txtDownloading the pakcage:
This package is also available on PyPi, so you could do below to download the packagepipinstallpy-roughvizHow to use itDue to design of original RoughViz, there are some restrictions on the format of input data. The
detailed description can be found in the documentation.To use the tool, you could either define all options during chart in the initialization, or to
define the options later. And in order to make it easier to use, there are several options provided.You could define all options usingset_optionsFor common options shared across different charts, you could define it in a more intuitive way, e.g.set_title(title="The plot", fontsize=2), orset_xlabel("X Label", fontsize=3)Currently available options are:set_options: this can be used to set all available options for chartsset_title: this can be used to set title and title fontsizeset_xlabel: this can be used to set xlabel and its fontsizeset_ylabel: this can be used to set ylabel and its fontsizeset_figsize: this can be used to set the figsize for plotsset_legend: this can be used to determine if legend is presented, and if so, which position to put legendPandas DataFrame is accepted as input dataOne of major characters of this package is you could take pandas DataFrame as data type (this is not available
in original JS tool), and this feature could make people use this in a more familiar way, similar toseaborn.Currently, plot types below are supported to take pandas DataFrame as input data:BarhBarScatterPieDonutFor example:importpandasaspdfromroughviz.chartsimportPie,Scatterdf=pd.DataFrame({"a":["a","b"],"b":[1,2],"c":[2,3]})# pie plotpie=Pie(data=df,labels="a",values="b")# scatter plotscatter=Scatter(data=df,x="b",y="c")ExamplesExample 1fromroughviz.chartsimportLineline=Line(data="examples/example_datasets/vis1.csv",y1="a",y2="b",y3="c")line.set_legend(legend_position="left")line.set_title("Line Plot",fontsize=2)line.set_options(colors=["tan","orange","coral"])line.show()Example 2fromroughviz.chartsimportBardata={"labels":["North","South","East","West"],"values":[10,5,8,3]}bar=Bar(data=data,title="Regions",title_fontsize=3)bar.set_xlabel("Region",fontsize=2)bar.set_ylabel("Number",fontsize=2)bar.show()
Package: pyroulette
pyrouletteExplanationAPlayerhas aStrategywhich is comprised of a list ofPlacements, which represent a collectiveBet.The player will stick to their strategy.Winnings are re-invested (todo: allow specifying player's pyschology, e.g. pocket winnings of certain proportion)A player's placement cannot be too complicated (max is 10)AStrategyis formed at random based on exhausting the strategy budget, which is determined by considering the player's total budget and the minimum number of games they desire to play.It is possible to have some money left over (either due to reaching the maximum number of placements or not having enough money to place a bet with the remaining available chips), meaning the strategy budget is less than the cost to play the strategy.When players cannot play their strategy anymore, they leave the game, meaning they can end the simulation with some remaining money (e.g.$100to play a$40strategy that you lose twice in a row will leave you with$20remaining).When usinggenerate_players, all players will have the same number of minimum games and budget.how to usepip install pyroulettefrompyrouletteimportgenerate_players,play_rouletteplayers=generate_players(num_players=50,min_num_games=min_games,total_budget=100)players=play_roulette(players=players,games=1000,)print("Results:")forpinsorted(players,reverse=True):print("\n",p)print("Statistics")# get the wallet values for all players as a listwallets=[player.walletforplayerinplayers]# calculate some statisticsavg_wallet=sum(wallets)/len(wallets)median_wallet=sorted(wallets)[len(wallets)//2]# calculate winningswinnings=[p.wallet-p.budgetforpinplayers]num_losers=len([wforwinwinningsifw<=0])num_winners=len([wforwinwinningsifw>0])num_bankrupt=len([lforlinwalletsifl==0])# print the resultsprint(f"Average wallet value:{avg_wallet}\n")print(f"Median wallet value:{median_wallet}\n")print(f"Number of players who lost money:{num_losers}, proportion:{num_losers/len(players):.2f}")print(f"Number of players who went bankrupt:{num_bankrupt}, proportion:{num_bankrupt/len(players):.2f}")print()print(f"Number of players who won more than they started with:{num_winners}, proportion:{num_winners/len(players):.2f}")
Package: pyround
Table of ContentsOverview.Installation via pip:LinksContactsLicenseOverview.pyround is a one function PYPI package made only with one
goal to round float numbers in python to asked number of signifacant digitsimportpyroundpyround.pyround(0.23234,2)# 0.23pyround.pyround(0.235,2)# 0.24pyround.pyround(105.3,1)# 100pyround.pyround(125.3,2)# 130Installation via pip:pipinstallpyroundLinksPYPIGitHubContactsEmail:stas.prokopiev@gmail.comvk.comFacebookLicenseThis project is licensed under the MIT License.
Package: py_round_robin
###########What's Round Robin?###########use python itertools realize Round Robin ....###############How to install?###############.. code-block:: shpip install py_round_robin################HOW USE py_round_robin?################.. code-block:: shfrom py_round_robin import Round_Robinrr_obj = Round_Robin(['a','b','c'])for i in range(50):print rr_obj.get_next().. _the MIT license: http://xiaorui.cc/
Package: pyroundtrip
Density estimation is one of the fundamental problems in both statistics and machine learning. In this study, we propose Roundtrip, a computational framework for general-purpose density estimation based on deep generative neural networks. Roundtrip retains the generative power of deep generative models, such as generative adversarial networks (GANs) while it also provides estimates of density values, thus supporting both data generation and density estimation. Unlike previous neural density estimators that put stringent conditions on the transformation from the latent space to the data space, Roundtrip enables the use of much more general mappings where target density is modeled by learning a manifold induced from a base density (e.g., Gaussian distribution). Roundtrip provides a statistical framework for GAN models where an explicit evaluation of density values is feasible. In numerical experiments, Roundtrip exceeds state-of-the-art performance in a diverse range of density estimation tasks. Roundtrip is freely available athttps://github.com/kimmo1019/Roundtrip.
Package: pyroute2.core
pyroute2.corePyRoute2 is a pure Pythonnetlinklibrary.This is the core package, it implements the netlink parser and several netlink
sockets, including RTNL (IPRoute), WireGuard, MPTCP etc.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.ethtool
pyroute2.ethtoolPyRoute2 is a pure Pythonnetlinklibrary.This module provides Ethtool.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.ipdb
pyroute2.ipdbPyRoute2 is a pure Pythonnetlinklibrary.IPDB module is approaching its end of life.Details: <https://github.com/svinota/pyroute2/discussions/788>linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.ipset
pyroute2.ipsetPyRoute2 is a pure Pythonnetlinklibrary.This module provides IPSet and WiSet classes.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.minimal
pyroute2.minimalPyRoute2 is a pure Pythonnetlinklibrary.This module provides minimal subset of pyroute2 modules. Only netlink parser,
basic netns management and some netlink protocols implementations.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.ndb
pyroute2.ndbPyRoute2 is a pure Pythonnetlinklibrary.NDB is a high-level network management module. It provides a transactional DB
with multiple sources, from local RTNL source to netns and remote systems. The
DB provides Python API and HTTP RPC (json and plain text), my run as a
standalone service or may be used as a Python module.linksDB docs: <https://docs.pyroute2.org/ndb.html>Home: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.nftables
pyroute2.nftablesPyRoute2 is a pure Pythonnetlinklibrary.This module provides very basic nftables API.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.nslink
pyroute2.nslinkPyRoute2 is a pure Pythonnetlinklibrary.This module provides NetNS, NSPopen and RemoteSocket classes.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute2.protocols
pyroute2.protocolsPyRoute2 is a pure Pythonnetlinklibrary.Supplementary module with some related protocols.linksHome: <https://github.com/svinota/pyroute2/>PyPI: <https://pypi.org/project/pyroute2/>Usage: <https://github.com/svinota/pyroute2/discussions/796>
Package: pyroute53myip
pyroute53myipDescriptionThis python tool pyroute53myip is useful to allow automate updating of a public DNS record hosted at Internet based in the public internet address from home. It is a quite typical scenario running at a domestic raspberry-pi tiny instanceAuthorName: redcorjo
Email:jordipromotions@gmail.comConfig file structureThe tool self encrypt the AWS credentials initially added on clear. They are encrypted and useable only from the same host they were encrypted. First time the tool is executed, at command line there is a wizard asking for initial values.Config file can be defined using env variable PYROUTE53MYIP_CONFIG[aws]
aws_access_key_id = <access_key>
aws_secret_access_key = <secret_key>

[dns]
zoneid = <my_aws_zoneid>
record_set = my.domain.com
public_ip = 1.2.3.4

[scheduler]
frequency = 60

[mqtt]
mqtt_server = 127.0.0.1
mqtt_topic = pyroute53myip## Usagepython3-mpipinstallpyroute53myipexportPYROUTE53MYIP_CONFIG=./pyroute53myip.ini
python3-mpyroute53myip.pyroute53myip:mainVersion: 2023012901
Package: pyroutelib3
pyroutelib3A continuation ofpyroutelib2.
Routing on OSM data in Python 3.OSM Data tiles is stored intilescache/Usagefrompyroutelib3importRouter# Import the routerrouter=Router("<transport mode>")# Initialise itstart=router.findNode(lat,lon)# Find start and end nodesend=router.findNode(lat,lon)status,route=router.doRoute(start,end)# Find the route - a list of OSM nodesifstatus=='success':routeLatLons=list(map(router.nodeLatLon,route))# Get actual route coordinatesTransport Modes: car, cycle, foot, horse, tram, trainStatuses: success, no_route, gave_upOffline RoutingIf you want to use pyroutelib3 offline or on custom .osm file, you just need to add a second argument to Router:
Path to the specific osm file.frompyroutelib3importRouterrouter=Router("<transport mode>","<path-to-.osm-file>")# Continue on doing like in the example aboveStarting from 1.5 pyroutelib3 now accepts other file formats then OSM XML: .osm.gz, .osm.bz2 and .osm.pbf.
However, one has to inform pyroutelib3 what kind of file was provided, like so:frompyroutelib3importRouterrouter=Router("<transport mode>","<path-to-file>",localfileType="<xml/gz/bz2/pbf>")More infoFor more advanced info on using pyroutelib3 (like cusotmizing way costs) take a look at the wiki:https://github.com/MKuranowski/pyroutelib3/wiki.Changes from pyroutelib2Porting to python3Making pyroutelib a packageCustom transport typesHandling the access keysTurn restrictionsOffline routers (load only local osm file)Licensepyroutelib3 is distributed under GNU GPL v3.Copyright 2007, Oliver White
Modifications: Copyright 2017-2018, Mikolaj Kuranowski -
Based onhttps://github.com/gaulinmp/pyroutelib2pyroutelib3 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.pyroutelib3 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with pyroutelib3. If not, seehttp://www.gnu.org/licenses/.
Package: pyroutes
A really small framework for rapid development of small python
web applicationsWhy?I got tired of dealing with the same boring WSGI stuff every time
I wanted to make a small web-utility in django, but I didn’t want
to go to far away from it, so I made this little thing to ease the
work a bit.How it worksExample:from pyroutes import application, route

@route('/')
def index(request, name='world'):
    return 'Hello %s!' % nameThe above creates a complete WSGI compliant application. Result:GET /
Hello world!

GET /foo
Hello foo!Seehttp://readthedocs.org/docs/pyroutes/for more information.Templatingpyroutes includes a small xml-based templating system called xml-template.
For more information about xml-template, check out its bzr repo fromhttp://bzr.sesse.net/xml-templateXML-Template is released under the GPLv2 license.For more information about usage, see the wiki example.
Package: pyroutes.js
PyRoutes.JSprovide a Javascript routes generation function like PythonRoutesMapper.generatemethod.IntroductionDo you usePython Routeslibrary inPylonsor other applications ?Do you use something like${h.url('entry_view',entry_id=2)}in your templates ?So, now do you dream to have Javascript routes generation function ?PyRoutes.JS is the tool that you need !If you have this Routes Mapper configuration :...
map = Mapper()
...
map.connect('entry_view', '/entries/{issue_id:\d*}/', controller='issues', action='view')
map.connect('entry_edit', '/entries/{issue_id:\d*}/edit', controller='issues', action='edit')
...In your javascript files, you can usePyRoutes.JSlike this :pyroutes.generate('entry_view', entry_id=2); // return '/entries/1/'
pyroutes.generate('entry_edit', entry_id=5); // return '/entries/5/edit/'Installation$ pip install pyroutes.jsPylons integrationInmy_app/config/middleware.pyfile, append :...
from pylons.middleware import ErrorHandler, StatusCodeRedirect
from pylons.wsgiapp import PylonsApp
from routes.middleware import RoutesMiddleware

...

from pyroutesjs import Middleware as PyRoutesJSMiddleware       # <= append this line

...

from my_app.config.environment import load_environment

...

def make_app(global_conf, full_stack=True, static_files=True, **app_conf):

    ...

    # Append PyRoutes.js middleware
    app = PyRoutesJSMiddleware(app, config['routes.map'])      # <= append this line

    app.config = config
    return appIn your template, append :<script type="text/javascript" src="${h.url('/js/pyroutes.js')}"></script>LimitationsCurrently you can only generate named routesSource codeMercurial repository is here :https://bitbucket.org/harobed/pyroutes.js/srcYou can clone the code :$ hg clone http://bitbucket.org/harobed/pyroutes.jsIssue trackerYou can report your bugs here :https://bitbucket.org/harobed/pyroutes.js/issuesNews0.1.0 (not released)Initial version
Package: pyroutines
RoutinesThis package contains helper methods to perform certain routine activities in the act of image processing with pyautoguiInstallationUse the package managerpipto install routines.pipinstallpyroutinesUsageimportpyroutinesaspyrout# returns 'boolean'pyrout.move_to_image(path_of_images,auto_click=True)"""Note that the auto_click parameter is optionaland setting it to True, when locating the image, a click will automatically be executed.The necessary parameter "list of images" must contain atleast 1 item in the source directory so that it is possible to read theimage and search for it elsewhere"""# returns 'None'pyrout.save_logs(message,method_name,error=False)"""Auxiliary method to save logs and print the information on the console.The 'message' parameter refers to the message that will be displayedin the log file and in the console, the method_name parameter servesto identify the name of the routine where the error occurred and theoptional 'error' parameter serves to indicate the type of message to be displayed"""ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: pyroved
pyroVEDpyroVED is an open-source package built on top of the Pyro probabilistic programming framework for applications of variational encoder-decoder models in spectral and image analyses. The currently available models include variational autoencoders with translational, rotational, and scale invariances for unsupervised, class-conditioned, and semi-supervised learning, as well asim2spec-type models for predicting spectra from images and vice versa.
More models to come!Documentation and ExamplesThe documentation of the package content can be foundhere.The easiest way to start using pyroVED is viaGoogle Colab, which is a free research tool from Google for machine learning education and research built on top of Jupyter Notebook. The following notebooks can be executed in Google Colab by simply clicking on the "Open in Colab" icon:Mastering the 1D shifts in spectral dataDisentangling image content from rotationsLearning (jointly) discrete and continuous representations of dataSemi-supervised learning from data with orientational disorderim2spec: Predicting 1D spectra from 2D imagesInstallationRequirementspython >= 3.6pytorch>= 1.8pyro-ppl>= 1.6Install pyroVED using pip:pipinstallpyrovedLatest (unstable) versionTo upgrade to the latest (unstable) version, runpipinstall--upgradegit+https://github.com/ziatdinovmax/pyroved.gitReporting bugsIf you found a bug in the code or would like a specific feature to be added, please create a report/requesthere.DevelopmentTo run the unit tests, you'll need to have a pytest framework installed:python3-mpipinstallpytestThen run tests as:pytesttestsIf this is your first time contributing to an open-source project, we highly recommend starting by familiarizing yourself with these very nice and detailed contributionguidelines.