Skip to content
Browse files

Renamed project from rutabaga to brukva

  • Loading branch information...
1 parent 1bc9163 commit 0cbef573a4db65976742b858931fbab467c327c3 @kmerenkov kmerenkov committed May 18, 2010
View
8 README.md
@@ -1,4 +1,4 @@
-rutabaga
+brükva
========
Asynchronous [Redis](http://redis-db.com/) client that works within [Tornado](http://tornadoweb.org/) IO loop.
@@ -7,8 +7,8 @@ Asynchronous [Redis](http://redis-db.com/) client that works within [Tornado](ht
Usage
-----
- >>> import rutabaga
- >>> c = rutabaga.Client()
+ >>> import brukva
+ >>> c = brukva.Client()
>>> c.connect()
>>> def on_result(result):
(error, data) = result
@@ -24,7 +24,7 @@ Usage
Credits
-------
-rutabaga is developed and maintained by [Konstantin Merenkov](mailto:kmerenkov@gmail.com)
+brukva is developed and maintained by [Konstantin Merenkov](mailto:kmerenkov@gmail.com)
* Inspiration: [redis-py](http://github.com/andymccurdy/redis-py)
* Third-party software: [adisp](https://code.launchpad.net/adisp)
View
4 brukva/__init__.py
@@ -0,0 +1,4 @@
+from brukva.client import Connection, Client
+from brukva.exceptions import RedisError, ConnectionError, ResponseError, InvalidResponse
+from brukva import adisp
+
View
0 rutabaga/adisp.py → brukva/adisp.py
File renamed without changes.
View
4 rutabaga/client.py → brukva/client.py
@@ -5,7 +5,7 @@
import adisp
from functools import partial
from collections import namedtuple
-from rutabaga.exceptions import RedisError, ConnectionError, ResponseError, InvalidResponse
+from brukva.exceptions import RedisError, ConnectionError, ResponseError, InvalidResponse
Message = namedtuple('Message', 'kind channel body')
@@ -99,7 +99,7 @@ def __init__(self, host='localhost', port=6379, io_loop=None):
self.subscribed = False
def __repr__(self):
- return 'Rutabaga client (host=%s, port=%s)' % (self.connection.host, self.connection.port)
+ return 'Brukva client (host=%s, port=%s)' % (self.connection.host, self.connection.port)
def connect(self):
self.connection.connect()
View
0 rutabaga/exceptions.py → brukva/exceptions.py
File renamed without changes.
View
12 demos/bench/app.py
@@ -1,4 +1,4 @@
-import rutabaga
+import brukva
import tornado.httpserver
import tornado.web
import tornado.websocket
@@ -10,20 +10,20 @@
r = redis.Redis(db=9)
-async = partial(rutabaga.adisp.async, cbname='callbacks')
+async = partial(brukva.adisp.async, cbname='callbacks')
-c = rutabaga.Client()
+c = brukva.Client()
c.connect()
c.select(9)
c.set('foo', 'bar')
c.set('foo2', 'bar2')
-class RutabagaHandler(tornado.web.RequestHandler):
+class BrukvaHandler(tornado.web.RequestHandler):
@tornado.web.asynchronous
- @rutabaga.adisp.process
+ @brukva.adisp.process
def get(self):
((_, foo), (_, foo2)) = yield [ async(c.get)('foo'), async(c.get)('foo2') ]
self.set_header('Content-Type', 'text/plain')
@@ -50,7 +50,7 @@ def get(self):
application = tornado.web.Application([
- (r'/rutabaga', RutabagaHandler),
+ (r'/brukva', BrukvaHandler),
(r'/redis', RedisHandler),
(r'/hello', HelloHandler),
])
View
6 demos/simple/app.py
@@ -1,9 +1,9 @@
-import rutabaga
+import brukva
import tornado.httpserver
import tornado.web
import tornado.websocket
import tornado.ioloop
-from rutabaga import adisp
+from brukva import adisp
import logging
from functools import partial
@@ -13,7 +13,7 @@
log = logging.getLogger('app')
-c = rutabaga.Client()
+c = brukva.Client()
c.connect()
View
8 demos/websockets/app.py
@@ -1,19 +1,19 @@
-# Demo application for rutabaga
+# Demo application for brukva
# In order to use:
# 1. $ python app.py
# 2. Open in your browser that supports websockets: http://localhost:8888/
# You should see text that says "Connected..."
# 3. $ curl http://localhost:8888/msg -d 'message=Hello!'
# You should see 'Hello!' in your browser
-import rutabaga
+import brukva
import tornado.httpserver
import tornado.web
import tornado.websocket
import tornado.ioloop
-c = rutabaga.Client()
+c = brukva.Client()
c.connect()
@@ -33,7 +33,7 @@ def post(self):
class MessagesCatcher(tornado.websocket.WebSocketHandler):
def __init__(self, *args, **kwargs):
super(MessagesCatcher, self).__init__(*args, **kwargs)
- self.client = rutabaga.Client()
+ self.client = brukva.Client()
self.client.connect()
self.client.subscribe('test_channel')
View
4 rutabaga/__init__.py
@@ -1,4 +0,0 @@
-from rutabaga.client import Connection, Client
-from rutabaga.exceptions import RedisError, ConnectionError, ResponseError, InvalidResponse
-from rutabaga import adisp
-
View
4 tests/server_commands.py
@@ -1,4 +1,4 @@
-import rutabaga
+import brukva
import unittest
from tornado.ioloop import IOLoop
@@ -19,7 +19,7 @@ def __init__(self, *args, **kwargs):
def setUp(self):
self.loop = IOLoop()
CustomAssertionError.io_loop = self.loop
- self.client = rutabaga.Client(io_loop=self.loop)
+ self.client = brukva.Client(io_loop=self.loop)
self.client.connection.connect()
self.client.select(9)
self.client.flushdb()

0 comments on commit 0cbef57

Please sign in to comment.
Something went wrong with that request. Please try again.