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 details)

Uploaded Source

File details

Details for the file PySqliteQueue-1.0.4.tar.gz.

File metadata

  • Download URL: PySqliteQueue-1.0.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for PySqliteQueue-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d468c88dfeea1d1ea8d4c674004b9513b509dacf6448e58ef1b9e69544aec3b1
MD5 96488f1d9b855d8543e05eee2178009b
BLAKE2b-256 b9e05623b42822853f635c9df3b78afcc5716927dd3b0f40e8d8495b6b976261

See more details on using hashes here.

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