Update Python code sample (#75)

This commit is contained in:
Marcin Jachymiak 2020-03-10 06:56:42 -04:00 committed by GitHub
parent e22e3c8aa1
commit 59c46bd6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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