]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tahoe-get.py: the first, most primitive command-line client
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 10 Jul 2007 01:19:53 +0000 (18:19 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 10 Jul 2007 01:19:53 +0000 (18:19 -0700)
src/allmydata/scripts/tahoe-get.py [new file with mode: 0644]

diff --git a/src/allmydata/scripts/tahoe-get.py b/src/allmydata/scripts/tahoe-get.py
new file mode 100644 (file)
index 0000000..4a034d5
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+import sys, urllib
+
+def GET(url):
+    f = urllib.urlopen(url)
+    sys.stdout.write(f.read())
+
+vfname = sys.argv[1]
+
+base = "http://tahoebs1.allmydata.com:8011/"
+base += "vdrive/global/"
+url = base + vfname
+
+GET(url)