Namespace wrapper on TokyoTyrant , fast and simple KVS . Handle with data like a JSON or native dict object via pytyrant.
mizchi/PyTTScheme
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#Sample from pyttscheme import TScheme #make scheme twitter_updates = {"user":{"screen_name":"", "user_id":""}, "text":"", "post_id":"" } # make wrapper by scheme tsc = TScheme(scheme=twitter_updates,header = "twitter_timeline") # shallow copy item = twitter_updates.copy() # make a record item = {"user":{"screen-name","mizchi" "user-id":"1231454323"}, "text":"ほゲェ", "post-id":"41314314155" } #save tsc.put(item) #search tsc.get(where="text",number=0) #=> [ {"text":"ほゲェ"} ]
About
Namespace wrapper on TokyoTyrant , fast and simple KVS . Handle with data like a JSON or native dict object via pytyrant.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published