redis-completion

软件截图:
redis-completion
软件详细信息:
版本: 0.4.0
上传日期: 20 Feb 15
许可: 免费
人气: 2

Rating: nan/5 (Total Votes: 0)

Redis的补全是包,基于提供自动完成与Redis的:
- http://antirez.com/post/autocomplete-with-redis.html
- http://stackoverflow.com/questions/1958005/redis-autocomplete/1966188
用法
如果你只是想存储非常简单的事情,比如字符串:
发动机= RedisEngine()
标题= ['Python编程“,”编程C','单元测试蟒蛇',
 “测试软件”,“软件设计”]
地图(engine.store,职称)
>>> engine.search(“PYT”)
[“Python编程”,“单元测试巨蟒']
>>> engine.search(“测试”)
['测试软件“,”单元测试巨蟒']
如果你想存储更多的复杂的数据,比如博客条目:
Entry.create(标题=“关于Python的条目”,公布=真)
Entry.create(标题='所有关于Redis的',公布=真)
Entry.create(标题='使用Redis的使用python“,公布= FALSE)
在Entry.select()项:
  engine.store_json(entry.id,entry.title,{
 '发表':entry.published,
 '标题':entry.title,
 “网址”:entry.get_absolute_url()
 })
>>> engine.search_json('pytho“)
[{“发表”:是的,'标题':'关于Python中的条目“,”网址“:”/博客/ 1 /“},
  {'发表':假,'标题':'使用Redis的使用python“,”网址“:”/博客/ 3 /'}]
#刚刚发布的条目,请
>>> engine.search_json(“redis的',过滤器= [拉姆达I:我['发表'] ==真])
[{u'published':是的,u'title“:u'all约redis的”,u'url':U'/博客/ 2 /'}]
安装
安装有点子:
PIP安装Redis的补全
通过混帐安装:
混帐克隆https://github.com/coleifer/redis-completion.git
CD Redis的补全
蟒蛇setup.py安装

要求

  • 在Python中

显影剂的其他软件 Charles Leifer

django-completion
django-completion

11 May 15

peewee
peewee

14 Apr 15

peewee
peewee

20 Jul 15

意见 redis-completion

评论没有发现
添加评论
打开图片!