shadow-drive-py

Crates.ioshadow-drive-py
lib.rsshadow-drive-py
version0.6.2
sourcesrc
created_at2022-12-20 02:55:40.66741
updated_at2023-03-15 20:02:25.36365
descriptionThe Python SDK for GenesysGo's Shadow Drive
homepage
repositoryhttps://github.com/GenesysGo/shadow-drive-rust
max_upload_size
id741914
size33,066
Tracy Adams (tracy-codes)

documentation

README

The Python SDK for Shadow Drive

By: GenesysGo

Getting Started

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)

About this Repo

This package uses PyO3 to build a wrapper around the official Shadow Drive Rust SDK. For more information, see the Rust SDK documentation.

Commit count: 210

cargo fmt