https://github.com/replit/replit-object-storage-python
The library for Replit Object Storage
https://github.com/replit/replit-object-storage-python
Last synced: 10 months ago
JSON representation
The library for Replit Object Storage
- Host: GitHub
- URL: https://github.com/replit/replit-object-storage-python
- Owner: replit
- Created: 2024-01-24T20:15:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-06T03:52:35.000Z (11 months ago)
- Last Synced: 2025-04-06T16:46:35.135Z (10 months ago)
- Language: Python
- Size: 347 KB
- Stars: 3
- Watchers: 18
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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:
```python
from replit.object_storage import Client
```
Then to use the Client:
```python
client = Client()
```
### Downloading an Object
```python
contents = client.download_as_text("file.json")
```
### Uploading an Object
```python
client.upload_from_text("file.json", data)
```
### List Objects
```python
client.list()
```
### Delete an Object
```python
contents = client.delete("file.json")
```