Metadata-Version: 2.4
Name: patronx
Version: 0.1.0
Summary: Simple package for backups and recovery
Author: xdanielsb
License: BSD-3-Clause
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0
Requires-Dist: psycopg2-binary>=2.9
Requires-Dist: tqdm
Requires-Dist: boto3>=1.34
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: isort; extra == "test"
Requires-Dist: mypy; extra == "test"
Dynamic: license-file

## PatronX
_Toolkit for PostgreSQL backups, point‑in‑time recovery (PITR) and object‑storage off‑loading, written in modern‑typed_


<img src="./patronx.png" />

[![codecov](https://codecov.io/gh/xdanielsb/patron/graph/badge.svg?token=AHTJFKDSKU)](https://codecov.io/gh/xdanielsb/patron)
![CI](https://github.com/xdanielsb/patron/actions/workflows/ci-test.yml/badge.svg)
### Command line usage

Install the package in editable mode:

```bash
pip install -e .
```

Once installed, the `patron` command becomes available:

```bash
patronx --version
patronx list
patronx check-db
patronx backup [--plain] [--no-progress]
patronx restore --inp /path/to/backup.dump [--plain] [--no-progress]
```

### Test
```bash
pytest
```

### Linting and Formatting
```bash
ruff check . --fix
isort .
```


### Generate requirements
```bash
pip install pip-tools
pip-compile --output-file=requirements.txt pyproject.toml
```
