Merge pull request #364 from Kcchouette/patch-1

Fix python SDK code example
This commit is contained in:
Marcin S 2020-09-03 16:14:51 +02:00 committed by GitHub
commit 3c6bd7281e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
export const python = `from siaskynet import Skynet
export const python = `import siaskynet
# upload
skylink = Skynet.upload_file("./src.jpg")
skylink = siaskynet.upload_file("./src.jpg")
print("Upload successful, skylink: " + skylink)
# download
Skynet.download_file("./dst.jpg", skylink)
siaskynet.download_file("./dst.jpg", skylink)
print("Download successful")`;
export const curl = `# upload