Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for PySqliteQueue, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size PySqliteQueue-1.0.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page