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
- [x] DELJOB
- [x] SHOW
- [x] DEQUEUE
- [x] ENQUEUE
## TODO
- [ ] Make connection pool support multiple nodes as specified [here][clients]
- [ ] Write tests
- [ ] Write benchmarks
- [ ] QSTAT
- [ ] SCAN
## License
This code is released under the ASL2.0, see the `LICENSE` file for details.
## 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
- [x] DELJOB
- [x] SHOW
- [x] DEQUEUE
- [x] ENQUEUE
## TODO
- [ ] Make connection pool support multiple nodes as specified [here][clients]
- [ ] Write tests
- [ ] Write benchmarks
- [ ] QSTAT
- [ ] SCAN
## License
This code is released under the ASL2.0, see the `LICENSE` file for details.
## 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.2.tar.gz
(12.5 kB
view hashes)