semvec/pypi-packages huggingface dataset:
1pass2pass 0.0.3
Utility for transfer items from the 1password (*.1pif files) to the pass
License: MIT
Requires Python: >=3.6
Keywords: 1pass2pass,1password,pass

# 1pass2pass

Utility for transfer items from the 1password (*.1pif files) to the pass ([the standard unix password manager](https://www.passwordstore.org)).

## Usage

```python
python 1pass2pass [-h] [-v] [-p] [-f] [-fl] <1pif filename> <folder>
```

Positional arguments:

```console
<1pif filename>     - path to *.1pif file for processing
<folder>            - path to folder for store passwords
```

Optional arguments:

```console
-h,  --help         - show help message
-v,  --verbose      - increase output verbosity
-p,  --print-only   - print data into console, without saving into password store
-f,  --force        - force overwrite existing passwords (default=False)
-fl, --first-line   - Put password in first line (default=False)
```

> WARN: If you whant to use the `Pass` aplication on iOS, you need to use the `--first-line` option.
> Because the `Pass` app on iOS find the password in the first line.

## Example

```console
python 1pass2pass.py -v -f -fl ~/Downloads/1password.1pif /Personal
```

Where we import passwords from `~/Downloads/1password.1pif` to the folder `/Personal` with verbose output, force overwrite existing passwords and put password in first line.

## Requirements

- python 3.6+
- loguru
terrapyst 0.4.1
A Python Wrapper around the Terraform CLI
License: MIT

# Terrapyst

Terrapyst is a Python wrapper around the Terraform CLI.

## Usage

### Quick Start

Terrapyst usage centers around the Workspace object, which can be used to run the typical Terraform commands in that workspace. Just like with the CLI you have to initialize the workspace before you can run plans or applies.

```python
from terrapyst import Workspace

workspace = Workspace(path="./")
workspace.init()

results, plan = workspace.plan()

if !results.successful:
  raise Exception(f"Terraform run failed without output: {results.stdout}")

if plan.deletions > 0:
  raise Exception("Deletions not expected from this plan")

results, apply_log = workspace.apply(plan_path=plan.plan_path, auto_approve=True)

if !results.successful:
  print("Terraform Apply was not successful.")

for resource_name, resource_data in apply_log.resources.items():
  print(f"${resource_name}: ${resource['message']}")

for output_name, output_data in apply_log.outputs.items():
  print(f"{output_name}:\n")
  print(yaml.dumps(output_data))
  print("\n\n\n")
```

The plan step can be skipped if you are auto approving.

```python
from terrapyst import Workspace

workspace = Workspace(path="./")
workspace.init()
results, apply_log = workspace.apply(auto_approve=True)
```


### Installation

Terrapyst can be installed with pip.

```bash
pip install terrapyst
```

In addition to Terrapyst you should have the Terraform binary installed on your system.