Skip to content

Instantly share code, notes, and snippets.

@tomjnixon
Created December 20, 2010 18:12
Show Gist options
  • Save tomjnixon/748738 to your computer and use it in GitHub Desktop.
Save tomjnixon/748738 to your computer and use it in GitHub Desktop.
A SHET client template.
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