Crates.io | shadow-drive-py |
lib.rs | shadow-drive-py |
version | 0.6.2 |
source | src |
created_at | 2022-12-20 02:55:40.66741 |
updated_at | 2023-03-15 20:02:25.36365 |
description | The Python SDK for GenesysGo's Shadow Drive |
homepage | |
repository | https://github.com/GenesysGo/shadow-drive-rust |
max_upload_size | |
id | 741914 |
size | 33,066 |
Check out the examples/
directory for a demonstration of the functionality.
from shadow_drive import ShadowDriveClient
# Initialize client
client = ShadowDriveClient("test.json")
# Create account
size = 2 ** 20
account, tx = client.create_account("test", size, use_account=True)
# Upload files
files = ["./files/alpha.txt", "./files/not_alpha.txt"]
urls = client.upload_files(files)
# Delete files
client.delete_files(urls)
# Delete account
client.delete_account(account)
This package uses PyO3 to build a wrapper around the official Shadow Drive Rust SDK. For more information, see the Rust SDK documentation.