{"library":"persist-queue","title":"persist-queue","description":"A thread-safe, disk-based persistent queue for Python with support for file, SQLite, MySQL, and auto-recovery. Current version 1.1.0, updated with priority queues and sync API. Release cadence: occasional.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install persist-queue"],"cli":null},"imports":["from persistqueue import Queue","from persistqueue.sqlite import SQLiteQueue","from persistqueue.mysql import MySQLQueue"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom persistqueue import Queue\n\n# File-based queue\nq = Queue('myqueue')\nq.put('foo')\nq.put('bar')\nprint(q.get())  # foo\nprint(q.get())  # bar\n\n# SQLite-based queue\nfrom persistqueue.sqlite import SQLiteQueue\nsqlq = SQLiteQueue('myqueue.db', auto_commit=True)\nsqlq.put({'task': 'example'})\nprint(sqlq.get())  # {'task': 'example'}\n\n# To ensure auth check (not needed for persist-queue):\ndb_path = os.environ.get('PERSIST_QUEUE_PATH', 'default.db')\nprint('Queue path:', db_path)","lang":"python","description":"Basic usage of file and SQLite persistent queues.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}