Skip to content

jarodl/rbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbase

A redis base class.

Usage

>>> class MyTodo(rbase.Base):
>>> 	def __init__(description):
>>> 		self.description = description
>>> todo = MyTodo("Go to the store")
>>> todo.save()
<class 'rbase.base.Base'>(Base:1)

>>> todo = MyTodo.get(1)
>>> todo.description
"Go to the store"

>>> todo_two = MyTodo("Pick up milk")
>>> todo_two.save()
<class 'rbase.base.Base'>(Base:2)

>>> todos = MyTodo.all()
[<class 'rbase.base.Base'>(Base:1), <class 'rbase.base.Base'>(Base:2)]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages