Use requests library for the initial WAPI connection.
parent
490641cab6
commit
b58bdd5b07
@ -1,10 +1,11 @@
|
||||
import pytahoe
|
||||
|
||||
fs = pytahoe.Filesystem("http://localhost:3456/")
|
||||
print fs
|
||||
#tdir = fs.Directory("URI:DIR2:jjw572jvowd473fo2n7rw6uiai:hloglrouhwgjpubcpyq5nrb4ezyijdfiboe3hquadgzjrmkdikxa")
|
||||
#print tdir
|
||||
#for name, item in tdir.children.iteritems():
|
||||
# print "%s: %s" % (name, item)
|
||||
|
||||
#print fs.create_directory().mount("test")
|
||||
print fs.upload("test.py")
|
||||
#print fs.upload("test.py")
|
||||
|
Loading…
Reference in New Issue