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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee51c759e0361d6fd6dffc847b9d5019c5572ee6490166aa66ab6001ed70595d |
|
MD5 | 27a8175c152bdd3655e370f94dc118a9 |
|
BLAKE2b-256 | 5a3ce4a79901536c6b3801072eb92b2a29a0c2b99471ac75ba92271a7cad568e |
Close
Hashes for replit_object_storage-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9791d50b9c1197e32224d641529fe0d1b3b3e8fafb20d235f2916dac34cfca |
|
MD5 | 9c7b0111bd85eee897a030a78ba79d80 |
|
BLAKE2b-256 | 400d844005c9a92b288afc4ca551efcefedb280c4af53b842a33e51129c72e7e |