Metadata-Version: 2.1
Name: kpx
Version: 0.6.3
Summary: CLI tool for AWS configuration files and quick interogations to AWS API
License: APACHE 2
Author: BogdanR
Author-email: 367815-marius-rizac@users.noreply.gitlab.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: boto3 (>=1.34.150,<2.0.0)
Requires-Dist: kubernetes (>=30.1.0,<31.0.0)
Requires-Dist: prettytable (>=3.10.2,<4.0.0)
Requires-Dist: typer (>=0.12.3,<0.13.0)
Description-Content-Type: text/markdown

[![pipeline status](https://gitlab.com/kisphp/python-cli-tool/badges/main/pipeline.svg)](https://gitlab.com/kisphp/python-cli-tool/-/commits/main)
[![coverage report](https://gitlab.com/kisphp/python-cli-tool/badges/main/coverage.svg)](https://gitlab.com/kisphp/python-cli-tool/-/commits/main)
[![Latest Release](https://gitlab.com/kisphp/python-cli-tool/-/badges/release.svg)](https://gitlab.com/kisphp/python-cli-tool/-/releases)

## Install

```bash
# Install or update it from pip
pip install -U kpx

# Install or update it from gitlab
pip install -U kpx --index-url https://gitlab.com/api/v4/projects/24038501/packages/pypi/simple
```
# `kpx`

KPX application for aws profiles

**Usage**:

```console
$ kpx [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `cfg`: Configure ~/.aws/config file with profiles...
* `cred`: Configure ~/.aws/credentials file with aws...
* `ec2`: List EC2 instances
* `ecr`: List ECR repositories
* `lb`: List Load Balancers
* `n`: List EKS nodes and show some information...
* `nodes`: List EKS nodes and show some information...
* `r53`: List Route53 hosted zones
* `sec`: List secrets and show values
* `secret`: List secrets and show values
* `v`: Show current CLI tool version
* `version`: Show current CLI tool version
* `vpc`: List VPCs and show Cidr blocks or subnets...

## `kpx cfg`

Configure ~/.aws/config file with profiles settings

**Usage**:

```console
$ kpx cfg [OPTIONS] [AWS_PROFILE] [REGION] [OUTPUT]
```

**Arguments**:

* `[AWS_PROFILE]`: [default: default]
* `[REGION]`: [default: us-east-1]
* `[OUTPUT]`: [default: json]

**Options**:

* `--help`: Show this message and exit.

## `kpx cred`

Configure ~/.aws/credentials file with aws credentials

**Usage**:

```console
$ kpx cred [OPTIONS] [AWS_PROFILE] [KEY] [SECRET]
```

**Arguments**:

* `[AWS_PROFILE]`: [default: default]
* `[KEY]`
* `[SECRET]`

**Options**:

* `--help`: Show this message and exit.

## `kpx ec2`

List EC2 instances

**Usage**:

```console
$ kpx ec2 [OPTIONS]
```

**Options**:

* `-f, --filter TEXT`
* `--help`: Show this message and exit.

## `kpx ecr`

List ECR repositories

**Usage**:

```console
$ kpx ecr [OPTIONS] [REPO_NAME]
```

**Arguments**:

* `[REPO_NAME]`

**Options**:

* `--help`: Show this message and exit.

## `kpx lb`

List Load Balancers

**Usage**:

```console
$ kpx lb [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `kpx n`

List EKS nodes and show some information about them

**Usage**:

```console
$ kpx n [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `kpx nodes`

List EKS nodes and show some information about them

**Usage**:

```console
$ kpx nodes [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `kpx r53`

List Route53 hosted zones

**Usage**:

```console
$ kpx r53 [OPTIONS] [ZONE_ID] [FILTER]
```

**Arguments**:

* `[ZONE_ID]`
* `[FILTER]`

**Options**:

* `--help`: Show this message and exit.

## `kpx sec`

List secrets and show values

**Usage**:

```console
$ kpx sec [OPTIONS] [SECRET]
```

**Arguments**:

* `[SECRET]`

**Options**:

* `-a, --all-namespaces`: Show K8S secrets in all namespaces
* `-n, --namespace TEXT`: Select namespace
* `--help`: Show this message and exit.

## `kpx secret`

List secrets and show values

**Usage**:

```console
$ kpx secret [OPTIONS] [SECRET]
```

**Arguments**:

* `[SECRET]`

**Options**:

* `-a, --all-namespaces`: Show K8S secrets in all namespaces
* `-n, --namespace TEXT`: Select namespace
* `--help`: Show this message and exit.

## `kpx v`

Show current CLI tool version

**Usage**:

```console
$ kpx v [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `kpx version`

Show current CLI tool version

**Usage**:

```console
$ kpx version [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `kpx vpc`

List VPCs and show Cidr blocks or subnets for provided VPC ID

**Usage**:

```console
$ kpx vpc [OPTIONS] [VPC_ID]
```

**Arguments**:

* `[VPC_ID]`

**Options**:

* `--help`: Show this message and exit.


