Saravanan666/pypi-org huggingface dataset:
Package: qvikconfig
qvikconfig is a parser of a simple config file syntax called the
qvikconfig format. The basic syntax is ‘property = value’. qvikconfig
works with both Python 2.6+ and Python 3.x.Licenseqvikconfig is free software under the terms of the GNU General Public
License version 3 (or any later version). The author of qvikconfig is
Niels Serup, contactable atns@metanohi.org. This is version 0.1.1 of
the program.InstallingIf you have python-setuptools installed, you can just do this:$ sudo easy_install qvikconfigAlternatively, download and extract the gzipped tarball found on this
very page, and then run this:$ sudo python setup.py installThe newest version ofqvikconfigis always available athttp://metanohi.org/projects/qvikconfig/and at the Python
Package Index.UsingThis module has two functions:parseanddump.parseis
used to read config files, whiledumpis used to write config
files. The basic syntax of config files isproperty = value. The
complete documentation is included within the qvikconfig library and
can be accessed by executingpydoc qvikconfig.Tests of qvikconfig config files are located in thetests/directory of the distribution.
Package: qvncwidget
pyQVNCWidgetVNC Widget for Python using PyQt5How to installpip3installqvncwidgetTODO:Proper error handlingonFatalErrorsupport for more than just RAW and RGB32 PIXEL_FORMATssupport for compressionimplement rfb 3.7 and 3.8implement local and remote clipboardExamples (see /examples folder)importsysfromPyQt5.QtWidgetsimportQApplication,QMainWindowfromqvncwidgetimportQVNCWidgetclassWindow(QMainWindow):def__init__(self):super(Window,self).__init__()self.setWindowTitle("QVNCWidget")self.vnc=QVNCWidget(parent=self,host="127.0.0.1",port=5900,password="1234",readOnly=True)self.setCentralWidget(self.vnc)# if you want to resize the window to the resolution of the# VNC remote device screen, you can do thisself.vnc.onInitialResize.connect(self.resize)self.vnc.start()defcloseEvent(self,ev):self.vnc.stop()returnsuper().closeEvent(ev)app=QApplication(sys.argv)window=Window()window.resize(800,600)window.show()sys.exit(app.exec_())Example with widget input eventsimportsysfromPyQt5.QtWidgetsimportQApplication,QMainWindowfromqvncwidgetimportQVNCWidgetclassWindow(QMainWindow):def__init__(self):super(Window,self).__init__()self.setWindowTitle("QVNCWidget")self.vnc=QVNCWidget(parent=self,host="127.0.0.1",port=5900,password="1234",readOnly=False)self.setCentralWidget(self.vnc)# we need to request focus otherwise we will not get keyboard input eventsself.vnc.setFocus()# you can disable mouse tracking if desiredself.vnc.setMouseTracking(False)self.vnc.start()defcloseEvent(self,ev):self.vnc.stop()returnsuper().closeEvent(ev)app=QApplication(sys.argv)window=Window()window.resize(800,600)window.show()sys.exit(app.exec_())Example with window input eventsIn this example we are passing input events from the window to the widgetimportsysfromPyQt5.QtWidgetsimportQApplication,QMainWindowfromqvncwidgetimportQVNCWidgetclassWindow(QMainWindow):def__init__(self):super(Window,self).__init__()self.setWindowTitle("QVNCWidget")self.vnc=QVNCWidget(parent=self,host="127.0.0.1",port=5900,password="1234",readOnly=False)self.setCentralWidget(self.vnc)# you can disable mouse tracking if desiredself.vnc.setMouseTracking(False)self.vnc.start()defkeyPressEvent(self,ev):self.vnc.keyPressEvent(ev)returnsuper().keyPressEvent(ev)# in case you need the signal somewhere else in the windowdefkeyReleaseEvent(self,ev):self.vnc.keyReleaseEvent(ev)returnsuper().keyReleaseEvent(ev)# in case you need the signal somewhere else in the windowdefcloseEvent(self,ev):self.vnc.stop()returnsuper().closeEvent(ev)app=QApplication(sys.argv)window=Window()window.resize(800,600)window.show()sys.exit(app.exec_())Referenceshttps://datatracker.ietf.org/doc/html/rfc6143https://vncdotool.readthedocs.io/en/0.8.0/rfbproto.html?highlight=import#string-encodings
Package: qvsed
QVSED is a volatile and small text editor.“Volatile” means that QVSED is entirely stateless - once you open a file, QVSED doesn’t store any file paths or any other data other than the text contents of the file you loaded.
Additionally, QVSED won’t prompt you if you’re about to potentially lose an unsaved file, since it doesn’t know of any file metadata.
You may be prompted if you’re about to overwrite a file, but that’s up to your OS, not QVSED.QVSED follows the philosophy of ultra-minimalism, with its heavy emphasis on just editing text and nothing more.
QVSED’s editing style is text-based, not file-based like basically every other editor out there.
Text goes in, from a file, and then text later comes out, into another or perhaps the same file.QVSED can be used as a simple scratchpad or throwaway editor, as well as a general editing software application, since it won’t prompt you if you do anything destructive.
It stays out of your way on many occasions. Whether or not that’s a good thing is up to you.
Package: qwak-sim
QWAKQuantum Walk Analysis Kit - A Python package for continuous-time quantum walk (CTQW) simulation.Additionally, a fullstack web app built with Flask and PyMongo is available onHeroku.Table of Contents:FundingInstallationUsageDocumentationContributingFundingThis work is financed by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia, within project UIDB/50014/2020.InstallationYou can install the package both through PyPipip install qwak-simor locally, by cloning the project, installing the requirements via pip followed bypip install .in the cloned folder. A virtual environment is highly recommended.DependenciesNumpyScipySympymatplotlibnetworkxQuTipeelStep-by-step installation instructions can be found in the documentationinstallationpage.UsageA basic plot of the probability distribution for a CTQW with a walker starting in a superposition of central positions, in a cyclic graph, can be achieved via the following example:importnetworkxasnximportmatplotlib.pyplotaspltfromqwak.qwakimportQWAKn=100t=12initState=[n//2,n//2+1]graph=nx.cycle_graph(n)qwak=QWAK(graph)qwak.runWalk(t,initState)probVec=qwak.getProbVec()plt.plot(probVec)plt.show()Further examples exploring all the different components will be available once theusagedocumentation is complete.DocumentationDocumentation is a work in progress, and can be found in thispage.ContributingExtra requirementsautopep8pytestsphinxContributing to the package follows a relatively simple workflow. After performing the necessary setup procedures,
you will update your fork with the latest version of the QWAK project. You can now perform your changes, format
them and test them. If a new feature is added, you will need to add docstrings to the new methods and update the
existing documentation accordingly. If your contribution is directly to the documentation, you will follow a similar procedure.Step-by-step instructions on how to setup all the required components for organized contribution can be found
on thecontributingdocumentation page.
Package: qwant
#My qwant toolbox

Qwant is search context-independet and non-spying engine
* Better for e-commerce search than Google
* Free. Using on industrial scale
requires proxy that is way cheeper than google
* Available for multithreading
* Context-independet, that means a consistent output for you queries

import qwant

qwant.search("Barbie doll") 

#get only items of search. 10 by default
qwant.items("Barbie doll")

#but you can get more. It's done with multiple requests
qwant.items("Barbie doll",count=100)

#you can set web site of search
qwant.items("site:allegro.pl/oferta/ Barbie doll")

#add your proxy
session={<define your session here>}
qwant.items("site:allegro.pl/oferta/ Barbie doll",session=session)

#you can use luminati so EVERY request would be done from different IP
import luminati
session = luminati.session("<login>", "<password>")
qwant.items("site:allegro.pl/oferta/ Illuminati doll",session=session)
Package: qwantz-metadata
Dinosaur Comic Metadata ProcessorA set of tools for collecting variousRyan North'sDinosaur Comicsmetadata and compiling them into one JSON document.It uses transcripts obtained using my other project,https://github.com/janek37/parse_qwantz.InstallationInstallqwantz-metadatawithpippipinstallqwantz-metadataUsageYou need three directories: one containing the comic transcripts, one containing the footer transcripts, and one containing raw HTML files.The transcripts and footers are required to be plain text files with filenames like<comic_id> - <image_filename>.txt, e.g.0001 - comic2-02.png.txt.The filenames of the HTML files are not relevant.Once the directories are ready, runqwantz-metadatato print the combined metadata JSON document to the standard output:$ qwantz-metadata <transcript_dir> <footer_dir> <html_dir> > output.jsonAcknowledgmentsThis program would not be possible without the wonderful comics by Ryan North!
Package: qwc
qwc-middlewareSOAP service for connecting to QuickBooks webconnector.Built using the framework built by Bill Barry in:https://github.com/BillBarry/pyqwcUpdated for use with python3, WebConnector version 2.3.0.207, and rapid proto-typing of
different QuickBooks objects.Useageqwc is a soap server with built in client that uses redis to queue raw QBXML to be processed
by the QuickBooks WebConnector. This is an asynchronous process that requires the client to listen
for when work has been completed by the QBWC.[client] >> sends qbxml >> [redis][QBWC] >> checks redis for new tickets >> [redis][redis] >> sends qbxml via ticket >> [QBWC][QBWC] >> process ticket and returns reslt/error >> [redis][client] >> query or subscribe to redis for result >> [redis]Install the package in a fresh environment:python -m venv .venvthen in install the package with pip:python -m pip install qwcOr get the latest development version from github:python -m pip install git+https::/github.com/bill-ash/qwc-middlewareIf noconfig.inifile is found in the local directory, the default included with the package will be
used:[qwc]
qbwfilename = ''

username = 'qbwcuser'
# Password entered when install the .qwc file to QuickBooks WebConnector.
password = 'test'
host = 'localhost'
port = 4244

[redis]
host = '127.0.0.1'
port = 6379
password = ''
db = 0Install thepyqwc.qwcfile to the QuickBooks WebConnector by opening the WebConnector,File >> AppManagement >> Update Web Servicesand choosepyqwc.qwc. The default password istest.Start the service with:python -m qwc.scripts.start_serverThen, in a new terminal start a new session adding commands to be executed with the client.qwcClient = QBWCClient()

reqXML = add_customer('SuperCustomer123')

# Send the request to Redis to be processed by QuickBooks WebConnector 
qwcClient.sendxml(reqXML)Check the examples directory for additional information.Once new work has been delivered to the Redis queue, run an update from the QuickBooks WebConnector
to execute the pending work to be performed.Sample .qwc fileBelow is a sample .qwc file to be installed to the QuickBooks WebConnector:<?xml version="1.0"?>
<QBWCXML>
    <AppName>QWCTestService</AppName>
    <AppID></AppID>
    <AppURL>http://localhost:4244/qwc/</AppURL>
    <AppDescription>Python access to Quickbooks</AppDescription>
    <AppSupport>http://localhost:4244/</AppSupport>
    <UserName>qbwcuser</UserName>
    <OwnerID>{6801a7d2-3fb4-4643-8ef0-5e702b99521e}</OwnerID>
    <FileID>}495b6884-e33f-4dba-9ecc-a3bbad96a971}</FileID>
    <QBType>QBFS</QBType>
    <Scheduler>
        <RunEveryNMinutes>60</RunEveryNMinutes>
    </Scheduler>
</QBWCXML>Save this file with a.qwcextension to successfully install to the WebConnector.Examplefrom qwc.client import QBWCClient
from qwc.objects import add_customer
from qwc.service import start_server

# Create the QBXML
customer = add_customer(name='BillAsh123')

# Start a new client 
client = QBWCClient()

# Deliver the QBXML to redis to be processed 
client.sendxml(customer)

# Start the server and then update the installed service from QuickBooks WebConnector
start_server()
Package: qwd
Makegit rev-list --count HEADeasy to type by just calling itqwd q.Safe commandstypeto doqwd qgit rev-list --count HEADqwd qwgit branchqwd wgit log -3qwd wdgit diff --cachedDestructive commandsEach destructive command prompts confirmation before execution.typeto dotranslationqwd qwdgit add .→git status→git commit -m "<auto generated>"I made some changes, but I don't remember what I did. Create a commit for me.qwd qwdgit status→git checkout main→git pullInstallingvia PyPI, runpip install qwd.
Package: qwebtip
A Qt package that lets you use web URLs as tooltips in Qt widgets.Free software: BSD 2-Clause LicenseRequiresPySide or PyQt4 with QtWebKit included.Installationpip install qwebtipHow To UseImport qwebtip’s main model,qweburltipand set it to override one of
your widget’s tooltips with some URL.The next time you build your application and hover over that widget, a URL box
is displayed with that URL, instead.fromqwebtipimportqweburltipurl='http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'qweburltip.override_tool_tip(QtWidgets.QLabel('Some label'),url)How To Use - CustomizingSetting a custom tooltip sizefromqwebtipimportqweburltipurl='http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'qweburltip.override_tool_tip(QtWidgets.QLabel('Some label'),url,width=100,height=400,)Opening the URL at a specific header sectionurl='http://pyqt.sourceforge.net/Docs/PyQt4/qwebframe.html'qweburltip.override_tool_tip(self.line_edit,element_selector.UnknownHeaderSelector(url,'Method Documentation',),)Disabling CachingLoaded webpages are cached so that successive loads can be kept fast.
To disable caching, set this environment variable.exportQWEBTIP_DISABLE_CACHING=1This is useful for debugging but is not recommended.Changelog0.2.0 (2019-06-02)Reformatted the code to use [black](https://github.com/python/black)0.1.0 (2018-12-04)First release on PyPI.
Package: qwen
Qwen-VLMy personal implementation of the model from "Qwen-VL: A Frontier Large Vision-Language Model with Versatile Abilities", they haven't released model code yet sooo...
For more details, please refer to thefull paper.Installpip3 install qwenUsage# Importing the necessary librariesimporttorchfromqwenimportQwen# Creating an instance of the Qwen modelmodel=Qwen()# Generating random text and image tensorstext=torch.randint(0,20000,(1,1024))img=torch.randn(1,3,256,256)# Passing the image and text tensors through the modelout=model(img,text)# (1, 1024, 20000)TodoPosition aware vision language adapter, compresses image features. Singer layer cross attention module inited randomly => group of trainable embeddings as query vectors + image features from the visual encoder as keys for cross attention ops => OUTPUT: compresses visual feature sequence to a fixed lnegth of 256, 2d absolute positional encodings are integrated into the cross attentions mechanisms query key pairs => compressed feature sequence of length of 256 => fed into decoder llmBounding Boxes, for any given accurate bounding box, a norm process is applied in the range [0, 1000] and transformed into a string format (Xtope, Ytople)(Xottomright, Ybottomright) -> the string is tokenized as text and does not require positional vocabulary. Detection strings and regular text strings, two special tokens  and  are added to the beginning and end of the bounding box string. + another sed of special tokens ( and ) is introduced.CitationsPlease use the following to cite this work:@article{bai2023qwen,title={Qwen-VL: A Frontier Large Vision-Language Model with Versatile Abilities},author={Bai, Jinze and Bai, Shuai and Yang, Shusheng and Wang, Shijie and Tan, Sinan and Wang, Peng and Lin, Junyang and Zhou, Chang and Zhou, Jingren},journal={arXiv preprint arXiv:2308.12966},year={2023},url={https://doi.org/10.48550/arXiv.2308.12966}}
Package: qwertyenv
qwertyenvGym environments (Reinforcement Learning)Black Jack (from RLBook2018)Collect Coins (Chess like)"Ensure Valid Action" Gym wrapper."Up/Down/Left/Right" Gym wrapper - relevant for example for the Collect Coins environment when the piece is a rock.pip install qwertyenvExample usages for the Black Jack environment and for the Collect Coins environment can be found on github (the project's home).
Package: qwertyPOOL
Qwerty POOLPOOL stands for Python Operating Other Languages.
Qwerty POOL is made to operate other languages such as java and implement different opportunities such as creating windows.InstallationYou can install Qwerty POOL fromPyPI:pip install qwertyPOOLOr you can install Qwerty POOL fromGithub:git clone https://github.com/pi-this/POOL.gitHow to useIf Java is not installed already use the following command to install it:import qwertyPOOL
qwertyPOOL.java.jdk()
qwerty.java.jre()Although Qwerty POOL's possibilities are short within version 1.0.0, it has the capability to display a window with text from javaTo open a window in Qwerty POOL:import qwertyPOOL
qwertyPOOL.run.do()To Change the POOL icon:from qwertyPOOL import java as Lj
Lj.window.SetImage("face.png")
Lj.window.open()
Lj.runj()To Add Text to the window:from qwertyPOOL import java as Lj
Lj.window.SetText("hello qwertyPOOL!")
Lj.window.open()
Lj.runj()To View Qwerty POOL's version:qwertyPOOL.operating.version()Or:print(qwertyPOOL.__version__)To Wait in Qwerty POOL:qwertyPOOL.python.wait(2) # seconds
Package: qwertypy
qwertypyPython utilities library for financial utilities, data analysis, visualization and DSA.Quick linksGithubPyPIDocsInstallationpipinstallqwertypyUpgradepipinstall--upgradeqwertypyUsageTry on colab:Click hereqwertypy.greetingsimportqwertypy.greetingsasqpyGreetingsprint(qpyGreetings.hello())qwertypy.tickertapeqwertypy.tickertape.companiesimportqwertypy.tickertape.companiesasttCompaniestopCompanies=ttCompanies.getTopCompanies()print("TOP = ",len(topCompanies))# print("ALL = ", len(ttCompanies.getAllCompanies()))ttName="reliance-industries-RELI"companyInfo=ttCompanies.getCompanyInfo(ttName)print(companyInfo)qwertypy.tickertape.financialsimportqwertypy.tickertape.financialsasttFinancialsttName="reliance-industries-RELI"forstatementTypeinttFinancials.statementTypes:statement=ttFinancials.getStatement(ttName,statementType)print(statementType,type(statement))ttName="reliance-industries-RELI"statementType=ttFinancials.statementTypes["income"]statement=ttFinancials.getStatement(ttName,statementType)yearsAndValues=ttFinancials.getYearsAndValues(statement,"incDps")print(yearsAndValues)qwertypy.data_analysisqwertypy.data_analysis.regressionimportqwertypy.data_analysis.regressionasqpyRegressionxTrain=[1,2,3,4,5,6]yTrain=[2,4,6,8,10,12]model=qpyRegression.QpyLinearRegression(xTrain,yTrain)model.train()yPredict=model.getPrediction()print("yPredict: ",yPredict)xPredict2=[10,11]yExpected=[20,22]yPredict2=model.getPrediction(xPredict2)print("yPredict2: ",yPredict2)qwertypy.data_plotsqwertypy.data_plots.trend_plotimportrandomimportqwertypy.data_plots.trend_plotasqpyTrendPlotxValues=[iforiinrange(10)]yValues=[random.randint(1,10)for_inrange(10)]xTicks=["xTick"+str(i+1)foriinrange(10)]trendValues=list(yValues)qpyTrendPlot.trendPlot(xValues,yValues,xTicks=xTicks,rotateXTicks=90,xLabel="xLabel",yLabel="yLabel",plotTitle="plotTitle",trendValues=trendValues,legends=["trendLegend","barLegend"],text="text",textBackground="red",watermark="watermark",showValues=True,# saveToFile = "testImage.jpg")qwertypy.dsaqwertypy.dsa.single_source_shortest_pathfromcollectionsimportdefaultdictfromqwertypy.dsa.single_source_shortest_pathimportdijkstran=9edges=[(0,1,4),(0,7,8),(1,7,11),(1,2,8),(7,8,7),(7,6,1),(2,8,2),(8,6,6),(2,3,7),(2,5,4),(6,5,2),(3,5,14),(3,4,9),(5,4,10)]graph=defaultdict(lambda:defaultdict(int))foru,v,dinedges:graph[u][v]=graph[v][u]=dprint(dijkstra(graph,0,n))print(dijkstra(graph,1,n))qwertypy.dsa.all_pairs_shortest_pathfromcollectionsimportdefaultdictfromqwertypy.dsa.all_pairs_shortest_pathimportfwedges=[[1,2,3],[1,4,7],[2,1,8],[2,3,2],[3,1,5],[3,4,1],[4,1,2]]graph=defaultdict(dict)foru,v,costinedges:graph[u-1][v-1]=costfw(graph,len(graph))qwertypy.dsa.strongly_connected_componentsfromcollectionsimportdefaultdictfromqwertypy.dsa.strongly_connected_componentsimporttarjanedges=[[0,1],[2,0],[1,3],[3,4],[4,5],[5,6],[6,4]]graph=defaultdict(list)foru,vinedges:graph[u].append(v)low=tarjan(graph)print("low: ",low)scc=defaultdict(list)forkeyinlow:scc[low[key]].append(key)print("Strongly connected components: ",list(scc.values()))bridges=[]foru,vinedges:ifscc[u]!=scc[v]:bridges.append([u,v])print("Bridges: ",bridges)
Package: qwerty-weighted-levenshtein
QWERTY WEIGHTED LEVENSHTEINImplementation of Levensthtein and Damerau-Levenshtein edit distances (and similarity) weighted on the QWERTY keyboard proximity.Not all edits are equal! Insertions and substitutions of characters should be considered differently if the characters are close to each other in a standard QWERTY keyboard.This library it gives different distances based on the closeness of characters in the keyboard and it returns the Levensthtein edit distance (insertion, deletion, substition of characters) as well as Damerau-Levenshtein distanceIt also provides similarity scores from 0.0 to 1.0 denoting how similar the two strings are.Installpip install qwerty-weighted-levenshteinUsageBasic use:fromqwerty_weighted_levenshteinimportqwerty_weighted_levenshteinqwerty_weighted_levenshtein("test","pest")# It returns 1.0 as it requires one substitution (t > p = 1.0)qwerty_weighted_levenshtein("test","yest")# It returns 0.7 as t and y are close in the keyboard (t > y = 0.7)More infoWeighting Edit Distance to
Improve Spelling Correction in
Music Entity Search: Master's thesis of A. Samuellson implementing same principle for Spotify Search engine and showing correlation between physical position of keys on the keyboard and spelling mistakes/infoscout/weighted-levenshtein: Cython library implementing weighted Levensthein distance function.Damerau-Levenshtein distanceLicenseReleased under the MIT license.MIT License

Copyright (c) 2022 Daniele Volpi

Permission 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.