s3util.
Project description
s3util
A command line tool for s3 with autopath completions and features like vim, cat, recursive restores and batch operations
-
Path auto completion
Tab completion of s3 paths and buckets
-
s3util vim
edit any file on s3 or create new file on s3 using vim
-
s3util batch delete
delete multiple directories or file in batch of 1000 objects
operations availble
$ s3util vim <path_to_file>
to edit file on vim
$ s3util cat <space_seperated_paths_to_file>
to print content of file
$ s3util rm <space_seperated_paths_to_file>
to delete objects on paths
$ s3util restore <space_seperated_paths_to_file>
to restore objects from glacier on paths
$ s3util ls <space_seperated_paths_to_file>
to list objects on paths
$ s3util cp <path1> <path2>
Copy path1 to path2
$ s3util mv <path1> <path2>
Move path1 to path2
--recursive
command is available forcat
,restore
,rm
,ls
,cp
,mv
to performe operation on all the objects on the path--profile
command can be used to use a particular profile exs3util --profile <profile_name> <operation> <path> <options>
Install Instruction
$ pip install s3util
follow below setup for autocompletion according to the terminal you are using (bash, zsh etc)
For Local development
$ git clone https://github.com/karannaoh/s3util.git
$ cd s3util/
$ pip install -r requirement.txt
$ python3 setup.py install
$ python3 setup.py sdist bdist_wheel
$ pip install s3util
For autocompletion to work,
For bash,
$ activate-global-python-argcomplete
and add
eval "$(register-python-argcomplete s3util)"
in .bashrc file
For zsh
enable bashcompinit
$ autoload -U bashcompinit
$ bashcompinit
and add
eval "$(register-python-argcomplete s3util)"
in .zshrc file
follow https://github.com/kislyuk/argcomplete for other programs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file s3util-0.0.3.tar.gz
.
File metadata
- Download URL: s3util-0.0.3.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891093b1a5a259f2edcba7d58a093206a2751a3ed308695175ae9f88691b1ea7 |
|
MD5 | 4871db160c5633795d8b9c52ecd7cbcb |
|
BLAKE2b-256 | c1030126f658faabc4d714ef5c6541bfaacd1d05256a1f663b1cfd52d16bd36e |