Skip to content

Instantly share code, notes, and snippets.

View strangerism's full-sized avatar

Nathan Never strangerism

View GitHub Profile
@strangerism
strangerism / resque.py
Created May 22, 2018 09:33 — forked from defunkt/resque.py
Resque client in Python
from redis import Redis
import simplejson
class Resque(object):
"""Dirt simple Resque client in Python. Can be used to create jobs."""
redis_server = 'localhost:6379'
def __init__(self):
host, port = self.redis_server.split(':')
self.redis = Redis(host=host, port=int(port))