Created
December 20, 2010 18:12
-
-
Save tomjnixon/748738 to your computer and use it in GitHub Desktop.
A SHET client template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from shet.client import ShetClient | |
# Subclass ShetClient. | |
class MyClient(ShetClient): | |
# All nodes created by this client will be relative to this directory, | |
# unless they begin with a '/'. | |
self.root = "/test/" | |
def __init__(self, dir): | |
# Make sure you initialise the shet client in your constructor. | |
ShetClient.__init__(self) | |
# Instantiate and run the client. | |
if __name__ == "__main__": | |
MyClient().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment