Is there a pure Python implementation of a Redis layout that doesn't use Ctypes, like fakeredis ?
This is mainly because I am developing Python applications on Android (if you look at my question on the Android Stack Exchange, you will understand why) and you need a way to test / emulate the Redis function without actually having Redis.
Later, I just adapted to the real bindings when done, and upload it to the server and / or Github account, where I will repeat another test for security only.
Performance, persistence and all the goodies of Redis don't really matter, as I just want to be able to do ex.
mockredis.do('SET', 'test:1', 'hello world')
and the layout will simply save the SET to memory or to your hard drive so you can get it later
mockredis.do('GET', 'test:1')
but no more than that.
Otherwise, a wrapper around pure Python db (like Sqlite), which acts like a "fake Redis", would be fine too, although I didn't find it. Something like nosqlite , but with Redis commands instead of database data.
Finally, a short question:
Is there a clean Python implementation (without Ctypes) of a Redis layout, a wrapper around pure Python db acting like Redis, or, alternatively, a way to wrap functionality yourself on top of Sqlite / Shelve / TinyDB / Buzhug ...