Skip to main content

Python - Boto interface for MimicDB.

Project description

S3 Metadata without the Latency or Costs

By maintaining a transactional record of every API call to S3, MimicDB provides a local, isometric key-value store of data on S3. MimicDB stores everything except the contents of objects locally. Tasks like listing, searching and calculating storage usage on massive amounts of data are now fast and free.

On average, tasks like these are 2000x faster using MimicDB.

Boto:

>>> c = S3Connection(KEY, SECRET)
>>> bucket = c.get_bucket('bucket_name')
>>> start = time.time()
>>> bucket.get_all_keys()
>>> print time.time() - start
0.425064992905

Boto + MimicDB:

>>> c = S3Connection(KEY, SECRET)
>>> bucket = c.get_bucket('bucket_name')
>>> start = time.time()
>>> bucket.get_all_keys()
>>> print time.time() - start
0.000198841094971

Installation

To install MimicDB, simply:

$ pip install mimicdb

MimicDB requires boto.

After installing, change the boto imports from boto.s3.* to mimicdb.s3.*

Additionally, register the database at the begining of the script:

from mimicdb import MimicDB MimicDB(host=’localhost’, port=6379, db=0)

MimicDB takes the parameters of a redis connection.

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

MimicDB-0.1.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file MimicDB-0.1.tar.gz.

File metadata

  • Download URL: MimicDB-0.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MimicDB-0.1.tar.gz
Algorithm Hash digest
SHA256 8bea7145b050881357cf625d8fa020ff01a6e8c8ec387be53c14c7ef3fd9b061
MD5 1eb42443ed8279e86e87cf69049c319c
BLAKE2b-256 e60ff930b20f1d853140109596d3145909ed4d948bf750222ae3f710b4daf711

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