/usr/lib/python3/dist-packages/queuelib-1.1.1.egg-info is in python3-queuelib 1.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | Metadata-Version: 1.1
Name: queuelib
Version: 1.1.1
Summary: Collection of persistent (disk-based) queues
Home-page: http://github.com/scrapy/queuelib
Author: Scrapy project
Author-email: info@scrapy.org
License: BSD
Description: ========
queuelib
========
Queuelib is a collection of persistent (disk-based) queues for Python.
Queuelib goals are speed and simplicity. It was originally part of the `Scrapy
framework`_ and stripped out on its own library.
Requirements
============
* Python 2.7 or Python 3.3
* no external library requirements
Installation
Installation
============
You can install Queuelib either via the Python Package Index (PyPI) or from
source.
To install using pip::
$ pip install queuelib
To install using easy_install::
$ easy_install queuelib
If you have downloaded a source tarball you can install it by running the
following (as root)::
# python setup.py install
FIFO/LIFO disk queues
=====================
Queuelib provides FIFO and LIFO queue implementations.
Here is an example usage of the FIFO queue::
>>> from queuelib import FifoDiskQueue
>>> q = FifoDiskQueue("queuefile")
>>> q.push('a')
>>> q.push('b')
>>> q.push('c')
>>> q.pop()
'c'
>>> q.close()
>>> q = FifoDiskQueue("queuefile")
>>> q.pop()
'b'
>>> q.pop()
'a'
>>> q.pop()
>>>
The LIFO queue is identical (API-wise), but importing ``LifoDiskQueue``
instead.
PriorityQueue
=============
A discrete-priority queue implemented by combining multiple FIFO/LIFO queues
(one per priority).
First, select the type of QUEUE (FIFO or LIFO)::
>>> from queuelib import FifoDiskQueue
>>> q = FifoDiskQueue("somedir")
Then instantiate the Priority Queue with it::
>>> from queuelib import PriorityQueue
>>> pq = PriorityQueue(q)
And use it::
>>> pq.push('a', 3)
>>> pq.push('b', 1)
>>> pq.push('c', 2)
>>> pq.push('d', 2)
>>> pq.pop()
'b'
>>> pq.pop()
'c'
>>> pq.pop()
'd'
>>> pq.pop()
'a'
Mailing list
============
Use the `scrapy-users`_ mailing list for questions about Queuelib.
Bug tracker
===========
If you have any suggestions, bug reports or annoyances please report them to
our issue tracker at: http://github.com/scrapy/queuelib/issues/
Contributing
============
Development of Queuelib happens at GitHub: http://github.com/scrapy/queuelib
You are highly encouraged to participate in the development. If you don't like
GitHub (for some reason) you're welcome to send regular patches.
All changes require tests to be merged.
Tests
=====
Tests are located in `queuelib/tests` directory. They can be run using
`nosetests`_ with the following command::
nosetests
The output should be something like the following::
$ nosetests
.............................................................................
----------------------------------------------------------------------
Ran 77 tests in 0.145s
OK
License
=======
This software is licensed under the BSD License. See the LICENSE file in the
top distribution directory for the full license text.
Versioning
==========
This software follows `Semantic Versioning`_
.. _Scrapy framework: http://scrapy.org
.. _scrapy-users: http://groups.google.com/group/scrapy-users
.. _Semantic Versioning: http://semver.org/
.. _nosetests: https://nose.readthedocs.org/en/latest/
Platform: Any
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
|