Skip to main content

Streaming based unix cat like functionality for file on S3. Supports gzip, bzip and xz compressed files as well

Project description

S3 Stream Cat powers you to instantly check the content of S3 file. Especially it supports streaming and printing data from compressed files.

Compression Format Supported

  • Gzip

  • XZ

  • BZIP

You might find it most useful when you don’t actually want to download the file however want to check the sample data, or to grep for few records matching certain search. Typical usage often looks like this:

s3streamcat s3://bucketname/dir/file_path
s3streamcat s3://bucketname/dir/file_path | more
s3streamcat s3://bucketname/dir/file_path | grep something

To try different encoding in case utf-8 is unable to decode your stream:

s3streamcat -e latin-1 s3://bucketname/dir/file_path.gz

To tune number of bytes to be fetched at a time:

s3streamcat -b 1024 s3://bucketname/dir/file_path.gz

Configurations

If you have aws client installed on your system s3streamcat will work out of the box If not you will have to have file at location HOME/.aws/credentials with aws cred:

[default]
aws_access_key_id=<put your aws access key>
aws_secret_access_key=<put your aws secret key>

Dependancies

  • Its written for Python3 which is the present and future of the language

  • libssl-dev libffi-dev

  • python3-dev

Ubuntu users can install dependancy packages with:

  • sudo apt-get install -y libssl-dev libffi-dev

  • sudo apt-get install python3-dev

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

s3streamcat-0.1.6.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file s3streamcat-0.1.6.tar.gz.

File metadata

  • Download URL: s3streamcat-0.1.6.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for s3streamcat-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6ec387158e19289680cfefcda4276943da7021049cd14f1e0b1fe9e11279e722
MD5 9111f858ce35ba1bfb9ea459aaf32e89
BLAKE2b-256 a69388cffd094a8d766a43759b521e5e84865ed1eb2ed55744760b197748aa6e

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