Saravanan666/pypi-org huggingface dataset:
Package: pyajax
## About ThisAs a datascientist you may dont want to write any javascript. This will help you to build ajax callback without writing any javascript. Script is very simple and too small and works like a charm.I build this script to plot graph dynamically using ajax but you can use this for anything you need for ajax call.## Flask integration### app.pyfrom flask import Flask, jsonify, render_template, request, url_forimport pyajaxapp = Flask(__name__)@app.route("/")def index():config = [{'handler':{'event':{'url':'/ajaxname','target':'submit','method':'click'},'input':{'name':'name'},'action':{'output':'output'}}}]script = pyajax.buildscript(config)return render_template('myname.html', script=script)@app.route("/ajaxname")def ajaxname():return jsonify(output=request.args.get('name'))if __name__ == '__main__':app.run()### layout.html<!doctype html><html lang="en"><head><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>{% block javascript %}{% endblock %}</head><body>{% block content %}{% endblock %}</body></html>### myname.html{% extends 'layout.html'%}{% block content %}<div><input type="text" id="name" /> <input type="submit" id="submit" value="submit"/></div><div>My Name: <span id="output">?</span></div>{% endblock %}{% block javascript %}{{ script|safe }}{% endblock %}
Package: pyak
pyakPython program to automically press a key after some time interval.pyak == py auto keyBefore you run make sure you have python3 installed, and then install the package:pip install pyakexample to press shift key every 15 minutes during work hour when slack is running：pyak 900 -k shift -t 8:00 17:00 -p slackNote:For macos you may need to allow the terminal to control your keyboard by going toSystem Preferences -> Security & Privacy -> Privacy -> Accessibilityand make sure terminal (or whatever console you are running it from) is selectedDetailed useage:usage: auto_key.py [-h] [-k [KEY]] [-t START END] [-p [PROCESS]] [SECONDS]

Auto key presser

positional arguments:
  SECONDS               Interval between each key press in seconds.

optional arguments:
  -h, --help            show this help message and exit
  -k [KEY], --key [KEY]
                        Key to press, i.e. shift, f1. Defaults to shift key if
                        not provided
  -t START END, --time_active START END
                        If provided, the key will only be pressed during the
                        specified time. i.e -t 8:00 17:00
  -p [PROCESS], --process [PROCESS]
                        Name or regex of running process to trigger the key press.安心摸鱼
Package: pyak47
pyak47Performance Test Framework.PyPI:Pyak47 packageDoc:DocumentationLicense:GNU LGPLv3Author:Pierre-Francois Carpentier - copyright 2014Original author:Corey Goldberg- copyright 2010-2013Original project:multimechanize.comNoticeThis work is a fork ofMulti-Mechanizefrom Corey Goldberg.Original work copyright:Copyright: (c) 2010-2013 Corey Goldberg (cgoldberg _at_ gmail.com)Licensepyak47 is released under GNU LGPLv3.InstallationDependanciespython 2.6 or python 2.7matplotlibInstallationPyak47 can be installed fromPyPIusingpip:pip install -U pyak47… or download thesource distribution from PyPI, unarchive, and run:python setup.py installDocumentationplease visit:http://pyak47.rtfd.orgProject initializationTo create a project, run:pyak47-newproject myprojectTo run your project:pyak47-run myproject
Package: pyakeneo
Python client for Akeneo PIM APIA simple Python client to use theAkeneo PIM API.Dependencies are managed withpoetry(list of dependencies available inpyproject.toml).You may install them with:poetry install --devInstallationpoetryinstallpyakeneoUsageA simple example is provided indocs/example_exporter.py.If you experience issues when importing modules, run the examples as follow:cddocspoetryrunpythonexample_exporter.pyTestsRun tests as follow:poetryrunnosetestsIf tests don’t pass in your environment, please check that dependencies match those described in pyproject.toml. One way to do it is to ensure that poetry runs commands in a dedicated virtualenv by setting environment variable as follow:poetryinstall--devTests are provided with mocks, recorded withVCR.py. In case you need
to (re)run tests, you should install the dataset in you PIM instance as
follow:
Package: pyaklass
PYaKlassБыстрый асинхронный модуль для работы с ЯКлассом.Функции:Обход капчиПолучение активных работПолучение всех работ (На данный момент только первой страницы)ПримерыПолучение активных работfrommultiprocessing.managersimportSyncManagerfrompyaklassimportAccount# Иначе: manager.start() и manager.shutdown()withSyncManager()asmanager:account=Account('login','password',manager)awaitaccount.login()testworks=awaitaccount.get_new_testworks()# -> List[dict[str, Any]]print(testworks)Работа с несколькими аккаунтамиfrompyaklassimportAccountfrompyaklass.managerimportAccountManager# Здесь не требуется указывать SyncManager, так как AccountManager создает его сам.# При различных менеджерах есть шанс блокировки вашего IP сервисом!manager=AccountManager(Account('login1','password1'),Account('login2','password2'),Account('login3','password3'),)ifnotany(awaitmanager.prepare()):print('Не получилось войти ни в один аккаунт.')testworks_per_account=awaitmanager.get_new_testworks()# -> List[List[dict]]print(testworks)Получение результатов прошедших работПримечание:Пользователь может получить только свои результаты.frommultiprocessing.managersimportSyncManagerfrompyaklassimportAccount# Иначе: manager.start() и manager.shutdown()withSyncManager()asmanager:account=Account('login','password',manager)awaitaccount.login()results=awaitaccount.get_results(testwork_id=...,result_id=...)print(results)TODOБудет сделано при желании и возможности.Брутфорс тестовых заданийПарсинг результатов, времени прохождения, введенных ответовПарсинг ФИО учителя, задавшего работуИспользовать API пагинации вместо парсинга списка работhttps://www.yaklass.ru/ajax/TestWork/GetStudentTestWorksAjax?type=FinishedTestWorks&page=1&from=%2FTestWork
Package: pyak-view
pyak-view—AppKit View—macOS onlyView text in given font, using Apple’s AppKit (in Python).It is calledpyak-viewafterhb-viewfromharfbuzz.Currently in somewhat experimental form.Basic usage:pyak-view --font-file fontfile.otf ¡Hello!Further command line help is available withpyak-view --helpINSTALLATIONFrom PyPI:python -m pip install pyak-viewFrom a clone or copy of this repo:python -m pip install -U .END
Package: pyalapin
PyAlapin, your customized chess engineIs it the best, most efficient and state of the art chess engine ? I'm pretty sure not.However, driven by passion and madness, I have developed my own chess game in Python.
For your pretty eyes and your devilish smile, I share it with you. But only with you.Special thanks and dedication to LeMerluche, crushing its opponents on chess.com with alapin openings ❤️How to installSimply use:pipinstallpyalapinYou only neednumpyto play with with terminal interface and with Python.
You will needkivyto play with the interface.How to play with interfacefrompyalapin.interfaceimportChessAppif__name__=='__main__':ChessApp(play_with_ai=False# Set to True if you want to play agains AI).run()You can play against Stockfish by installing the officialPython interface.frompyalapin.player.playerimportPlayerfrompyalapin.player.stockfish_playerimportStockfishPlayerfrompyalapin.interfaceimportChessAppsfp=StockfishPlayer(path_to_stockfish_engine,white_side=False)app=ChessApp(w_player=Player(True),b_player=sfp,play_with_ai=True)app.run()How to play with Python commandsfrompyalapin.engineimportChessGamegame=ChessGame(automatic_draw=True,# Set to True if you want# to have each turn drawn in terminalai=False,# set to True if you want to play agains AIsave_pgn=False# set to True if you want to# save moves as PGN)game.move_from_coordinates(game.player1,1,4,3,4)game.move_from_coordinates(game.player2,6,4,4,4)game.move_from_coordinates(game.player1,0,5,3,2)game.move_from_coordinates(game.player2,6,3,5,4)game.move_from_coordinates(game.player1,0,3,2,5)game.move_from_coordinates(game.player2,6,2,4,2)game.move_from_coordinates(game.player2,2,5,6,5)There are colors in the command line not showing here in the GIF, though...How to change interface colorsWith line command you can create new illustrations by specifying the RGB colors you want. You can specify the colors of the cells and of the pieces (outer and inner colors).
Use the following command with the colors you want:pythoninterface/colorize.py-ccb0191255-ccw207185151-ibp109726-obp000-iwp200200200-owp255255255Arguments are:-ccb/--color_cell_black: RGB, default 0, 191, 255-ccw/--color_cell_white: RGB, default 207, 185, 151-ibp/--inner_black_piece: RGB, default 109, 7, 26-obp/--outer_black_piece: RGB, default 0, 0, 0-iwp/--inner_white_piece: RGB, default 200, 200, 200-owp/--outer_white_piece: RGB, default 255, 255, 255The command creates (or replaces) the illustrations that are in the temp_images/ folder. If the folder exists, the interface uses theses illustrations. Destroy it to come back to standard illustrations.
Package: pyAlarm
Alarm in Python.## INSTALLATIONpip install pyAlarmFunctions :getInput() :: returns Alarm and current Time.
runInBackground(Time,Alarm) :: Alarm & Time of type time.strftime(“%H:%M”)
checkYTfile() :: returns False if File not found , True if found.
runInteractive()
setPath() :: give complete path to a .txt file with youtube links as alarmVideos.Import :from alarm import beginUse :a,t = begin.getInput()
begin.runInBackground(t,a)
begin.checkYTfile()
begin.runInteractive()
Package: pyalarmdotcom
version number: 0.3.2
author: Daren LordOverviewA simple library to interface with Alarm.com.Mainly built for use with Home-AssistantInstallation / UsageTo install use pip:$ pip install pyalarmdotcomOr clone the repo:$ git clonehttps://github.com/Xorso/pyalarmdotcom.git$ python setup.py installContributingTBDExampleTBDChangelog### 0.3.1
* Updated login response check to not look at the redirect page.
### 0.3.2
* Merge 0.3.1 from pypi with repo on GitHub
Package: pyalc7t
pyALC7T (Steuerprogramm und Datenlogger für ALC 7000 Expert)IndexDescriptionBeschreibungEigenschaftenKompatibilitätInstallationLizenzDanksagungDescriptionpyALC7T is a controller and data logger for the ALC7000 Expert battery charger made by
the german company ELV Elektronik AG. The charger has four channels and can charge
NiCd, NIMH and Lead-Acid batteries. pyALC7T controls this device and logs measurement
over a serial RS232 connection. pyALC7T is entirely written in Python3 using the
Qt framework. It was tested on LINUX, Windows 10 and Mac OS.Because I do not known whether the charger has been used outside of Germany, the
software and the documentation is entirely in German.pyALC7T is a reengineered version of the BASIC programAlc7t(c) Frank Steinberg 2006.BeschreibungpyALC7T ist ein Steuerprogramm und Datenlogger für das Ladegerät ALC7000 Expert
der Firma ELV Elektronik AG. Das Ladegerät ALC 7000 Expert verfügt über vier Kanäle,
mit denen NiCd, NiMh und Blei-Akkus geladen werden können. Das Gerät verfügt über eine
RS-232 Schnittstelle, über die das Ladegerät gesteuert wird und mit der die
Messwerte der vier Kanäle ausgelesen werden.pyALC7T ist eine reengieerte Version des BASIC ProgrammsAlc7t(c) Frank Steinberg 2006.EigenschaftenEntwickelt mit Python 3 und dem Qt-Framework.Alle Funktionen des ALC 7000 Expert können über die Benutzeroberfläche gesteuert
werdenAnzeige und Aufzeichnung der Messwerte für alle Kanäle als TextdateiVerwaltung von Akkukonfigurationen (Typ, Anzahl Zellen, Ladestrom, Entladestrom,
Nennspannung, Nennkapazität, Ladestrom, Entladestrom)Anzeige von Spannung und Strom als Liniengrafik während oder nach der AufzeichnungAnzeige der Delta-Peak Spannung und geladener KapazitätDie Funktionen der Ladekontrolle und Messwertverarbeitung sind mit denen des BASIC
Programms Alc7t identisch.KompatibilitätpyALC7T wurde erfolgreich unter LINUX, Windows 10 und Mac OS getestet. Es wird
eine serielle Schnittstelle benötigt, die auch als USB 232 Schnittstelle nachgerüstet
werden kann.InstallationpyALC7T setzt voraus, dass der Python Interpreter und das Qt Framework installiert sind.Dies ist in derInstallationsanleitungnäher beschrieben.Für die grafische Anzeige von Messwerten mussGNUPLOTinstalliert
werden. Ohne installiertes GNUPLOT werden die Messwerte lediglich tabellarisch
angezeigt.LizenzpyALC7T wird unter der  GNU General Public License v2.0 veröffentlicht.
(siehe Datei: LICENSE).DanksagungpyALC7T ist eine reengieerte Version des BASIC ProgrammsAlc7t(c) Frank Steinberg 2006.
Package: pyalchemy
A library which provides implementations of the kernel of the Alchemical Integral Transform (AIT) for general potentials in 1D. An introduction to the concept, further explanations and details can be found underhttps://arxiv.org/abs/2312.04458.Instead of calculating electronic energies of systems one at a time, this kernel provides a shortcut. By using an initial system's electron density, one can calculate the energy difference to any other system within the radius of convergence of AIT. Check out myGitHub pageand the correspondingpaper.PyAlchemy usesHartree atomic units.
Package: pyalexa-lambda
PyAlexa for AWS lambda and HTTPS server© 2018 SiLeader.usageuse AWS Lambdaimportalexadeflambda_handler(data,_):request=alexa.Request(data)ifrequest.type=="IntentRequest":response=alexa.Response()response.output_speech(text="Alexa Test")returnresponse.responseuse FlaskfromflaskimportFlask,request,jsonifyimportalexaapp=Flask(__name__)@app.route("/alexa/endpoint",methods=["POST"])defalexa_endpoint():req=alexa.Request(request.json)ifrequest.type=="IntentRequest":res=alexa.Response()res.output_speech(text="Alexa Test")returnjsonify(res.response)LicenseApache License 2.0See LICENSEfor DialogflowGitHub
Package: py_alg_dat
CONTENTABOUT PY_ALG_DATREQUIREMENTSINSTALLATIONUNIT TESTSEXAMPLESDOCUMENTATIONLICENSEAUTHORABOUT PY_ALG_DATpy_alg_dat is a collection of data structures and algorithms written in Python.
The purpose of the code is to show how many of the abstract data types (ADTs) and
algorithms being thought in Computer Science courses can be realised in Python.My primary focus has been to write a library which presents a clear
implementation of the various data structures and algorithms and how they can
be used. This means that I have made a conscious tradeoff where clarity of the
code outweighs subtle and exotic implementation constructs.The library has mostly been implemented as a recreational project and should
as such not be used in production code, since most of the data structures and
algorithms are already available in the standard Python library. However,
writing software that is robust, performs well, and is easy to maintain requires
knowledge of data structures and algorithms. Therefore, implementing and
experimenting with these provides valuable knowledge about the inner workings
and implementation details found in such stardard libraries.FEATURESData structures included in the libraryDynamic arrayStackQueueBinaryHeap
- MinHeap
- MaxHeapLinkedList
- Singly linked list
- Doubly linked listPartition/Union-FindGraph
- Directed
- Undirected
- Directed weighted
- Undirected weightedAdditionally, the library contains the most common algorithms and operations
needed when working with these data structures.REQUIREMENTSThe library is selfcontained and does not have any external dependencies.
py_alg_dat should run on any platform with Python 2.7 or above.INSTALLATIONTo install the py_alg_dat library execute the following command in the raptor
directory:$ python setup.py installEXAMPLESBesides the unit tests py_alg_dat has a collection of functional test examples
which shows how the library can be used from a client’s perspective.The examples can be found in the ‘examples’ folder in the raptor directory.DOCUMENTATIONThe py_alg_dat API contains Docstrings for all classes and methods. Additional
documentation about the library can be found in the ‘docs’ folder in the
raptor directory.LICENSEpy_alg_dat is published under the MIT License. The copyright and license are
specified in the file “LICENSE.txt” in the raptor directory.AUTHORBrian Horn,trycatchhorn@gmail.com
Package: pyAlgebra
pyAlgebra-vperforms integral and differentiable operations on string expressions using sympyMotivationThe motivation behind it came from the purpose and realisation tohelpothers understand it in a much better.In other words,to push others and become a better version of ourselves.Tech/framework usedEx. - latest version of sympy(or 1.8), matplotlib(or 3.1.3)Built withidle-python3Code Example#For example :-importmatplotlib.pyplotaspltfromsympyimportsympifyfromsympyimportPoly,Symbol,summation,pprint,solve,Integral,Derivativefromsympyimportsolve_poly_inequality,solve_rational_inequalities,solve_univariate_inequality,sinexpr='-x**2 + 4 < 0'pprint(inequality_solver(expr))expr='((x-1)/(x+2)) > 0'pprint(inequality_solver(expr))expr='sin(x)-0.6>0'pprint(inequality_solver(expr))r1,r2=roots(1,1,1)print(r1,r2)x_values=list(range(-1000,1000))expr='x*x*x*x+5*x*x*x+10*x*x+12*x+1'plot_general_equation(expr,x_values)x=Symbol('x')y=Symbol('y')z=Symbol('z')expr1=2*x+2*y+2*zexpr2=4*x+4*y+4*zexpr3=3*x+3*y+3*zexpressions=(expr1,expr2,expr3)print(solve_n_equations(expressions))expr=a*n+dupto=10000s=seriesSummation(expr,upto)pprint(s)St='5*u*t**2+2*t+8'Stt=find_derivative(St,'t')pprint(Stt)Sttt=find_derivative(Stt,'t')pprint(Sttt)
Package: pyalgen
pyalgen - A minimal library for genetic algorithm in pythonInstallpip3installpyalgenHow to useImport the packageimportpyalgen# import pyalgenfrompyalgenimportTestFunctionsastf# test functions to optimizeDefine populationpop=pyalgen.Population(low=-10,high=10,dtype='float',dist='uniform')# the variable in the population is of type float and the# values are taken from a uniform distribution in (low, high)population=pop(pop_size=1000,variables=2)# variables is the number of variables to optimize. We are optimizing the# matyas function which has two variables# search space ranges from -10 to 10# pop_size is the population size of each generationMatyas functionSelect type of selection, crossover and mutation strategiesselection=pyalgen.Selection.tournamentcrossover=pyalgen.Crossover.onepointmutation=pyalgen.Mutation.randompointInstantiate Genetic Algorithm object with defined variablesga=pyalgen.GeneticAlgorithm(population,tf.matyas,selection,crossover,mutation)Run the algorithmiterations,objective,pop=ga.forward(iterations=200)# iterations is the number of generations to run forprint(f'objective:{objective.min()}, solution:{pop[objective.argmin()]}, generation:{iterations}')# print the minimum objective and the chromosome in population which# given minimum objectiveCheck the result100%|██████████████████████████████████████████████████████████|1000/1000[00:03<00:00,262.55it/s]objective:7.719286052427051e-07,solution:[-0.00447918-0.00410235],generation:1000# global minimum of matyas is at f(0, 0) = 0# our algorithm gives minimum, f(-0.004, -0.004) = 7.7e-07# which is pretty closeResults can be improved by tweaking the parametersTesting the algorithm on custom functionLet's solve the equation,Complete codeimportpyalgenpop=pyalgen.Population(1,30,unique=True,dtype='int')population=pop(1000,4)# here we generate intergers in range[1, 30)# for populationselection=pyalgen.Selection.tournamentcrossover=pyalgen.Crossover.onepointmutation=pyalgen.Mutation.randompointdefobj(a,b,c,d):# objective functionreturna+2*b+3*c+4*d-30ga=pyalgen.GeneticAlgorithm(population,obj,selection,crossover,mutation)iterations,objective,pop=ga.forward(iterations=50)ifiterations==1000:print(f'objective:{objective.min()},\solution:{pop[objective.argmin()]}, generation:{iterations}')else:print(f'objective:{objective[objective==0][0]},\solution:{pop[objective==0][0]}, generation:{iterations}')GeneticAlgorithm breaks the computation, if any of the chromosome reached out objective, i.e,0Result40%|████████████████████████▊|20/50[00:00<00:00,509.30it/s]objective:0,solution:[4622],generation:20The algorithm reached a solution during generation:11Solution: a =11, b =4, c =1, d =2
Package: pyalgo-pkg
pyalgo_pkgThis is package is for basic algorithms in python.The purpose of this library is to learn the algorithms.this is an experiment that I do to improve my code skills and to get a better
understanding of how certain algorithms work.if you see anything that you think that needs to be fixed
or that accidentally stolen from somewhere else so contact me, and I'll fix this.import as'import pyalgo'Gmail:gilad.dotann@gmail.comGithub:https://github.com/gilad-dotan/pyalgo_pkgThe new features:Algocryption:I added algocryption which is a directory for encryption algorithms:-Including 'RSA'-XOR-Simple columnar Transposition-SHA256
Package: pyalgorand
Pyalgorand____           _    _                                 _
 |  _ \ _   _   / \  | | __ _  ___  _ __ __ _ _ __   __| |
 | |_) | | | | / _ \ | |/ _` |/ _ \| '__/ _` | '_ \ / _` |
 |  __/| |_| |/ ___ \| | (_| | (_) | | | (_| | | | | (_| |
 |_|    \__, /_/   \_\_|\__, |\___/|_|  \__,_|_| |_|\__,_|
        |___/           |___/OverviewPyAlgorand aims at simplifying development on the Algorand blockchain.Installationpip install pyalgorandOptional installationIf one wants to use an Algorand sandbox network, please go tohttps://github.com/algorand/sandboxfor more details.If one wants to use IPFS features in pyalgorand and test them locally, it is recommended to use the following procedure:wgethttps://dist.ipfs.io/go-ipfs/v0.7.0/go-ipfs_v0.7.0_linux-amd64.tar.gztar-xvzfgo-ipfs_v0.7.0_linux-amd64.tar.gzcdgo-ipfs&&sudo./install.sh&&ipfsinit&&ipfsdaemon&Note thatsudomight not be necessary on your system.Getting startedSome examples are available inhere:how to create accountsshare files on IPFS and secure themStart with the creation of accounts. Some of the examples require Purestake API, registerhere.