Saravanan666/pypi-org huggingface dataset:
Package: python-qinlingclient
Team and repository tagspython-qinlingclientThis is an OpenStack Client (OSC) plugin for Qinling, an OpenStack
Function as a Service project.For more information about Qinling see:https://docs.openstack.org/qinling/latest/For more information about the OpenStack Client see:https://docs.openstack.org/python-openstackclient/latest/Free software: Apache licenseDocumentation:https://docs.openstack.org/python-qinlingclient/latest/Release notes:https://docs.openstack.org/releasenotes/python-qinlingclient/Source:https://opendev.org/openstack/python-qinlingclientBugs:https://storyboard.openstack.org/#!/project/926Getting StartedNoteThis is an OpenStack Client plugin.  Thepython-openstackclientproject should be installed to use this plugin.Qinling client can be installed from PyPI using pip:pip install python-qinlingclientIf you want to make changes to the Qinling client for testing and contribution,
make any changes and then run:python setup.py developor:pip install -e .
Package: python-qiwi
python-qiwiRUvercionБилиотека python-qiwi используется для удобной работы с api QIWI кошелькаУстановка:pip install - U python-qiwiСоздание объекта wallet:importpython_qiwiphone='+79021234567'# номер телефонаtoken='token'# токен полученный на сайте https://qiwi.com/apiwallet=python_qiwi.QiwiWаllet(phone,token)Получение баланса кошелькаwallet.balance()Это вернёт баланс первого вашего счёта. Например: 500.00Если же вы хотите получить балан со всех свох счетов то используйтеwallet.full_balance()Это вернёт вам json ответ. Например:{'accounts':[{'alias':'qw_wallet_rub','fsAlias':'qb_wallet','bankAlias':'QIWI','title':'QiwiAccount','type':{'id':'WALLET','title':'QIWIWallet'},'hasBalance':True,'balance':{'amount':500.00,'currency':643},'currency':643,'defaultAccount':True}]}ПлатёжДля того что бы перевести деньги с кошелька на кошелёк используйтеwallet.pay(to_qw='+79012345678',sum_p2p=10,comment='комментарий к платежу',currency=643)to_qw - номер кошелька для переводаsum_p2p -  сумма перевода в формате intcomment - комментарий к платежуcurrency - код валюты(по умолчанию - рубль)Выставление счётаИспоьзуйтеbill=wallet.bill()Вы получите специальную комбинацию символов. Её надо указать в при переводе средств на счёт указанный при создании объекта кошелькаПроверка оплатыДля того что бы проверить оплату используйтеifwallet.check(bill):print('Оплата прошла')bill - это специальная комбинация символов. Вы могли получить её впрошлом разделеПолучение информации о платижеwallet.get_payment(bill)bill - это специальная комбинация символов. Вы могли получить её в разделе"Выставление счёта"Получение истории платижейwallet.payment_history(rows_num=10)rows_num - количество платижей которые вы хотите получитьПолучение информации о профилеwallet.get_profile()Вернёт информацию о профиле
Package: pythonql
PythonQL Query Language ExtensionPythonQL allows you to use powerful queries against files, databases, XML and JSON data, Pandas DataFrames and any collections.Just run pip install pythonql (pythonql3 for Python3) and you can start using a powerful query language right inside you Python code!
PythonQL won’t break your existing code, you just need to mark PythonQL files with #coding: pythonql and you’re set to go.
Package: pythonql3
PythonQL Query Language ExtensionPythonQL allows you to use powerful queries against files, databases, XML and JSON data, Pandas DataFrames and any collections.Just run pip install pythonql (pythonql3 for Python3) and you can start using a powerful query language right inside you Python code!
PythonQL won’t break your existing code, you just need to mark PythonQL files with #coding: pythonql and you’re set to go.
Package: python-qpid-proton
This module provides a Python binding to the Proton AMQP messaging toolkit.Qpid Proton is a high-performance, lightweight messaging library. It
can be used in the widest range of messaging applications, including
brokers, client libraries, routers, bridges, proxies, and more. Proton
makes it trivial to integrate with the AMQP 1.0 ecosystem from any
platform, environment, or language.  More aboutProton.
Package: python-qpid-proton-wheel
This module provides a Python binding to the Proton AMQP messaging toolkit.Qpid Proton is a high-performance, lightweight messaging library. It
can be used in the widest range of messaging applications, including
brokers, client libraries, routers, bridges, proxies, and more. Proton
makes it trivial to integrate with the AMQP 1.0 ecosystem from any
platform, environment, or language.  More aboutProton.
Package: python-qsoptex
UsageThe Python module does not yet expose the full interface of the library
but just enough is available to be able to build problems or load
problems from a file and solve it. After solving, the values of
variables can be obtained, as shown below.These values will be returned asfractions.Fractionor (if the value
is an integer)int. Similarly, when building a problem the
parameters can be given asfractions.Fractionorint(or any
othernumbers.Rational) or anything that can be converted toFractionusing theFractionconstructor (i.e.float,Decimal, etc.).importqsopteximportlogginglogging.basicConfig(level=logging.DEBUG)p=qsoptex.ExactProblem()p.add_variable(name='x',objective=2,lower=3.5,upper=17.5)p.add_variable(name='y',objective=-1,lower=None,upper=2)p.add_linear_constraint(qsoptex.ConstraintSense.EQUAL,{'x':1,'y':1},rhs=0)p.set_objective_sense(qsoptex.ObjectiveSense.MAXIMIZE)p.set_param(qsoptex.Parameter.SIMPLEX_DISPLAY,1)status=p.solve()ifstatus==qsoptex.SolutionStatus.OPTIMAL:print('Optimal solution')print(p.get_objective_value())print(p.get_value('x'))The module is also able to load problems from external files:p=qsoptex.ExactProblem()p.read('netlib/cycle.mps',filetype='MPS')# 'LP' is also supportedp.set_param(qsoptex.Parameter.SIMPLEX_DISPLAY,1)status=p.solve()Known issuesWhen creating a problem with the QSopt_ex library, the variables and
constraints will be assigned a default name if no name is specified by the
user. Variables will be namedxNorx_Nand constraints will be namedcNorc_N(whereNis an integer). If the user later adds a named
variable or constraint which uses a name that is already in use, the name of
the new variable or constraint will be silently changed by the QSopt_ex
library. For example, the last line of the following code will remove the
first constraint from the problem, not the second.p=qsoptex.ExactProblem()p.add_variable(name='x',objective=2,lower=3.5,upper=17.5)p.add_variable(name='y',objective=-1,lower=None,upper=2)p.add_linear_constraint(qsoptex.ConstraintSense.EQUAL,{'x':1,'y':1},rhs=0)p.add_linear_constraint(qsoptex.ConstraintSense.LESS,{'x':1},rhs=15,name='c1')# Deletes the first constraint, not the secondp.delete_linear_constraint('c1')This issue can be avoided by always assigning names to variables and
constraints, or by avoiding using the same names as QSopt_ex uses as default
names.BuildingThe module requires the QSopt_ex library to be installed. Currently,
the modified version athttps://github.com/jonls/qsopt-exis required at
version 2.5.10.3 or later.Usesetup.pyto build the extension. The setup script is based onsetuptools.$./setupinstallIf GnuMP or QSopt_ex is installed non-standard locations, the include
and library paths can be set using the environment variablesGnuMP:GMP_INCLUDE_DIRandGMP_LIBRARY_DIRQSopt_ex:QSOPTEX_INCLUDE_DIRandQSOPTEX_LIBRARY_DIRFor example, if GnuMP is installed in the/opt/localprefix$GMP_INCLUDE_DIR=/opt/local/includeGMP_LIBRARY_DIR=/opt/local/lib\./setup.pyinstall
Package: python_qt_binding
Both the bindings and tools t...Home-page: http://ros.org/wiki/python_qt_bindingAuthor: Dave Hershberger, Dorian Scholz, Dirk ThomasMaintainer: Dirk ThomasMaintainer-email: dthomas@osrfoundation.orgLicense: BSDDescription: This stack provides Python bindings for Qt.There are two providers: pyside and pyqt.  PySide is released underthe LGPL.  PyQt is released under the GPL.Both the bindings and tools to build bindings are included from eachavailable provider.  For PySide, it is called &quot;Shiboken&quot;.  For PyQt,this is called &quot;SIP&quot;.Also provided is adapter code to make the user's Python codeindependent of which binding provider was actually used which makesit very easy to switch between these.Platform: UNKNOWNClassifier: Development Status :: 5 - Production/StableClassifier: Intended Audience :: DevelopersClassifier: Operating System :: OS IndependentClassifier: Programming Language :: PythonClassifier: Topic :: Software Development :: Libraries :: Python ModulesClassifier: License :: OSI Approved :: BSD LicenseClassifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Package: python-qt-live-coding
Live Coding Environment for Python, Qt and QMLThis project provides a live coding environment for Python and Qt. It supports bothPyQtandQt for Python (PySide2)via thepython_qt_binding.See also:My blog post about Qt/QML live codingcpp-qt-live-coding: The C++ version of this project.Lightning Talk from QtDay.it 19InstallTo install the live coding environment run:pythonsetup.pyinstallor install it via pippipinstallpython-qt-live-codingYou also need to install PyQt or PySide2 for this application to work. The quickest way to
achieve this is to use pip.pipinstallPyQt5orpipinstallpyside2UseThe live coding environment comes with a live runner which enables your to live
code Qt GUIs quickly.Run following to test drive the example:python_qt_live_codingexamplesYour will instantly see the example project in the live runner.Now you can either select theMainScreen.qmlfile or typeMainScreenin the filter.When you type, the file will be automatically selected.When loaded you will see following.This is the example GUI inside the live runner.Now press theEditbutton. Your favorite text editor should open promptly.Edit the code inside the editor und you will see the GUI updates instantly when you save the document.Integrate in your applicationAlternatively, you can integrate live coding into your Python Qt application.This especially useful if you want to customize the live coding GUI for your needs.For this purpose you need to do following things:Integrate thestart_live_codingfunction into yourmain.py.Add a command line argument for live coding.Optionally, add a customlive.qml.To learn more about how this works please take a look theintegratedexample.Python QML module supportThe live coding environment has built in support for Python QML modules.The idea is to place QML and Python code in the same directory, similar to how you would create a Qt/C++ application.
Additionally, with Python we have the advantage of being able to discover modules automatically.For this purpose addregister_qml_typesfunction to the__init__.pyof your Python QML module.
See the example inexamples/standalone/module/__init__.py.However, so far automatic reloading of Python code is not support.
When you work on a Python module please use theRestartbutton which restarts the live coding application instead.Forcing PyQt or Python for Qt (PySide2) usageIn some cases you might want to force which Python Qt bindingpython_qt_live_codingis using.
This can be done by passing the optional--bindingargument via the command line.python_qt_live_coding-bpyside.PyCharm SupportFor this application to work with PyCharm and other IntelliJ IDEs please disable the "safe write" feature.
The feature writes a temporary file before saving any file, which can confuse the file change watcher.
Package: python-qualisys
Load data from a .txt file exported from QTM intopandas:pip install qualisysIn[1]:fromqualisysimportload_qtm_dataIn[2]:data,metadata=load_qtm_data('example_data.txt')In[3]:metadataOut[3]:{'analog_frequency':0,'description':'--','events':[],'no_of_frames':720,'pc_on_time':912.56663253,'no_of_cameras':7,'marker_names':['RIGHT_KNEE','right_ankle'],'frequency':120,'no_of_markers':2,'no_of_analog':0,'data_included':'3D','time_stamp':numpy.datetime64('2014-06-17T08:53:44-0400')}In[4]:dataOut[4]:<class'pandas.core.panel.Panel'>Dimensions:2(items)x720(major_axis)x3(minor_axis)Itemsaxis:RIGHT_KNEEtoright_ankleMajor_axisaxis:0.00833to6.0Minor_axisaxis:xtozIn[5]:data['right_ankle'].head()Out[5]:dimxyzt0.008331501.1022073.985102.8150.016671501.1872074.183103.0580.025001501.0522073.905102.7750.033331501.5572073.970103.1950.041671501.4252073.629102.974
Package: python-query
Python QueryPython library heavily inspired byreact-query.Getting StartedHere is a compilation of some actions that are achievable with this library.importasyncioimportpython_queryasyncdeffunction()->None:awaitasyncio.sleep(1)return2asyncdefmain():query_cache=python_query.QueryCache()query_cache["query1"]=lambda:1query_cache["query2"]=functionassertawaitquery_cache["query1"].fetch_async()==1assertawaitquery_cache["query2"].fetch_async()==2query_cache["query1"]=lambda:3assertawaitquery_cache["query1"].fetch_async()==3query_cache["parent","child1",{"page":1}]=lambda:4query_cache["parent","child1",{"page":1,"per_page":10}]=lambda:5queries=query_cache.get_queries_not_exact("parent")queries2=query_cache.get_queries_not_exact(["parent","child1"])queries3=query_cache.get_queries_not_exact(["parent","child1",{"page":1}])assertlen(queries)==2assertlen(queries2)==2assertlen(queries3)==2asyncio.run(main())DecoratorsThe library also provides decorators to easily create queries.importasyncioimportpython_queryquery_cache=python_query.QueryCache()# Static keys@QueryCache.cache(query_cache,["key","1"])asyncdeffunction()->None:awaitasyncio.sleep(1)return2# Generate keys based on the arguments@QueryCache.cache(query_cache,lambdanumber:["key","1",number])asyncdeffunction2(number:int)->None:awaitasyncio.sleep(1)returnnumberasyncdefmain():# Only added to cache when called first timeassertquery_cache.get_query(["key","1"])isNoneassertawaitfunction()==2assertquery_cache.get_query(["key","1"])isnotNoneassertawaitquery_cache.get_query(["key","1"]).fetch_async()==2assertawaitfunction()==2# Only added to cache when called first timeassertquery_cache.get_query(["key","1",3])isNoneassertawaitfunction2(3)==3assertquery_cache.get_query(["key","1",2])isNoneassertquery_cache.get_query(["key","1",3])isnotNoneassertawaitquery_cache.get_query(["key","1",3]).fetch_async()==3assertawaitfunction2(3)==3asyncio.run(main())
Package: pythonquerylanguage
Python Query Language PQLPQLis a python wrapper of the sql sintax based in SQLalchemy and pandas, this code introduces a new syntax to use
in your code when calling a database table.RequirementsYou only need a distribution of python3 installed.⚙️Installation:You can install the requirements (preferably in an environment) using:pip install PythonQueryLanguageBasic Usage:PQL is managed by a class called SQLManager, to instanciated you will need to pass your connection strings in a dictionary
and the enviroment you are willoing to useconnection_dict = {'test_env': 'connection string from engine', 'prod_env': 'mssql+pyodbc://ur@prod.com/url2?driver=ODBC+Driver+17+for+SQL+Server' } env = 'test_env' pql = SQLManager(connection_dict,env)Once you have instanciated the class you can use it with his convenient functions that will wrap SQL expresions.pql.select_all('tableA','id','myid')  =  SELECT * FROM tableA WHERE id = 'myidPQL supports searchs in arrays:pql.select_all('tableA','id',['myid','myid2'])  =  SELECT * FROM tableA WHERE id IN ('myid','myid2')PQL cast the data in a inteligent manner:pql.select_all('tableA',['id','name'],['myid','myName'])  =  SELECT * FROM tableA WHERE id = 'myid' AND myName = 'myid2'PQL accepts adiotional arguments:pql.select('column','tableA',['id','name'],['myid','myName'],'OR')  =  SELECT column FROM tableA WHERE id = 'myid' OR myName = 'myid2'PQL accepts direct evaluation or raw sql expressions (thougt only recommended in edge cases)pql.query("SELECT * FROM tableA WHERE id = 'myid")  =  SELECT * FROM tableA WHERE id = 'myid'PQL accepst function and Store procedure evaluations.Multy enviroment usage.PQL is built to support working with different db environments at the same time, this multi enviroment work can be done in different ways:Instanciate the PQLmanager with different enviroments and run them.Changing the enviroment of the class with the change_enviroment method.Using scoped functions.Example of scoped functions:You are working in a database test enviroment but you need to extract some data from the production enviroment without changing the enviroment of the PQLmanager
Then you can query the table at producion using a scope:pql.select_all('TableA',env='prod')This function will run in the production environment and retrieve the information from it without changing your global environment.IUDPQL supports Insert Update Delete Operations, all these operations are based in pandas dataframes.Interactive.PQL is thought to be used in a jupyter notebook as well as used in real code. PQL contains different functionalities that allows the user
to know what query will be executed in the database and confirmation security.
Package: python-quilt
python-quilt is apythonimplementation of the well-known toolquiltto manage a series of patches.It’s intended to be used within a python application or framework but
also provides a console client interface called pquilt.python-quilt requires thesixpackage for python 2/3 compatibility. It
also requirespatchanddifftools for creating and applying diffs.Source code of python-quilt can be found athttps://github.com/bjoernricks/python-quiltSupported quilt commandsCurrently the following quilt commands have been implemented already(but might still miss some features).addapplieddeleteeditimportnewnextpoppreviouspushtoprefreshrevertseriesunappliedCurrently unsupported commandsdifffilesheaderrenameUnlikely to be supportedThe following quilt commands are unlikely to be implemented either
because they they don’t make much sense in a python package or nobody
has stepped up to implement its feature.annotatefoldforkgraphgrepmailpatchessetupshellsnapshotupgrade
Package: python-qweather
Python API wrapper for和风天气Features城市信息查询实时天气逐天天气预报实时空气质量Usage暂时只支持异步（async）调用，因为最初是为集成在 homeassistant 开发的 :)实时天气importaiohttpimportasynciofrompython_qweatherimportQWeatherasyncdeftest_now_weather():asyncwithaiohttp.ClientSession()asclient_session:q=QWeather(api_key=os.environ['QWEATHER_APIKEY'],session=client_session,location_key='101010100')now_weather=awaitq.async_get_now_weather()print(now_weather)asyncio.run(test_now_weather())TODOCredits and Thankshttps://github.com/bieniu/accuweather
Package: python-rabbitair
Rabbit Air Python libraryThis library can be used to control Rabbit Air air purifiers over a local
network.Usage#! /usr/bin/env python3importasynciofromrabbitairimportMode,Speed,UdpClientasyncdefmain():withUdpClient("ip","token")asclient:# Getting the current state of the air purifierstate=awaitclient.get_state()print(state)# Controlling the air purifierprint("Power Off")awaitclient.set_state(power=False)awaitasyncio.sleep(3)print("Power On")awaitclient.set_state(power=True)awaitasyncio.sleep(3)print("Set Speed to High")awaitclient.set_state(speed=Speed.High)awaitasyncio.sleep(3)print("Set Mode to Auto")awaitclient.set_state(mode=Mode.Auto)asyncio.run(main())Retrieving the Access TokenTo establish a connection, you need to know the address and access token of the
device.Open the Rabbit Air mobile app. You will see a list of devices connected to
your account.Tap the list item and the device control page will open.On the device page tap theEditbutton. You will see a page with the
device location and name settings.On this page, quickly tap on "Serial Number" several times until you see two
more lines that were previously hidden. The first is the device ID, and the
second is the access token.Note that the device ID is used as an mDNS name of the device. So you can
specify it as thehostvalue by adding the suffix ".local" at the end.For example, you got:Then you can useabcdef1234_123456789012345678.localas thehostand0123456789ABCDEF0123456789ABCDEFas thetoken.In some cases the access token may not be available right away, then you will
see a "Tap for setup user key" message instead. To generate the access token,
tap on this message and follow the instructions. If the app says "your device
is not supported", it probably means that you are trying to connect to a
first-generation MinusA2 model (an older hardware revision). It is not yet
supported.
Package: python-radix
# python-radixPython-radix libraryThe library contains tools for conversion numbers to a new base. Current version works with radixes from 2 to 36.Python-radix usage examplesPython-radix has both procedural and object-oriented solutions.Procedural way example# to convert number 4 from base 10 to base 2cast(4, 10, 2)>>’100’You can use both str and int types for the number you convert.Object oriented way example# create an object to convert numbers from one base to another (here it converts from base 10 to base 2)new = Converter(10, 2)new.convert(4)>>’100’This will work too:new = Converter(10, 2)new.convert(‘4’)>>’100’
Package: python-radix-ng
python-radix libraryThe library contains tools for representing natural numbers in a given base,
or to current any numeral representing a natural number between two bases.
Currently any base between 2 and 36 is supported.Python-radix usage examplesPython-radix has both procedural and object-oriented solutions.Procedural way example# to convert numeral 4 from base 10 to base 2
>>> cast('4', 10, 2)
'100'

# to convert the integer 4 to base 2
>>> cast(4, None, 2)Note that since the first argument is a number, rather than a numeral,
the second parameter is irrelevant, so None is used.Object oriented way example>>> # create an object to find the base 2 representation of any natural number
>>> new = Converter(None, 2)
>>> new.convert(4)
'100'
>>> # create an object to find the base 2 representation of any base 10 numeral
>>> new = Converter(10, 2)

>>> new.convert('4')
'100'Using characters as digits# the digits 0 through 9 are succeeded by the lower case ASCII alphabet
>>> cast('a', 16, 10)
'10'