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.
>>> import asyncio
>>> import aiostalk
>>>
>>> async def main():
... client = aiostalk.Client(('127.0.0.1', 11300))
... await client.connect()
... job_id = 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.
Metadata
Release files for aiostalk 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiostalk-1.3.1.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiostalk-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / aiostalk-1.3.1.tar.gz
| Download URL | aiostalk-1.3.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2ce935e04051671489b6e5bec88188e5ebad3450dedb9f13a47356c458fa03d
|
|
BLAKE2b-256 checksum How to use checksums |
1008a48a6921410e640113532d67640739b30a2043a1301372b2803965d49839
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / aiostalk-1.3.1-py3-none-any.whl
| Download URL | aiostalk-1.3.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8286e87aabd9f5df13a486280ea65bed711b75a3281051f2bca6bf8bee48c89
|
|
BLAKE2b-256 checksum How to use checksums |
7a123b0f57e869b1912c9288fa5025a80220be6987c5e2abecf45021491346d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|