Update Python code sample (#75)
This commit is contained in:
parent
e22e3c8aa1
commit
59c46bd6fc
|
@ -1,11 +1,11 @@
|
||||||
export const python = `from siaskynet import Skynet
|
export const python = `from siaskynet import Skynet
|
||||||
|
|
||||||
# upload
|
# upload
|
||||||
skylink = Skynet.UploadFile("./src.jpg")
|
skylink = Skynet.upload_file("./src.jpg")
|
||||||
print("Upload successful, skylink: " + skylink)
|
print("Upload successful, skylink: " + skylink)
|
||||||
|
|
||||||
# download
|
# download
|
||||||
Skynet.DownloadFile("./dst.jpg", skylink)
|
Skynet.download_file("./dst.jpg", skylink)
|
||||||
print("Download successful")`;
|
print("Download successful")`;
|
||||||
|
|
||||||
export const curl = `# upload
|
export const curl = `# upload
|
||||||
|
|
Reference in New Issue