donnemartin/saws được TopGit xếp vào nhóm công cụ cho lập trình viên, với 5.3k sao trên GitHub, viết chủ yếu bằng Python. A supercharged AWS command line interface (CLI).
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Auto-Completion of Commands, Subcommands, and Options
SAWS provides smart autocompletion as you type. Entering the following command will interactively list and auto-complete all subcommands specific only to ec2:
aws ec2
Auto-Completion of AWS Resources
In addition to the default commands, subcommands, and options the AWS CLI provides, SAWS supports auto-completion of your AWS resources. Currently, bucket names, instance ids, and instance tags are included, with additional support for more resources under development.
S3 Buckets
Option for s3api:
--bucket
Sample Usage:
aws s3api get-bucket-acl --bucket
Syntax for s3:
s3://
Sample Usage:
aws s3 ls s3://
Note: The example below demonstrates the use of fuzzy resource completion:
EC2 Instance Ids
Option for ec2:
--instance-ids
Sample Usage:
aws ec2 describe-instances --instance-ids
aws ec2 ls --instance-ids
Note: The ls command demonstrates the use of customizable shortcuts:
EC2 Instance Tags
Option for ec2:
--ec2-tag-key
--ec2-tag-value
Sample Usage:
aws ec2 ls --ec2-tag-key
aws ec2 ls --ec2-tag-value
Tags support wildcards with the * character.
Note: ls, --ec2-tag-value, and --ec2-tag-key demonstrate the use of customizable shortcuts:
TODO: Add More Resources
Feel free to submit an issue or a pull request if you'd like support for additional resources.
Customizable Shortcuts
The ~/.saws.shortcuts file contains shortcuts that you can modify. It comes pre-populated with several handy shortcuts out of the box. You can combine shortcuts with fuzzy completion for even less keystrokes. Below are a few examples.
List all EC2 instances:
aws ec2 ls
List all running EC2 instances:
aws ec2 ls --ec2-state running # fuzzy shortcut: aws ecstate
List all EC2 instances with a matching tag (supports wildcards *):
aws ec2 ls --ec2-tag-key # fuzzy shortcut: aws ectagk
aws ec2 ls --ec2-tag-value # fuzzy shortcut: aws ectagv
List EC2 instance with matching id:
aws ec2 ls --instance-ids # fuzzy shortcut: aws eclsi
List all DynamoDB tables:
aws dynamodb ls # fuzzy shortcut: aws dls
List all EMR clusters:
aws emr ls # fuzzy shortcut: aws emls
Add/remove/modify shortcuts in your ~/.saws.shortcuts file to suit your needs.
Feel free to submit:
An issue to request additional shortcuts
A pull request if you'd like to share your shortcuts (see contributing guidelines)
Fuzzy Resource and Shortcut Completion
To toggle fuzzy completion of AWS resources and shortcuts, use F3 key.
Sample fuzzy shortcuts to start and stop EC2 instances:
aws ecstop
aws ecstart
Note: Fuzzy completion currently only works with AWS resources and shortcuts.
Fish-Style Auto-Suggestions
SAWS supports Fish-style auto-suggestions. Use the right arrow key to complete a suggestion.
Executing Shell Commands
SAWS allows you to execute shell commands from the saws> prompt.
Command History
SAWS keeps track of commands you enter and stores them in ~/.saws-history. Use the up and down arrow keys to cycle through the command history.
Contextual Help
SAWS supports contextual command line help and contextual web docs.
Contextual Command Line Help
The help command is powered by the AWS CLI and outputs help within the command line.
Usage:
aws <command> <subcommand> help
Contextual Web Docs
Sometimes you're not quite sure what specific command/subcommand/option combination you need to use. In such cases, browsing through several combinations with the help command line is cumbersome versus browsing the online AWS CLI docs through a web browser.
SAWS supports contextual web docs with the docs command or the F9 key. SAWS will display the web docs specific to the currently entered command and subcommand.
Usage:
aws <command> <subcommand> docs
Toolbar Options
SAWS supports a number of toolbar options:
F2 toggles output syntax highlighting
F3 toggles fuzzy completion of AWS resources and shortcuts
F4 toggles completion of shortcuts
F5 refreshes resources for auto-completion
F9 displays the contextual web docs
F10 or control d exits SAWS
Windows Support
SAWS has been tested on Windows 7 and Windows 10.
On Windows, the .sawsrc file can be found in %userprofile%. For example:
C:\Users\dmartin\.sawsrc
Although you can use the standard Windows command prompt, you'll probably have a better experience with either cmder or conemu.
Installation
Pip Installation
SAWS is hosted on PyPI. The following command will install SAWS along with dependencies such as the AWS CLI:
$ pip install saws
You can also install the latest SAWS from GitHub source which can contain changes not yet pushed to PyPI:
If you are not installing in a virtualenv, run with sudo:
$ sudo pip install saws
Once installed, start SAWS:
$ saws
Virtual Environment and Docker Installation
It is recommended that you install Python packages in a virtualenv to avoid potential issues with dependencies or permissions.
To view SAWSvirtualenv and Docker installation instructions, click here.
Mac OS X 10.11 El Capitan Users
There is a known issue with Apple and its included python package dependencies (more info at https://github.com/pypa/pip/issues/3165). We are investigating ways to fix this issue but in the meantime, to install saws, you can run:
$ sudo pip install saws --upgrade --ignore-installed six
AWS Credentials and Named Profiles
Configure your credentials with the AWS CLI:
$ aws configure
If you'd like to use a specific named profile with SAWS, run the following commands on OS X, Linux, or Unix:
$ export AWS_DEFAULT_PROFILE=user1
$ saws
Or as a one-liner:
$ AWS_DEFAULT_PROFILE=user1 saws
Windows users can run the following commands:
> set AWS_DEFAULT_PROFILE=user1
> saws
Command line options for starting SAWS with a specific profile are under development. For more details on how to install and configure the AWS CLI, refer to the following documentation.
Supported Python Versions
Python 2.6
Python 2.7
Python 3.3
Python 3.4
Pypy
Light testing indicates that SAWS also seems to be compatible with Python 3.5.
Pypy3 is not supported due to lack of support from boto.
Supported Platforms
Mac OS X
Tested on OS X 10.10
Linux, Unix
Tested on Ubuntu 14.04 LTS
Windows
Tested on Windows 7 and 10
Developer Installation
If you're interested in contributing to SAWS, run the following commands:
I am providing code and resources in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code and resources is from me and not my employer (Facebook).
Copyright 2015 Donne Martin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
donnemartin/saws thuộc nhóm Developer Tools trên TopGit, cùng 17 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về donnemartin/saws ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/donnemartin/saws là nguồn chính thức.
donnemartin/saws có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho donnemartin/saws. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
donnemartin/saws có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho donnemartin/saws. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
donnemartin/saws là gì?
donnemartin/saws (donnemartin/saws) là dự án Python trên GitHub. Theo mô tả gốc: A supercharged AWS command line interface (CLI).
Vì sao donnemartin/saws được xếp vào nhóm Developer Tools?
TopGit xếp donnemartin/saws vào nhóm Developer Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "aws", "aws-cli", "cli"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
saws có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về saws.