Fix python SDK code example
This commit is contained in:
parent
93341a3d4d
commit
19cc8a1402
|
@ -1,11 +1,11 @@
|
||||||
export const python = `from siaskynet import Skynet
|
export const python = `import siaskynet
|
||||||
|
|
||||||
# upload
|
# upload
|
||||||
skylink = Skynet.upload_file("./src.jpg")
|
skylink = siaskynet.upload_file("./src.jpg")
|
||||||
print("Upload successful, skylink: " + skylink)
|
print("Upload successful, skylink: " + skylink)
|
||||||
|
|
||||||
# download
|
# download
|
||||||
Skynet.download_file("./dst.jpg", skylink)
|
siaskynet.download_file("./dst.jpg", skylink)
|
||||||
print("Download successful")`;
|
print("Download successful")`;
|
||||||
|
|
||||||
export const curl = `# upload
|
export const curl = `# upload
|
||||||
|
|
Reference in New Issue