Metadata-Version: 2.1
Name: kitten
Version: 0.1.17
Summary: Tiny tool to manage servers simultaneously.
Home-page: https://github.com/hoffa/kitten
Author: Chris Rehn
Author-email: chris@rehn.me
License: MIT
Description: # 😽 kitten
        
        [![Build Status](https://travis-ci.org/hoffa/kitten.svg?branch=master)](https://travis-ci.org/hoffa/kitten) [![Maintainability](https://api.codeclimate.com/v1/badges/34e6b84000b2ab0e1bce/maintainability)](https://codeclimate.com/github/hoffa/kitten/maintainability) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/kitten.svg)](https://pypi.org/project/kitten)
        
        Tiny tool to manage servers simultaneously. It aims to be as simple as possible.
        
        ## Install
        
        ```
        pip install kitten
        ```
        
        ## Prerequisites
        
        You'll need to have AWS credentials set up. You can do it using `awscli`:
        
        ```
        pip install awscli
        aws configure
        ```
        
        ## Examples
        
        #### Get IPs from AWS resources
        
        Use `kitten ip` with either `id`, `asg` or `elb`:
        
        ```
        $ kitten ip id i-04703bf3e6fab1926 i-07f234d0f29113ef2
        18.135.117.17
        24.129.235.48
        ```
        
        ```
        $ kitten ip asg my-asg-name
        18.105.107.20
        34.229.135.48
        ```
        
        You can select the region using `--region`.
        
        #### Run command on servers
        
        ```
        $ kitten run uptime ubuntu 18.105.107.20 34.229.135.48
        18.105.107.20 uptime
        34.229.135.48 uptime
        18.105.107.20 17:11:48 up 1 day,  6:02,  0 users,  load average: 0.91, 2.99, 3.49
        34.229.135.48 17:11:48 up 5 days, 11:19,  0 users,  load average: 6.34, 5.94, 5.72
        ```
        
        Replace `ubuntu` with the user used to log in on the servers.
        
        Commands are always run in parallel. Use `--threads` to specify the maximum number of concurrent connections (defaults to 10).
        
        Use `--sudo` to run commands via `sudo`.
        
        Use `-i` to specify a private key.
        
        #### Get IPs and run command in one step
        
        Just pipe the IPs from `kitten ip` to `xargs`:
        
        ```
        $ kitten ip asg big-prod-asg-name | xargs kitten run 'rm -rf /tmp' root
        ```
        
        #### Download files
        
        ```
        $ kitten ip elb big-prod-elb | xargs kitten get -i ~/.ssh/key.pem /tmp/system.log ubuntu
        ```
        
        #### Upload file
        
        ```
        $ kitten ip elb big-prod-elb | xargs kitten put nginx.conf /etc/init/nginx.conf root
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Shells
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
