A simple queue lib base on sqlite3
Project description
# A simple queue lib base on sqlite3
----------
Feature:
- Local disk queue base on sqlite3
- Simple and easy to use
Usage:
```python
from sqlqueue import Queue
queue = Queue('myqueue')
print queue.get_nowait()
>>> None
queue.put('sqlqueue')
queue.put(1)
queue.put({'foo':1, 'bar':2})
print queue.get_nowait()
>>> 'sqlqueue'
print queue.get_nowait()
>>> 1
print queue.get_nowait()
>>> {'bar': 2, 'foo': 1}
```
This is a copy from [http://flask.pocoo.org/snippets/88/](http://flask.pocoo.org/snippets/88/) with little alternation
----------
Feature:
- Local disk queue base on sqlite3
- Simple and easy to use
Usage:
```python
from sqlqueue import Queue
queue = Queue('myqueue')
print queue.get_nowait()
>>> None
queue.put('sqlqueue')
queue.put(1)
queue.put({'foo':1, 'bar':2})
print queue.get_nowait()
>>> 'sqlqueue'
print queue.get_nowait()
>>> 1
print queue.get_nowait()
>>> {'bar': 2, 'foo': 1}
```
This is a copy from [http://flask.pocoo.org/snippets/88/](http://flask.pocoo.org/snippets/88/) with little alternation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file sqlqueue-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: sqlqueue-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2fa52e259dd4d4fa5bc093febe3a2f6c454c48a734a4c49811cd676c9ca6570 |
|
MD5 | 21a96279bb652ac9c07010e7bfde55f1 |
|
BLAKE2b-256 | 7633e5d88cff70046b7639bd5add5f366ffe96c436dbb66e8b5f3e99880e4750 |