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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f1fed16eff712124109dd138372f16a71c65c13957018aacf7c14f3bc0d594 |
|
MD5 | 01d2c151924be127540a07633ce89fcb |
|
BLAKE2b-256 | 3481aeadc95ae7b7820e2ee20893824bf981eac8f43872d1c069add433d3b1d6 |
Close
Hashes for replit_object_storage-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9e47b8b555f6b542189d8aef338112bfa40ea34fe917952a8c645a41319477 |
|
MD5 | 2e619f0ccf3a04e81f8932e3c4e4babb |
|
BLAKE2b-256 | 947328dbeb8a446468363d1af1f88b54a5855d2e669354a3922f695004706507 |