semvec/pypi-packages huggingface dataset:
zec2 0.5.0
Easily ssh to your AWS EC2 instances
License: MIT
Keywords: amazon,aws,ec2,ssh,instance

# zec2

[![PyPI version](https://badge.fury.io/py/zec2.svg)](https://badge.fury.io/py/zec2)
[![Build Status](https://travis-ci.com/arrrlo/zec2.svg?branch=master)](https://travis-ci.com/arrrlo/zec2)

![GitHub issues](https://img.shields.io/github/issues/arrrlo/zec2.svg)
![GitHub closed issues](https://img.shields.io/github/issues-closed/arrrlo/zec2.svg)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/arrrlo/zec2.svg)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/zec2.svg)
![GitHub](https://img.shields.io/github/license/arrrlo/zec2.svg?color=blue)
![GitHub last commit](https://img.shields.io/github/last-commit/arrrlo/zec2.svg?color=blue)

Easily manage your AWS EC2 instances

## INSTALL

```bash
pip install zec2
```

## CONFIGURE AWS CREDENTIALS

You should have this two files on your computer:

`~/.aws/config`:

```ini
[default]
region=your_aws_region
output=json
```

`~/.aws/credentials`:

```ini
[default]
aws_access_key_id=your_access_key_id
aws_secret_access_key=your_secret_access_key
```

To learn more about AWS credentials and how to install them on your computer, please read this:
[https://docs.aws.amazon.com/rekognition/latest/dg/setting-up.html](https://docs.aws.amazon.com/rekognition/latest/dg/setting-up.html)

## DIFFERENT AWS PROFILES

You can put as many profiles in your aws credentials file and call them with zec2:

```bash
# use default aws profile
> zec2 ls

# use different aws profile
> zec2 -p my_profile ls
```

Use this option with every command.

## CLI COMMANDS

```bash
# list all EC2 instances
> zec2 ls

# list all EC2 instances using custom aws profile (applies to all commands)
> zec2 -p work ls

# live list all EC2 instances
> zec2 ls -f

# ssh to 1st instance from the list
> $(zec2 ssh 1)

# ssh using different user (the default is ec2-user)
> $(zec2 ssh 1 -u ubuntu)

# ssh using different pem key path (the default is ~/.ssh/__instance_key_pair__.pem)
> $(zec2 ssh 1 -i ~/path/to/key.pem)

# stop 1st EC2 instance from the list
> zec2 stop 1

# start 1st EC2 instance from the list
> zec2 start 1

# restart 1st EC2 instance from the list
> zec2 restart 1

# terminate 1st EC2 instance from the list
> zec2 terminate 1
```
pypole 0.1.1b0
Awesome `pypole` is a Python cli/package created with https://github.com/TezRomacH/python-package-template
License: MIT
Requires Python: >=3.9,<4.0

# pypole

<div align="center">

[![Build status](https://github.com/pypole/pypole/workflows/build/badge.svg?branch=master&event=push)](https://github.com/pypole/pypole/actions?query=workflow%3Abuild)
[![Python Version](https://img.shields.io/pypi/pyversions/pypole.svg)](https://pypi.org/project/pypole/)
[![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://github.com/pypole/pypole/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Security: bandit](https://img.shields.io/badge/security-bandit-green.svg)](https://github.com/PyCQA/bandit)
[![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pypole/pypole/blob/master/.pre-commit-config.yaml)
[![Semantic Versions](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--versions-e10079.svg)](https://github.com/pypole/pypole/releases)
[![License](https://img.shields.io/github/license/pypole/pypole)](https://github.com/pypole/pypole/blob/master/LICENSE)
![Coverage Report](assets/images/coverage.svg)

`pypole` is a Python package for simple fitting of magnetic dipoles to magnetic maps measured with Quantum diamond microscope or SQUID microscope

</div>

## Installation

```bash
pip install -U pypole
```

or install with `Poetry`

```bash
poetry add pypole
```

## 🛡 License

[![License](https://img.shields.io/github/license/pypole/pypole)](https://github.com/pypole/pypole/blob/master/LICENSE)

This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/pypole/pypole/blob/master/LICENSE) for more details.

## 📃 Citation

```bibtex
@misc{pypole,
  author = {pypole},
  title = {Awesome `pypole` is a Python cli/package created with https://github.com/TezRomacH/python-package-template},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/pypole/pypole}}
}
```

## Credits [![🚀 Your next Python package needs a bleeding-edge project structure.](https://img.shields.io/badge/python--package--template-%F0%9F%9A%80-brightgreen)](https://github.com/TezRomacH/python-package-template)

This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template)