aiostalk-1.1
توضیحات
A Python 3 asyncio client for the beanstalkd work queue
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiostalk-1.1 |
| نام | aiostalk |
| نسخه کتابخانه | 1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Petri Savolainen |
| ایمیل نویسنده | petri@koodaamo.fi |
| آدرس صفحه اصلی | https://github.com/koodaamo/aiostalk |
| آدرس اینترنتی | https://pypi.org/project/aiostalk/ |
| مجوز | MIT |
aiostalk
==========
aiostalk is a small and shameless Python client library for communicating
with the `beanstalkd`_ work queue.
It is based on (and requires) another library called `greenstalk`_ by Justin Mayhew.
Getting Started
---------------
Presuming beanstalkd running on localhost at standard port.
.. code-block:: pycon
>>> import asyncio
>>> import aiostalk
>>>
>>> async def main():
... client = aiostalk.Client(('127.0.0.1', 11300))
... await client.connect()
... job = await client.put('hello')
... print(job.id)
... job = await client.reserve()
... print(job.id)
... print(job.body)
... await client.delete(job)
... await client.close()
>>>
>>> asyncio.run(main())
1
1
hello
Using the Client as an asyncio context manager is also supported.
Documentation
-------------
Please see greenstalk docs at `Read the Docs`_.
.. _`beanstalkd`: https://beanstalkd.github.io/
.. _`greenstalk`: https://github.com/justinmayhew/greenstalk
.. _`protocol`: https://raw.githubusercontent.com/beanstalkd/beanstalkd/master/doc/protocol.txt
.. _`Read the Docs`: https://greenstalk.readthedocs.io/
نیازمندی
| مقدار | نام |
|---|---|
| - | greenstalk |
نحوه نصب
نصب پکیج whl aiostalk-1.1:
pip install aiostalk-1.1.whl
نصب پکیج tar.gz aiostalk-1.1:
pip install aiostalk-1.1.tar.gz