Skip to content

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

About

The library for Replit Object Storage

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.7%
  • Makefile 3.7%
  • Nix 0.6%