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.3.tar.gz (2.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: PySqliteQueue-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9b920b4254c5fced94fa11e8e65f60a9fee64d840215948ac5c9618bbe5e1e66
MD5 741c14e752267b2179646c6f3644d9c1
BLAKE2b-256 e8745a83666f420884051f42fdc486906966c1500fdd6c1617f45fa61e351265

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