Skip to main content

Distributed streaming messaging system

Project description

PyPI PyPI - Python Version PyPI - License

beanstalkm

beanstalkm is a client library for beanstalkd, a fast, distributed, in‑memory work queue service.

beanstalkm supports Python 2.7 and Python 3.6+.

Usage

Here is a short example, to illustrate the flavor of beanstalkm:

from beanstalkm import Client, DEFAULT_TUBE

beanstalk = Client()
message = beanstalk({"say": "hey!"})
message.send()

beanstalk.queue.watch(DEFAULT_TUBE)
message = beanstalk.reserve(timeout=0, drop=False)
print(message.body)
message.delete()

or:

import beanstalkm

beanstalk = beanstalkm.Client(host="127.0.0.1", port=11300)
message = beanstalk.put({"say": "hey!"})

beanstalk.queue.watch(beanstalkm.DEFAULT_TUBE)
message = beanstalk.reserve(timeout=0, drop=True)
print(message.body)

For more information, see the tutorial, which explains most everything.

License

Copyright (C) 2017 MCode GmbH, Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beanstalkm-1.0.0.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

beanstalkm-1.0.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file beanstalkm-1.0.0.tar.gz.

File metadata

  • Download URL: beanstalkm-1.0.0.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for beanstalkm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d83d70157fd5d40f4899c13497c6c82017aa75eb7da8c01b453f2374b5750eae
MD5 7ef86d9e6d3b10bfc5edd4948e290b62
BLAKE2b-256 10bf50db8ff27c398802027b8c81e690d18e21f83de4bb78019983b80588d7fd

See more details on using hashes here.

File details

Details for the file beanstalkm-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: beanstalkm-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for beanstalkm-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d7a73a264957bc97f69d381610c60a5aef79f4c6c746e4d1ae72fd943fc260e
MD5 8bdb81823a0bebdb57eeb8161e39a75d
BLAKE2b-256 8f96f941bc737c40d211ca142d6ca5c39c874aca3b97b834efd14a339f55729a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page