Skip to main content

Sqlite based queue

Project description

PySqliteQueue
============
.. image:: https://travis-ci.org/mrk-andreev/PySqliteQueue.svg?branch=master
:target: https://travis-ci.org/mrk-andreev/PySqliteQueue

.. image:: https://api.codeclimate.com/v1/badges/6193af027c24e08e7422/maintainability
:target: https://codeclimate.com/github/mrk-andreev/PySqliteQueue/maintainability
:alt: Maintainability


.. image:: https://badge.fury.io/py/PySqliteQueue.svg
:target: https://badge.fury.io/py/PySqliteQueue

.. image:: https://img.shields.io/pypi/l/PySqliteQueue.svg

User installation
~~~~~~~~~~~~

pip install -U PySqliteQueue

Example
~~~~~~~~~~~~


from pysqlitequeue import SqliteQueue

q = SqliteQueue(database=':memory:')

q.put({'key': 'value'})

q.peek() # Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

q.poll() # Retrieves and removes the head of this queue, or returns null if this queue is empty.

q.size()
q.empty()

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

PySqliteQueue-1.0.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

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