Skip to main content

A simple library for interacting with Amazon S3.

Project description

BucketStore is a very simple Amazon S3 client, written in Python. It aims to be much more straight-forward to use than boto3, and specializes only in Amazon S3, ignoring the rest of the AWS ecosystem.


  • Treats S3 Buckets as Key/Value stores.
  • Expects AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to be set.
  • Easily make keys (or entire buckets) publically accessable.
  • Easily get the public URL for a given key.
  • Generates temporary URLs for a given key.


import bucketstore

# Create the bucket if it doesn't exist.
bucket = bucketstore.get('bucketstore-playground', create=True)
# Treat the bucket like a key/value store.
>>> bucket['foo'] = 'bar'
>>> bucket['foo']

>>> bucket.set('foo2', 'bar2')
>>> bucket.get('foo2')

>>> bucket.list()
[u'foo', u'foo2']

>>> bucket.all()
[<S3Key bucket='bucketstore-playground' name=u'foo'>, <S3Key bucket='bucketstore-playground' name=u'foo2'>]
>>> bucket.all()[0]
<S3Key bucket='bucketstore-playground' name=u'foo'>
>>> foo = _

>>> foo.set('new value')

# Generate a temporary share URL.
>>> foo.temp_url(duration=1200)

# Make publically accessable.
>>> foo.make_public()
>>> foo.url

>>> foo.delete()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bucketstore, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size bucketstore-0.1.0-py2-none-any.whl (4.6 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size bucketstore-0.1.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page