Skip to content

replit/replit-object-storage-python

Repository files navigation

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")