Saravanan666/pypi-org huggingface dataset:
Package: aiopagination
aiopaginationAboutaiopaginationis a library written using the aiogram library to help you create pagination using inline buttonsInfo:A sample to usefromaiogramimportexecutorfromaiogramimporttypesfromaiopagination.test.data.loaderimportdpfromaiopagination.widgets.aiokeyboardsimportbase_cd,pagination_cdfromaiopagination.widgets.aiopaginationimportPaginationsample_list=[(1,"Apple",'red'),(2,"Cucumber","green"),(3,"Melon","yellow"),(4,"Cherry","red"),(5,"Watermelon","green"),(6,"Banana","yellow"),(7,"Carrot","orange"),(8,"Kiwi","green"),(9,"Malina","red"),(10,"Apelsin","yellow"),(11,"Lemon","yellow"),(12,"Grape","black"),(13,"Carrot","red"),(14,"Potato","yellow"),(15,"Potato","yellow"),(16,"Banana","yellow"),(17,"Carrot","orange"),(18,"Kiwi","green"),(19,"Malina","red"),(20,"Apelsin","yellow"),(21,"Lemon","yellow"),(22,"Grape","black"),(23,"Carrot","red"),(24,"Potato","yellow")]# start@dp.message_handler(commands=["start"])asyncdefbot_start(message:types.Message):pagination=Pagination(sample_list)awaitpagination.start_message(message=message)# select item and send to user@dp.callback_query_handler(base_cd.filter())asyncdefget_item_id(call:types.CallbackQuery,callback_data:dict):awaitcall.answer(cache_time=1)item_id=callback_data.get("item_id")pag=Pagination(sample_list)get_data=awaitpag.select_item(item_id=int(item_id))awaitcall.message.answer(get_data[1],parse_mode="HTML")# pagination keyboards@dp.callback_query_handler(pagination_cd.filter())asyncdefshow_pagination(call:types.CallbackQuery,callback_data:dict):start=int(callback_data.get("start"))end=int(callback_data.get("end"))max_pages=int(callback_data.get("max_pages"))action=callback_data.get("action")pagination=Pagination(items=sample_list)ifaction=="prev":awaitpagination.prev(call=call,start=start,end=end,max_pages=max_pages)elifaction=="next":awaitpagination.next(call=call,start=start,end=end,max_pages=max_pages)else:awaitcall.answer(cache_time=1)awaitcall.message.edit_reply_markup()awaitcall.message.edit_text("Menga matn yuboring")if__name__=='__main__':executor.start_polling(dp,skip_updates=True)
Package: aio_parallel_tools
version: 0.0.1status: devauthor: huangsizheemail:hsz1273327@gmail.comDescTools for creating asynchronous scripts easily.keywords: tools,asyncioFeatureTask poolActor and Actor ManagerExampleasyncwithAioFixedTaskPoolSimple()astask_pool:print(f"test pool size{task_pool.size}")print("test 4 task with pool size 3")awaitasyncio.gather(task_pool.submit(test,func_args=["c"]),task_pool.submit(test,func_args=["b"]),task_pool.submit(test,func_args=["a"]),task_pool.submit(test,func_args=["d"]))classPinger(AioActor):asyncdefreceive(self,message):print(message)try:awaitActorManager.get_actor("Ponger").Send('ping')exceptExceptionase:print(f"receive run error{e}")finally:awaitasyncio.sleep(0.5)Installpython-mpip install aio_parallel_toolsDocumenthttps://python-tools.github.io/aio_parallel_tools/Change Logversion 0.0.1created this project
Package: aiopathlib
aiopathlib: Pathlib support for asyncioaiopathlibis written in Python, for handling local
disk files in asyncio applications.Base onaiofilesand just like pathlib, but use await.withopen('filename','w')asfp:fp.write('My file contents')text=awaitaiopathlib.AsyncPath('filename').read_text()print(text)'My file contents'content=awaitaiopathlib.AsyncPath(Path('filename')).read_bytes()print(content)b'My file contents'Asynchronous interface to create folder.fromaiopathlibimportAsyncPathapath=AsyncPath('dirname/subpath')ifnotawaitapath.exists():awaitapath.mkdir(parents=True)Featuresa file API very similar to Python's standard packagepathlib, blocking APIsupport for buffered and unbuffered binary files, and buffered text filessupport forasync/await(:PEP:492) constructsInstallationTo install aiopathlib, simply:$pipinstallaiopathlibUsageThese functions are awaitableread_textread_bytesread_jsonwrite_textwrite_byteswrite_jsonmkdirtouchexistsrenameunlinkrmdirremovestatlstatis_fileis_diris_symlinkis_fifois_mountis_block_deviceis_char_deviceis_socketExampleSome common using cases:from pashlib import Path
from aiopathlib import AsyncPath

filename = 'test.json'
ap = AsyncPath(filename)
p = Path(filename)
assert (await ap.exists()) == p.exists() == False
await ap.touch()  # Create a empty file
assert (await ap.is_file()) == p.is_file() == True
assert (await ap.is_dir()) == p.is_dir() == False
assert (await ap.is_symlink()) == p.is_symlink() == False
for func in ('is_fifo', 'is_mount', 'is_block_device', 'is_char_device', 'is_socket'):
    assert (await getattr(ap, func)()) == getattr(p, func)()
d = {'key': 'value'}
await ap.write_json(d)  # == p.write_text(json.dumps(d))
assert (await ap.read_json()) == d  # == json.loads(p.read_text())
assert (await ap.read_bytes()) == p.read_bytes()  # b'{"key": "value"}'
assert (await ap.stat()) == p.stat()
assert (await ap.lstat()) == p.lstat()
ap = await ap.rename('test_dir')  # == AsyncPath(p.rename('test_dir'))
await ap.remove()  # == await ap.unlink() == p.unlink()
await ap.mkdir()  # == p.mkdir()

# Synchronization functions
[Path(i) for i in ap.glob('*')] == list(p.glob('*'))
[Path(i) for i in ap.rglob('*')] == list(p.rglob('*'))
ap / 'filename' == ap.joinpath('filename') == AsyncPath(f'{ap}/filename')
str(AsyncPath('string-or-Path-or-AsyncPath')) == str(Path('string-or-Path-or-AsyncPath'))
ap.stem == p.stem
ap.suffix == p.suffix
Path(ap.with_name('xxx')) == p.with_name('xxx')
Path(ap.parent) == p.parent
Path(ap.resolve()) == p.resolve()
...History0.3.1 (2022-02-20)Return content size after write local fileUpgrade dependencies0.3.0 (2021-12-16)Support Python3.7Cleardev_requirements.txtto be only package name and version0.2.3 (2021-10-16)Maketouchpass test for py39.Remove support for pypy3 from docs.0.2.2 (2021-09-20)Maketouch/stat/is_file/... be awaitable.Usesuper().__new__for initial.0.2.0 (2021-08-29)MakeAsyncPathbe subclass ofpathlib.Path.Add github action to show test coverage.0.1.3 (2021-08-28)Add makefile.Test all functions.Fix rename method error.Support sync pathlib methods.0.1.0 (2021-06-14)Introduced a changelog.Publish at gitee.ContributingContributions are very welcome.
Package: aiopay
Payme API uchun Asinxron kutubxona!!!BoshlashO'rnatish:$ pip install -U aiopayExample:fromasyncioimportget_event_loopfrompayme_uz.cardsimportPaymeSubscribeCardasyncdefmain():card_api=PaymeSubscribeCard(paycom_id='paycom_id',debug=True)# debug: True - sinov rejimi, False - ishlab chiqarish rejimidata=awaitcard_api.create(number='860006******6311',expire='0399',save=True)print(data)awaitcard_api.close()if__name__=='__main__':get_event_loop().run_until_complete(main())Result:{
  "jsonrpc": "2.0",
  "result": {
    "card": {
      "number": "860006******6311",
      "expire": "03/99",
      "token": "6308******5xUj",
      "recurrent": true,
      "verify": false,
      "type": "22618"
    }
  }
}
Package: aiopayAPI
aiopayAPIАсинхронное API для работы с сайтом Payok.ioВажные ссылкиPyPiДокументацияGitHubВозможностиПолучение балансаПолучение транзакцийСоздание выплат (переводов)Методы выплатПолучение выплатСоздание ссылки для оплатыВозможные ошибки
Package: aiopaykassa
aiopaykassapaykassa.pro Api Python Async LibraryWrapper for Paykassa.pro API and SCI methodsAPI example:fromaiopaykassa.clientsimportPayKassaApiapi=PayKassaApi(api_id=<your_api_id>,api_key=<your_api_key>,shop=<your_merchant_id>)# test_mode=True for testingasyncdefprint_bitcoin_btc_balance():balance=awaitapi.get_shop_balance()print(balance.bitcoin_btc)defmain():loop=asyncio.get_event_loop()loop.run_until_complete(print_bitcoin_btc_balance())SCI example:importdecimalfromaiopaykassa.clientsimportPayKassaScifromaiopaykassa.typesimportNewOrdersci=PayKassaSci(sci_id=<your_merchant_id>,sci_key=<your_merchant_password>)# test_mode=True for testingasyncdefcreate_order_btc(order_id:int,amount:decimal.Decimal,comment:str)->NewOrder:new_order=awaitsci.create_order(order_id=order_id,amount=amount,currency=Currency.BTC,system=System.BITCOIN,comment=comment)returnnew_orderdefmain():loop=asyncio.get_event_loop()loop.run_until_complete(create_order_btc(1,decimal.Decimal(0.00001),"test"))
Package: aiopayok
AIOPayokpayok.io asynchronous python wrapperimportasynciofromaiopayokimportPayokpayok=Payok("API_ID","API_KEY")asyncdefmain()->None:print(awaitpayok.get_balance())asyncio.run(main())InstallingpipinstallaiopayokResourcesCheck out the docs athttps://payok.io/cabinet/documentation/doc_main.phpto learn more about PayOk,
Package: aiopaystack
aiopaystackAsynchronous Python library forPaystackInstallationpipinstallaiopaystackUsageAdd your paystack secret key as an environment variable as PAY_STACK_SECRET_KEYfrompaystackimportTransactionstrans=Transactions()# All parameters must be passed in as keywords. For both required and optional arguments.res=awaittrans.initialize(email="sam@gmail.com",amount='5000')# Passing secret key as an argument# This replaces any key set in the environmentfrompaystackimportPaystackpaystack=Paystack(secret_key="paystack_secret_key")# to use one session for multiple request use the class as a context managerasyncwithTransactions()astrans:res=awaittrans.verify(reference="ref")# The response type for every request is a typed dict.fromtypingimportTypedDict,AnyResponse=TypedDict('Response',{'status_code':int,'status':bool,'message':str,'data':dict|Any})# Sample response{'status':True,'message':'Authorization URL created','data':{'authorization_url':'https://checkout.paystack.com/3521i62zf1i0ljl','access_code':'3521i62zf1i0ljl','reference':'2q16btxglw'},'status_code':200}## DOC Reference: <https://developers.paystack.co/v2.0/reference>### Static UseDon't forget to get your API key fromPaystackand assign to the variablePAYSTACK_SECRET_KEYPlease reference thedocsfolder for usage,
Package: aiopeewee
AioPeeweeAsyncio interface forpeeweemodeled aftertorpeeweeImplemented database adapters:[x] aiomysql[ ] aiopg[ ] sqliteCurrently 125 test cases have been ported from peewee, not all of them but constantly increases.Simple Atomic operations (transactions) are also supported, but now well tested.InstallpipinstallaiopeeweeUsagefromaiopeeweeimportAioModel,AioMySQLDatabasefrompeeweeimportCharField,TextField,DateTimeFieldfrompeeweeimportForeignKeyField,PrimaryKeyFielddb=AioMySQLDatabase('test',host='127.0.0.1',port=3306,user='root',password='')classUser(AioModel):username=CharField()classMeta:database=dbclassBlog(AioModel):user=ForeignKeyField(User)title=CharField(max_length=25)content=TextField(default='')pub_date=DateTimeField(null=True)pk=PrimaryKeyField()classMeta:database=db# create connection poolawaitdb.connect(loop)# countawaitUser.select().count()# async iteration on select queryasyncforuserinUser.select():print(user)# fetch all records as a list from a query in one passusers=awaitUser.select()# insertuser=awaitUser.create(username='kszucs')# modifyuser.username='krisztian'awaituser.save()# async iteration on blog set[b.titleasyncforbinuser.blog_set.order_by(Blog.title)]# close connection poolawaitdb.close()# see more in the testsManyToManyNote thatAioManyToManyFieldmust be used instead ofManyToMany.fromaiopeeweeimportAioManyToManyFieldclassUser(AioModel):username=CharField(unique=True)classMeta:database=dbclassNote(AioModel):text=TextField()users=AioManyToManyField(User)classMeta:database=dbNoteUserThrough=Note.users.get_through_model()asyncforuserinnote.users:# do something with the usersCurrently the only limitation I’m aware of immidiate setting of instance relation must be replaced with a method call:# original, which is not supportedcharlie.notes=[n2,n3]# use insteadawaitcharlie.notes.set([n2,n3])SerializingConverting to dict requires the asyncified version ofmodel_to_dictfromaiopeeweeimportmodel_to_dictserialized=awaitmodel_to_dict(user)
Package: aiopegelonline
aiopegelonlineAsynchronous library to retrieve data fromPEGELONLINE.:warning:this is in early development state:warning:breaking changes may occure at every timeRequirementsPython >= 3.9aiohttpInstallationpipinstallaiopegelonlineExamplesGet all available measurement stationsimportasyncioimportaiohttpfromaiopegelonlineimportPegelOnlineasyncdefmain():asyncwithaiohttp.ClientSession()assession:pegelonline=PegelOnline(session)stations=awaitpegelonline.async_get_all_stations()foruuid,stationinstations.items():print(f"uuid:{uuid}name:{station.name}")if__name__=="__main__":asyncio.run(main())Get current measurementimportasyncioimportaiohttpfromaiopegelonlineimportPegelOnlineasyncdefmain():asyncwithaiohttp.ClientSession()assession:pegelonline=PegelOnline(session)measurements=awaitpegelonline.async_get_station_measurements("70272185-b2b3-4178-96b8-43bea330dcae")forname,datainmeasurements.as_dict().items():ifdataisNone:print(f"{name}not provided by measurement station")else:print(f"{name}:{data.value}{data.uom}")if__name__=="__main__":asyncio.run(main())ReferencesPEGELONLINE api reference (German)
Package: aiopen
aiopenInstall:pip install aiopenAsync-openWhy not use aiofiles?Wanted more type annotationsaiofiles uses ye ole@coroutinedecorator -- aiopen uses python3.6+async/awaitaiopen is a callable module, so you can do:import aiopenasync with aiopen('afile.txt', 'w') as f: await f.write('some text!')async with aiopen('afile.txt', 'r') as f: content = await f.read()(Big shouts out to the aiofiles people, aiopen is entirely based off of aiofiles)Usage:Just import it! The module is also callable!importaiopenasyncwithaiopen('afile.txt','w')asf:awaitf.write('some text!')asyncwithaiopen('afile.txt','r')asf:content=awaitf.read()print(content)
Package: aiopenapi3
aiopenapi3A PythonOpenAPI 3 Specificationclient and validator for Python 3.This project is a fork ofDorthu/openapi3.Featuresimplements …Swagger 2.0OpenAPI 3.0.3OpenAPI 3.1.0description document parsing viapydanticrecursive schemas (A.a -> A)request body model creation via pydanticpydantic compatible "format"-type coercion (e.g. datetime.interval)additionalProperties (limited to string-to-any dictionaries without properties)response body & header parsing via pydanticblocking and nonblocking (asyncio) interface viahttpxSOCKS5 via httpx_sockstests with pytest &fastapiproviding access to methods and arguments via the sad smiley ._. interfacePlugin Interface/api to modify description documents/requests/responses to adapt to non compliant servicesYAML type coercion hints for not well formatted description documentsDescription Document dependency downloads (using the WebLoader)loggingexport AIOPENAPI3_LOGGING_HANDLERS=debugto get /tmp/aiopenapi3-debug.logDocumentationAPI DocumentationRunning TestsThis project includes a test suite, run viapytest.  To run the test suite,
ensure that you've installed the dependencies and then runpytestin the root
of this project.PYTHONPATH=.pytest--cov=./--cov-report=xml.
Package: ai-openchat
Download:https://pypi.org/project/ai-openchat/ChatExample #1 Chat:importasynciofromai_openchatimportModel,AsyncOpenAIasyncdefchat():openai_client=AsyncOpenAI(token='API-KEY')resp=awaitopenai_client.generate_message('Your request?',Model().chat())print(resp)if__name__=='__main__':asyncio.run(chat())Example #2 Movie to Emoji:importasynciofromai_openchatimportModel,AsyncOpenAIasyncdefmovie_to_emoji():openai_client=AsyncOpenAI(token='API-KEY')resp=awaitopenai_client.generate_message('Convert movie titles into emoji.\n\n''Back to the Future: 👨👴🚗🕒\n''Batman: 🤵🦇\n''Transformers: 🚗🤖\n''Star Wars:',Model().movie_to_emoji())print(resp)# ⭐️⚔️if__name__=='__main__':asyncio.run(movie_to_emoji())Example #3 Custom chatimportasynciofromai_openchatimportModel,AsyncOpenAIasyncdefimage_generator():custom_model=Model(model="code-davinci-002",temperature=0,max_tokens=100,top_p=1.0,frequency_penalty=0.5,presence_penalty=0.0,stop=["You:"])openai_client=AsyncOpenAI(token='API-KEY')resp=awaitopenai_client.generate_message('Hello!',custom_model)print(resp)if__name__=='__main__':asyncio.run(image_generator())ImageGenerate Imageimportasynciofromai_openchatimportImageModel,AsyncOpenAIasyncdefimage_generator():openai_client=AsyncOpenAI(token='API-KEY')resp=awaitopenai_client.generate_image('Captain America',ImageModel().image())print(resp)if__name__=='__main__':asyncio.run(image_generator())Generate custom Imageimportasynciofromai_openchatimportImageModel,AsyncOpenAIasyncdefimage_generator():custom_model=ImageModel(n=1,size="1024x1024")openai_client=AsyncOpenAI(token='API-KEY')resp=awaitopenai_client.generate_image('Captain America',custom_model)print(resp)if__name__=='__main__':asyncio.run(image_generator())This project is an attempt to make an asynchronous library for convenient OpenAI management.
You can check out the rest of the models here: https://beta.openai.com/examples.TechnologiesPython >= 3.8;aiohttp >= 3.8
Package: aiopes
Version 1 is not compatible with 0.1.0IndexInstallExampleDocumentationInstallPypi:pip3 install aiopesGit:pip3 install git+https://github.com/WardPearce/aiopes.gitExampleimportasyncioimportaiopesPES=aiopes.client(api_key="...")asyncdefexample():try:asyncfordata,serverinPES.servers():print(data.id)server_target=serverexceptaiopes.exceptions.InvalidAuthorization:print("Invalid API Key.")else:asyncforlocationinPES.locations():print(location.city)asyncforgroupinPES.mapgroups():print(group.name)formap_detailsingroup.maps():print(map_details.name)print(awaitPES.mods())print(awaitPES.plugins())print(awaitPES.tickrates())asyncforgamemodeinPES.gamemodes():print(gamemode.name)asyncforfileinPES.files():print(file.name)ifawaitPES.validate.settings(rcon="new_rcon"):print("Setting is valid")loop=asyncio.get_event_loop()loop.run_until_complete(example())
Package: aiopg8000
NOTE:aiopg8000 (this project) is a fork of pg8000 to support asyncio.pg8000 (https://github.com/mfenniak/pg8000) is a Pure-Python interface to the PostgreSQL database engine.  It is one of many PostgreSQL interfaces for the Python programming language. pg8000 is somewhat distinctive in that it is written entirely in Python and does not rely on any external libraries (such as a compiled python module, or PostgreSQL’s libpq library). pg8000 supports the standard Python DB-API version 2.0.pg8000’s name comes from the belief that it is probably about the 8000th PostgreSQL interface for Python.
Package: aiopg-listen
aiopg-listenThis library simplifies usage of listen/notify withaiopg:Handles lost of a connectionSimplifies processing notifications from multiple channelsSetups a timeout for receiving a notificationAllows to receive all notifications/only last notification depends onListenPolicy.importasyncioimportaiopgimportaiopg_listenasyncdefhandle_notifications(notification:aiopg_listen.NotificationOrTimeout)->None:print(f"{notification}has been received")listener=aiopg_listen.NotificationListener(aiopg_listen.connect_func())listener_task=asyncio.create_task(listener.run({"channel":handle_notifications},policy=aiopg_listen.ListenPolicy.LAST,notification_timeout=1))asyncwithaiopg.connect()asconnection,connection.cursor()ascursor:foriinrange(42):awaitcursor.execute(f"NOTIFY simple, '{i}'")v0.0.7 (2023-03-09)Fix python 3.11 compatibilityv0.0.6 (2022-11-02)Add python 3.11 supportv0.0.5 (2021-11-02)Support async-timeout 4.0+v0.0.4 (2021-09-08)Reexport explicitly#18v0.0.3 (2021-08-10)Allow suppressing timeout by aiopg_listen.NO_TIMEOUT#9Fix typing for python 3.8#11v0.0.2 (2021-07-25)Addaiopg_listen.connect_functo simplify initialization#5Rename consumer to listener#6Do not crash if handler fails#7v0.0.1 (2021-07-25)A first version
Package: aiophoenixdb
What isaiophoenixdbThis project is based on the Apache Software Foundation open source
project Apache-Phoenixdb project to transform the call implementation of
the Avatica protocol in the code from the original synchronous mode to
asynchronous call.Getting startedHow to installpipinstallaiophoenixdbHow to useQuery sampleimportaiophoenixdbimportasyncioPHOENIX_CONFIG={'url':'http://xxxxxxxxxx','user':'xxx','password':'xxx','database':'xxx'}asyncdefquery_test():conn=awaitaiophoenixdb.connect(**PHOENIX_CONFIG)asyncwithconn:asyncwithconn.cursor()asps:# need awaitawaitps.execute("SELECT * FROM xxx WHERE id = ?",parameters=("1",))res=awaitps.fetchone()print(res)# Throw the query coroutine into the event loop to runasyncio.get_event_loop().run_until_complete(query_test())Query with DictCursorimportaiophoenixdbimportasynciofromaiophoenixdb.cursorsimportDictCursorPHOENIX_CONFIG={'url':'http://xxxxxxxxxx','user':'xxx','password':'xxx','database':'xxx'}asyncdefquery_test():conn=awaitaiophoenixdb.connect(**PHOENIX_CONFIG)asyncwithconn:asyncwithconn.cursor(cursor_factory=DictCursor)asps:# need awaitawaitps.execute("SELECT * FROM xxx WHERE id = ?",parameters=("1",))res=awaitps.fetchone()print(res)# Throw the query coroutine into the event loop to runasyncio.get_event_loop().run_until_complete(query_test())
Package: aiophotoprism
aiophotoprismAsynchronous Python client for thePhotoprismWarning:Photoprism APIis not stable yet,
use on your own riskNOTE: The package is in active development.Not all features of the API are implemented.Installationpip install aiophotoprismUsageimportasynciofromaiophotoprismimportPhotoprismasyncdefmain():asyncwithPhotoprism("username","password")asclient:# interact with the client herepassif__name__=="__main__":asyncio.run(main())PhotoprismPhotoprism is the entrypoint class, it acts as an async context manager and provides access to API endpoints.Initializationdef__init__(self,username,# your usernamepassword,# your passwordurl="http://127.0.0.1:2342",# A base URL of the server, https://photoprism.example.com:443/something is also possibletimeout=DEFAULT_TIMEOUT,# Timeout in secondsverify_ssl=True,# Perform SSL verificationloop=None,# event loopsession=None# client session,)...PhotosReturns list of photos.awaitclient.photos(count=50)ConfigReturns Photoprism instance config.awaitclient.config()IndexForces the Photoprism instance to index photos. Complete scan is not supported.awaitclient.index()LicenseMIT LicenseCopyright (c) 2021 Gleb SinyavskiyPermission 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.
Package: aio-pika-msgpack-rpc
aio-pika-msgpack-rpcRequires Python >= 3.7.Installationpip install aio-pika-msgpack-rpcExampleimportasyncioimportaio_pikafromaio_pika_msgpack_rpcimportMSGPackRPCasyncdefmain():client=awaitaio_pika.connect_robust('amqp://guest:guest@localhost:5672/')channel=awaitclient.channel()rpc=awaitMSGPackRPC.create(channel)# rpc callsresult=awaitrpc.call('method_name',kwargs={'test':'data'})asyncio.get_event_loop().run_until_complete(main())