Skip to main content

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

replit_object_storage-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

replit_object_storage-1.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file replit_object_storage-1.0.2.tar.gz.

File metadata

  • Download URL: replit_object_storage-1.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for replit_object_storage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ee51c759e0361d6fd6dffc847b9d5019c5572ee6490166aa66ab6001ed70595d
MD5 27a8175c152bdd3655e370f94dc118a9
BLAKE2b-256 5a3ce4a79901536c6b3801072eb92b2a29a0c2b99471ac75ba92271a7cad568e

See more details on using hashes here.

File details

Details for the file replit_object_storage-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for replit_object_storage-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de9791d50b9c1197e32224d641529fe0d1b3b3e8fafb20d235f2916dac34cfca
MD5 9c7b0111bd85eee897a030a78ba79d80
BLAKE2b-256 400d844005c9a92b288afc4ca551efcefedb280c4af53b842a33e51129c72e7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page