A library for interacting with Object Storage on Replit
Project description
replit-object-storage-python
The library for interacting with Replit's Object Storage service, on Replit.
Usage
Setup
Start by importing the Object Storage Client:
from replit.object_storage import Client
Then to use the Client:
client = Client()
Downloading an Object
contents = client.download_as_text("file.json")
Uploading an Object
client.upload_from_text("file.json", data)
List Objects
client.list()
Delete an Object
contents = client.delete("file.json")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for replit_object_storage-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c4e88e7c42acfa627eb26c9a84b0472ef8ff30606d43ed5a572e58290797f5 |
|
MD5 | 5b3d2ffcf14f0f853e69202f251637c9 |
|
BLAKE2b-256 | a671f6ab761ccf9fc079535bad738b6a28bb77e1ce235e945ccc8d71837cf354 |
Close
Hashes for replit_object_storage-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a417e627b7f83516ab8ff95a6d192a46daab48e978e0cbf9f2fd4673437f53f2 |
|
MD5 | 75f5bff1d1c6516d0bd51e08f0cb644c |
|
BLAKE2b-256 | 4e4564daafd1ffe28cfa8734c4271e009ca9fea5e6a6cdafc4e0fc603e98180b |