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

peewee
peewee

20 Jul 15

djutils
djutils

11 May 15

意見 redis-completion

評論沒有發現
添加評論
打開圖片!