Python Disque client (very very alpha, as is Disque itself)
Project description
# Disque-py
A [disque](https://github.com/antirez/disque) Python client.
Under the hood, this used redis-py's HiRedis implementation and switches out
Redis commands with the disque ones.
## Usage
```
from disq import DisqueAlpha
c = DisqueAlpha()
c.addjob('queuename', 'body') # takes all ADDJOB arguments
# b'DI... job id ...SQ'
c.getjob('queuename')
# [[b'queue', b'DI3971f14a850d9e5b3ca5c881e3dd1ba2a34277b505a0SQ', b'body']]
```
## Status
- [x] Server commands (slowlog, clients, etc)
- [x] ADDJOB
- [x] GETJOB
- [x] ACKJOB
- [x] FASTACK
- [x] QLEN
- [x] QPEEK
## TODO
- [ ] Make connection pool support multiple nodes as specified [here][clients]
- [ ] Write tests
- [ ] Write benchmarks
- [ ] QSTAT
- [ ] DELJOB
- [ ] SHOW
- [ ] SCAN
- [ ] DEQUEUE
- [ ] ENQUEUE
## Thanks
Enormous thanks to Salvatore Sanfilippo (antirez) for writing
[disque][https://github.com/antirez/disque] and
[Andy McCurdy][https://github.com/andymccurdy], author of the
[redis-py][https://github.com/andymccurdy/redis-py] module.
[clients]: https://github.com/antirez/disque#client-libraries
A [disque](https://github.com/antirez/disque) Python client.
Under the hood, this used redis-py's HiRedis implementation and switches out
Redis commands with the disque ones.
## Usage
```
from disq import DisqueAlpha
c = DisqueAlpha()
c.addjob('queuename', 'body') # takes all ADDJOB arguments
# b'DI... job id ...SQ'
c.getjob('queuename')
# [[b'queue', b'DI3971f14a850d9e5b3ca5c881e3dd1ba2a34277b505a0SQ', b'body']]
```
## Status
- [x] Server commands (slowlog, clients, etc)
- [x] ADDJOB
- [x] GETJOB
- [x] ACKJOB
- [x] FASTACK
- [x] QLEN
- [x] QPEEK
## TODO
- [ ] Make connection pool support multiple nodes as specified [here][clients]
- [ ] Write tests
- [ ] Write benchmarks
- [ ] QSTAT
- [ ] DELJOB
- [ ] SHOW
- [ ] SCAN
- [ ] DEQUEUE
- [ ] ENQUEUE
## Thanks
Enormous thanks to Salvatore Sanfilippo (antirez) for writing
[disque][https://github.com/antirez/disque] and
[Andy McCurdy][https://github.com/andymccurdy], author of the
[redis-py][https://github.com/andymccurdy/redis-py] module.
[clients]: https://github.com/antirez/disque#client-libraries
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 Distribution
disq-0.0.1.tar.gz
(9.2 kB
view hashes)