Saravanan666/pypi-org huggingface dataset:
Package: pellipop
PellipopInstallationpip install pellipopUsagePellipop est un outil en ligne de commande Python qui permet de découper des vidéos en images fixes.
Par défaut, des captures d'écran sont réalisées toutes les 5 secondes.Il prend en entrée les formats suivants:".mov"".avi"".mp4"".flv"".wmv"".webm"".mkv"".svf"Il se lance avecpellipopdans un terminal, par défaut les vidéos sont cherchées dans le dossier où la commande est lancée, et les images créées sont également stockées au même endroit. Les paramètres peuvent toutefois être changés:--input: pour spécifier le dossier d'entrée où chercher les vidéos--output: pour spécifier l'endroit où stocker les images en sortie--frequency: pour spécifier la fréquence temporelle de capture des images (en s)--remove_duplicates: permet de supprimer les doublons d'images pour un même film, note: cela peut ralentir la conversion.Exemple d'usage:pellipop --input C:\Users\Utilisateur\Videos\Captures --output D:\Users\Bureau\Output --frequency 1 --remove_duplicatesNote: Le temps de découpe de chaque vidéo dépend de la qualité de la vidéo découpée.
Package: pelmanism
Pelmanism, also known as Memory, is a game in which the players try to
find pairs of matching cards. In this one-player version, the goal is to
find all pairs as fast as possible.Installation:The following code will start pelmanism from within python:import pelmanism
pelmanism.main()If$HOME/.local/binis included in your$PATH, you can start the
game directly with typingpelmanismin a terminal.Usage:Run the scriptpelmanism.pyto start the game.Modifications:To play the game with your own pictures, simply replace thepngfiles
in the cards directory by your own.To change the number of cards, adjustNxandNyinpelmanism.py.To change the size of the cards, adjustthumbsizeinpelmanism.py.
Package: peloton
Peloton Client LibraryHello Peloton! I wanted to thank you for being sane people and utilizing an API to move data around, at the very
least, from within your web app (I have no idea how you do it on the bike etc).I wrote (see: am writing) this library for a couple reasons, not the least of which is to be able to mess around with
my workout data, and eventually attempt to build (my first practical idea) an algorithm that predicts target resistance
to match an instructors cadence/output requirement. For funsies.I've tried to be as reasonable as I can in developing this client lib - I lazy load as much data as possible to limit API
calls, and if you look in your logs, you'll see a header that clearly indicates that this library is making API calls
(look forpeloton-client-library/in your logs). I
have also tried to mimic the paging/granularity that's made by your web UI (going under the assumption that your
backend is optimsed for those calls) - the last thing I want to do is piss you off! <3If you have any questions or concerns, please, ping me (I'm not hard to find).API DocumentationThis all started out of a curiosity when I looked at a ride details page. I threw open dev tools and .. boom, you've got
an actual web app that's making API calls to drive the UI. A+, friends.As I've been poking around in your WebUI, I've essentially been looking at the API calls that are made. I've
been keeping notes on all of thishere.Using the Client LibraryUtilizing the library is pretty simple. A super quick example is below, with more thorough documentation to follow as I
find time (this is a side/pet project after all).ConfigurationThe library requires a configuration file, whos path is either pulled from the environment varialePELOTON_CONFIG,
or looked for in the hard-coded~/.config/peloton(which can be a symlink to a unified config if you have many). The
only config block that the library looks for is shown below.[peloton]username=Your_Peloton_Username_Or_Emailpassword=Your_Peloton_Password# Optional: Whether or not to ignore warnings that are thrown (default: True)ignore_warnings=True# Optional: Verify SSL Authenticity (default: True)ssl_verify=True# Optional: Filepath to a local cert bundle. Useful when SSL MITM is in play (default: None)ssl_cert=''You may also specify the environment variablesPELOTON_USERNAMEandPELOTON_PASSWORDwhich will take precedence over the config file.Example Usage>>>frompelotonimportPelotonWorkout>>>workouts=PelotonWorkout.list()>>>workout=workouts[0]>>>dir(workout)['_get_metrics','achievements','created','created_at','end_time','fitness_discipline','get','id','leaderboard_rank','list','metrics','ride','serialize','start_time','status','total_leaderboard_users']>>>workout.status'COMPLETE'>>>workout.ride<peloton.peloton.PelotonRideobjectat0x104516e48>>>>dir(workout.ride)['description','duration','get','id','instructor_id','serialize','title']>>>workout.ride.title'45 min Max Capacity Ride'
Package: pelper
pelper– python helper functions to ease measuring, ignoring, caching,
piping, functional helpers, and more for python 2.7, 3.4, and 3.5.pelpercontains useful helper functions, decorators, context managers
- all the things that make your python life a tiny bit easier.pelperhas no dependencies,
has a coverage of 100%,
and is well documented.ExamplesPipe data through unix-like/elixir-like pipes:>>>frompelperimportpipe>>>pipe("some datat, some data",set,(sorted,{"reverse":True}))['t','s','o','m','e','d','a',',',' ']Pelper offersp-functions, i.e., functions where the first argument is data.
There ispmap(like map, but works withpipel):>>>frompelperimportpipe,pmap>>>pipe(...range(5),...(pmap,lambdax:x*x),...list)[0,1,4,9,16]…and also pfilter:>>>frompelperimportpipe,pfilter>>>pipe(...range(5),...(pfilter,lambdax:x>2),...list)[3,4]Takenelements from iterables (useful if you can’t use the square bracket
notation, e.g., if you’re using pipe)>>>frompelperimporttake>>>take("hello world",5)['h','e','l','l','o']Take then-th elements from iterables (useful if you can’t use the square
bracket notation, e.g., if you’re using pipe)>>>frompelperimportnth>>>nth(range(5),2)2Flatten arbitrarily nested lists:>>>frompelperimportflatten>>>flatten([1,[2,2,[3,3]]])[1,2,2,3,3]Measure the duration of a function:>>>frompelperimportprint_duration>>>@print_duration()...deff(n):passMeasure the duration of a context:>>>frompelperimportprint_duration>>>withprint_duration():...range(4)Ignore exceptions:>>>frompelperimportignored>>>withignored(OSError):...raiseOSError()# this is ignoredCache already computed results of functions:>>>frompelperimportcache>>>@cache>>>deffib(n):...return1ifn<2elsefib(n-1)+fib(n-2)>>>f(500)# this would run for quite a wile without the cache decoratorEasier printing and formating:>>>frompelperimportprintf>>>printf("Hello{name}, I'm{something}",name="Alan",something="world")HelloAlan,I'm worldInstallationpelperis only one file and has no dependencies.
You can simply droppelper.pyinto your project and use it.Or install it from pypi by running:pip install pelperOr install it from source by running:pip install .DevelopmentUsevirtualenvfor working onpelper.
Install the dev requrirements via:pip install -e requirements-dev.txtTestspelperuses doctest,py.test, andtoxfor testing.
It also hascoverage.You can run the tests for all supported versions of python and build and test
the docs:toxRun only the tests for the specified version of python:tox -e py27,py34,py35Alternatively just run tests for the current version of python:py.testDocsBuild the docs via:cd docs
sphinx html
Package: peltak
peltak’s goal is to simplify day-to-day dev tasks that we all, as developers,
have to do. It does not try to be a build system or to replace any of the tools
you would normally use when developing project like test runners, linters, etc.
Think of it rather as a replacement for the shell scripts that usually wrap
those tools. It actually started years ago as a collection of those shell
scripts that with time evolved into a very flexible, extensible and easy to use
command line app.Useful linksDocumentationInstallationQuickstartDev DocsSource CodeCI BuildsInstallation$pipinstallpeltakEnabling auto-completionpeltakhas a great auto-completion thanks to the underlying click library.
The steps to enable it vary slightly depending on what shell you are usingBash usersEither run this command or to make the change permanent add it to your~/.bashrc:eval"$(_PELTAK_COMPLETE=sourcepeltak)"ZSH usersEither run this command or to make the change permanent add it to your~/.zshrc:eval"$(_PELTAK_COMPLETE=source_zshpeltak)"
Package: pem
pem: PEM file parsing for Pythonpemis a Python module for parsing and splitting ofPEM files, i.e. Base64-encoded DER keys and certificates.It has no dependencies and does not attempt to interpret the certificate data in any way.It’s born from the need to load keys, certificates, trust chains, and Diffie–Hellman parameters from various certificate deployments:
some servers (likeApache) expect them to be a separate file, others (likenginx) expect them concatenated to the server certificate and finally some (likeHAProxy) expect key, certificate, and chain to be in one file.
Withpem, your Python application can cope with all of those scenarios:>>>importpem>>>certs=pem.parse_file("chain.pem")>>>certs[<Certificate(PEM string with SHA-1 digest '...')>, <Certificate(PEM string with SHA-1 digest '...')>]>>>str(certs[0])'-----BEGIN CERTIFICATE-----\n...'Additionally to the vanilla parsing code,pemalso contains helpers forTwistedthat save a lot of boilerplate code.Project InformationLicense:MITPyPISource CodeDocumentationChangelogCreditspemis written and maintained byHynek Schlawack.The development is kindly supported by my employerVariomedia AGand all my amazingGitHub Sponsors.pemfor EnterpriseAvailable as part of the Tidelift Subscription.The maintainers ofpemand thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications.
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.Learn more.Release InformationRemovedSupport for Python 2.7, 3.5, and 3.6 has been dropped.AddedSupport for RFC 4880 OpenPGP private & public keys:pem.OpenPGPPublicKeyandpem.OpenPGPPrivateKey.#72Support for intra-payload headers like the ones used in OpenPGP keys using themeta_headersproperty.#75pem.parse_file()now accepts alsopathlib.Pathobjects.pem.parse()now also acceptsstr.Addedtext_payload,bytes_payloadanddecoded_payloadproperties to all PEM objects that allow to directly access the payload without the envelope and possible headers.#74→ Full Changelog
Package: pemja
PemJaWhat is it?PemJa is an open source cross language call framework based on FFI. It aims to provide a high-performanceframework of calling between different languages.Where to get itPython binary installers for the latest released version are available at thePython package indexpipinstallpemjaJava Maven Dependency<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>pemja</artifactId>
    <version>{version}</version>
</dependency>DependenciesNumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arraysInstallation from sourcesPrerequisites for building PemJa:Unix-like environment (we use Linux, Mac OS X)GitMaven (we recommend version 3.2.5 and require at least 3.1.1)Java 8 or 11 (Java 9 or 10 may work)Python >= 3.8 (we recommend version 3.8, 3.9, 3.10, 3.11)git clone https://github.com/alibaba/pemja.git
cd pemja
mvn clean install -DskipTests
pip install -r dev/dev-requirements.txt
python setup.py sdist
pip install dist/*.tar.gzUsageStringpath=...;PythonInterpreterConfigconfig=PythonInterpreterConfig.newBuilder().setPythonExec("python3")// specify python exec.addPythonPaths(path)// add path to search path.build();PythonInterpreterinterpreter=newPythonInterpreter(config);// set & getinterpreter.set("a",12345);interpreter.get("a");// Objectinterpreter.get("a",Integer.class);// Integer// exec & evalinterpreter.exec("print(a)");// invoke functionsinterpreter.exec("import str_upper");Stringresult=interpreter.invoke("str_upper.upper","abcd");// Object invoke(String name, Object... args);// Object invoke(String name, Object[] args, Map<String, Object> kwargs);// invoke object methods/*// invoke.pyclass A:def __init__(self):self._a = 0def get_value(self):return self._adef add(self, n):self._a += ndef add_all(self, *args):for item in args:self._a += itemreturn self._adef minus(self, n):self._a -= nreturn self._a*/interpreter.exec("import invoke");interpreter.exec("a = invoke.A()");interpreter.invokeMethod("a","add",3);interpreter.invokeMethod("a","minus",2);interpreter.invokeMethod("a","add_all",1,2,3);// python callback java methods/*// invoke_callback.pyfrom pemja import findClassStringBuilder = findClass('java.lang.StringBuilder')Integer = findClass('java.lang.Integer')def callback_java():sb = StringBuilder()sb.append('pemja')sb.append('java')sb.append('python')sb.append(Integer.toHexString(Integer.MAX_VALUE))return sb.toString()*/interpreter.exec("import call_back")print(interpreter.invoke("call_back.callback_java"))Documentation
Package: pemmican
Pemmican is a small utility which warns users of power supply issues on the
Raspberry Pi 5 platform. It provides a command line utility, intended for use
from theupdate-motdfacility for non-graphical platforms, and two
GLib-based applications for use on graphical platforms, which expect to talk to
a DBus service implementing the freedesktopnotifications specification:pemmican-cli– the command line utilitypemmican-reset– the one-shot notification service which warns of
brownout reset issues, and failure to negotiate a 5A feedpemmican-mon– the persistent notification service which warns of active
undervolt or USB overcurrent eventsUsageEnd users should never need to run these directly; distro packaging should
integrate these applications into the platform as appropriate (an MOTD plugin
for the command line application, and systemd user services activated bygraphical-session.targetfor the graphical applications).What’s in a Name?This project started life as PMICmon (forPower Management ICmonitor), but
I kept mis-pronouncing it as aspemmican!Useful LinksSource codeon GitHubIssueson GitHubDocumentationon ReadTheDocs
Package: pemo
项目简介pemo是一个帮助用户下载服务器上的文件的命令行工具, 它依托于云存储服务实现中转。安装方式pipinstallpemo功能蓝图功能清单上传文件到云端存储服务中支持压缩上传文件夹支持配置云存储厂商支持管理配置目前默认支持腾讯云cos, 空间有限建议自行更改为自己的腾讯云cos
后续会支持其他的云存储类型如阿里云、百度云等等使用上传文件pmeoupload--path./readme.md上传文件夹pmeoupload--path./dist获取配置信息## 查看所有配置pmeoconfiglist-A## 查看指定类型的配置pmeoconfiglist-tali配置信息## 配置信息pmeoconfigset-tali## 配置默认存储类型pmeoconfigset-default-tali
Package: pemtest
PEM test libraryInstallationpipinstallpemtestWhat is PEM test?When performing data analysis, sometimes people come across a problem of checking null hypothesis for normality without knowing parameters of the distribution.
In this case we should use tests like "Parameters Elimination Method". PEM test allows us to get rid ofmuandsigma^2and move from performing a test for normality to
performing a test for uniform distribution with parameters 0, 1.Looks hard. Will there be any further explanation?Yes. You can read full documentation on the algorithm based on PEM testhere.Are there any examples?Yes, here's an interactive notebook with examples:https://colab.research.google.com/drive/15SR2hJpejqQ8G-I0SXk-WZMZUpsbUdAC?usp=sharingWho is the author of this method?turkunov @ Github(me) based on the research done by Sarkadi K. in "On testing for normality" (1960) [p. 269-275].
Package: pemudapersis-bot
Pemuda Persis BotA dedicated chatbot for Pemuda Persis Digital Media.Telegram Account :Production :@pemudapersis_botDevelopment :@pemudapersisdev_botInstallation :To install the bot, we can simply use pip command :pipinstallpemudapersis-botThe package is available inPypi.Start the bot :Polling methodexportBOT_TOKEN=<bottoken>
pemudapersis-bot--pollWebhook methodexportBOT_TOKEN=<bottoken>
pemudapersis-bot--startPlease contact @zamzambadruzaman for the bot token.For contributing please checkCONTRIBUTING
Package: penaltyblog
Penalty BlogThepenaltyblogPython package contains lots of useful code frompena.lt/y/blogfor working with football (soccer) data.penaltyblogincludes functions for:Scraping football data from sources such as football-data.co.uk, FBRef, ESPN, Club Elo, Understat, SoFifa and Fantasy Premier LeagueModelling of football matches using Poisson-based models, such as Dixon and Coles, and Bayesian modelsPredicting probabilities for many betting markets, e.g. Asian handicaps, over/under, total goals etcModelling football team's abilities using Massey ratings, Colley ratings and Elo ratingsEstimating the implied odds from bookmaker's odds by removing the overround using multiple different methodsMathematically optimising your fantasy football teamInstallationpip install penaltyblogDocumentationTo learn how to use penaltyblog, you can read thedocumentationand look at the
examples for:Scraping football dataPredicting football matches and betting marketsEstimating the implied odds from bookmakers oddsCalculate Massey, Colley and Elo ratingsReferencesMark J. Dixon and Stuart G. Coles (1997) Modelling Association Football Scores and Inefficiencies in the Football Betting MarketHåvard Rue and Øyvind Salvesen (1999) Prediction and Retrospective Analysis of Soccer Matches in a LeagueAnthony C. Constantinou and Norman E. Fenton (2012) Solving the problem of inadequate scoring rules for assessing probabilistic football forecast modelsHyun Song Shin (1992) Prices of State Contingent Claims with Insider Traders, and the Favourite-Longshot BiasHyun Song Shin (1993) Measuring the Incidence of Insider Trading in a Market for State-Contingent ClaimsJoseph Buchdahl (2015) The Wisdom of the CrowdGianluca Baio and Marta A. Blangiardo (2010) Bayesian Hierarchical Model for the Prediction of Football Results
Package: penaltymodel
penaltymodelOne approach to solve a constraint satisfaction problem (CSP) using anIsing modelor aQUBO, is to map each individual constraint in the CSP to a ‘small’ Ising model or QUBO. This mapping is called apenalty model.Imagine that we want to map an AND clause to a QUBO. In other words, we want the solutions
to the QUBO (the solutions that minimize the energy) to be exactly the valid configurations
of an AND gate. Letz = AND(x_1, x_2).Before anything else, let’s import that package we will need.importpenaltymodelaspmimportdimodimportnetworkxasnxNext, we need to determine the feasible configurations that we wish to target (by making the energy of these configuration in the binary quadratic low).
Below is the truth table representing an AND clause.AND Gatex_1x_2z000010100111The rows of the truth table are exactly the feasible configurations.feasible_configurations=[{'x1':0,'x2':0,'z':0},{'x1':1,'x2':0,'z':0},{'x1':0,'x2':1,'z':0},{'x1':1,'x2':1,'z':1}]At this point, we can get a penalty modelbqm,gap=pm.get_penalty_model(feasible_configurations)However, if we know the QUBO, we can build the penalty model ourselves. We observe that for the equation:E(x_1, x_2, z) = x_1 x_2 - 2(x_1 + x_2) z + 3 z + 0We get the following energies for each row in our truth table.We can see that the energy is minimized on exactly the desired feasible configurations. So we encode this energy function as a QUBO. We make the offset 0.0 because there is no constant energy offset.qubo=dimod.BinaryQuadraticModel({'x1':0.,'x2':0.,'z':3.},{('x1','x2'):1.,('x1','z'):2.,('x2','z'):2.},0.0,dimod.BINARY)We know from the table that our ground energy is0, but we can calculate it using the qubo to check that this is true for the feasible configuration(0, 1, 0).ground_energy=qubo.energy({'x1':0,'x2':1,'z':0})The last value that we need is the classical gap. This is the difference in energy between the lowest infeasible state and the ground state.With all of the pieces, we can now build the penalty model.classical_gap=1p_model=pm.PenaltyModel.from_specification(spec,qubo,classical_gap,ground_energy)InstallationTo install the core package:pipinstallpenaltymodelLicenseReleased under the Apache License 2.0ContributingOcean’scontributing guidehas guidelines for contributing to Ocean packages.Release Notespenaltymodel makes use ofrenoto manage its
release notes.When making a contribution to penaltymodel that will affect users, create a new
release note file by runningrenonewyour-short-descriptor-hereYou can then edit the file created underreleasenotes/notes/.
Remove any sections not relevant to your changes.
Commit the file along with your changes.See reno’suser guidefor details.
Package: penaltymodel-cache
Penalty Model CacheA local cache for penalty models. Serves as a factory and cache for penaltymodel.On install, penaltymodel_cache registers an entry point that can be read by
penaltymodel. By identifying itself as both a cache and a factory, it will
be used automatically by any project that uses penaltymodel’sget_penalty_modelfunction. It will also be automatically populatedInstallingTo install:pipinstallpenaltymodel_cacheTo build from source:cdpenaltymodel_cachepipinstall-rrequirements.txtpipinstall-e../penaltymodel_core/pythonsetup.pyinstallCache LocationIf installed inside of a virtual environment, penaltymodel_cache will
store the database in/path/to/virtualenv/data/app_name. Otherwise
the cache will be placed in the system’s application data directory.LicenseReleased under the Apache License 2.0. See LICENSE
Package: penaltymodel-lp
Penalty Model - Linear ProgrammingGenerates penalty models usingscipy.optimize’s Linear Programming capability.
Serves as a factory and cache for penaltymodel.On install, penaltymodel-lp registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel’sget_penalty_modelfunction.InstallationTo install:pipinstallpenaltymodel-lpTo build from souce:cdpenaltymodel_lppipinstall-rrequirements.txtpythonsetup.pyinstallLicenseReleased under the Apache License 2.0
Package: penaltymodel-maxgap
D-Wave Penalty Model Max-gapGenerates penalty models using smt solvers. Serves as a factory and cache for penaltymodel.On install, penaltymodel_maxgap registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel’sget_penalty_modelfunction.InstallingTo install:pipinstallpenaltymodel_maxgapTo build from source:cdpenaltymodel_maxgappipinstall-rrequirements.txtpipinstall-e../penaltymodel_core/pythonsetup.pyinstallNote that this library will not function without smt solvers installed. The solvers
are accessed through thepysmtpackage.In the standard setup (pip installorsetup.py installabove),Z3solver is installed
auto-magically. See the accompanying pysmt documentation for installing other smt solvers.In development mode (pip install-eorsetup.py develop) solvers are not installed.
Checkpysmtdocumentation to see how to do it manually.LicenseReleased under the Apache License 2.0. See LICENSEThe bundledZ3solver used bypysmtis licensed under the MIT license.
Package: penaltymodel-mip
Penalty Model - Mixed-Integer (Linear) ProgrammingGenerates penalty models usingGoogle Optimization Tools’ Mixed-Integer Programming capability.
Serves as a factory and cache for penaltymodel.On install, penaltymodel-mip registers an entry point that can be read by
penaltymodel. It will be used automatically by any project that uses penaltymodel’sget_penalty_modelfunction.InstallationTo install:pipinstallpenaltymodel-mipTo build from souce:cdpenaltymodel_mippipinstall-rrequirements.txtpythonsetup.pyinstallLicenseReleased under the Apache License 2.0