UNIX cat with read support for S3, SSH, etc.
A wrapper around the standard cat utility that can read from:
- HTTP and HTTPS
- HDFS and WebHDFS
$ echo THIS | cat - https://example.com s3://silo-open-data/README -b | grep -i th.s 1 THIS 40 <p>This domain is for use in illustrative examples in documents. You may use this 52 These data are hosted under the AWS Public Data program, courtesy of Amazon Web Services Inc.
We frequently need to access files from a variety of sources. The command syntax to achieve this differs for each source. For example:
cat /some/local/file aws s3 cp s3://bucket/key.txt - curl https://example.com ssh host cat /path/to/file
This is inconvenient. Wouldn't it be better if you could use a single command to do all these things?
Now you can.
anycat /some/local/file anycat s3://bucket/key.txt - anycat https://example.com anycat host cat /path/to/file
pip install -U anycat
anycat from your shell.
You can save yourself some typing and make a bash alias:
If you suspect something is broken, you can temporarily revert to the actual
cat binary by prefixing with a backslash:
or remove the alias completely:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size anycat-0.0.1.tar.gz (3.7 kB)||File type Source||Python version None||Upload date||Hashes View|