Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
grep for Amazon S3
Python
branch: master
Failed to load latest commit information.
.gitignore License and admin
LICENSE License and admin
MANIFEST.in License and admin
README License and admin
README.md Initial commit
s3grep Initial commit
setup.py 0.2 release

README.md

s3grep

grep for Amazon S3.

Searches text files on an S3 bucket for specific content. The search is parallelised in order to yield good performance, using multiple connections to S3.

Usage

Search for straw in bucket 'mybucket', keys starting 'prefix':

$ s3grep s3://mybucket/prefix straw

Supports regular expressions:

$ s3grep s3://mybucket/prefix a.+b

To see all options:

$ s3grep -h

Installation

$ pip install s3grep

or:

$ easy_install s3grep

from sources, the usual:

$ sudo python setup.py install

AWS Credentials

Your credentials can be set through environment variables:

AWS_ACCESS_KEY_ID - Your AWS Access Key ID
AWS_SECRET_ACCESS_KEY - Your AWS Secret Access Key

Alternatively they can be configured in the boto configuration file, in short, create ~/.boto with the content:

[Credentials]
aws_access_key_id = <your access key>
aws_secret_access_key = <your secret key>

TODO

  • support for compressed content
Something went wrong with that request. Please try again.