Metadata-Version: 2.1
Name: pydbbackups
Version: 0.1.1
Summary: DB backups handler
Home-page: https://github.com/jbuendia1y/pydbbackups
License: MIT
Keywords: backups,databases,handler,library,cli
Author: jbuendia1y
Author-email: jgamer669@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: inquirer (>=3.1.3,<4.0.0)
Requires-Dist: rich (>=13.3.3,<14.0.0)
Project-URL: Repository, https://github.com/jbuendia1y/pydbbackups
Description-Content-Type: text/markdown

<a href="https://github.com/jbuendia1y/pydbbackups/blob/main/LICENSE"><img src="https://img.shields.io/github/license/jbuendia1y/pydbbackups"></a>
<a href="https://pypi.org/project/pydbbackups/"><img src="https://img.shields.io/pypi/v/pydbbackups"></a>
<a href="https://pypi.org/project/pydbbackups/"><img src="https://img.shields.io/pypi/dw/pydbbackups"></a>
<a href="https://github.com/pylint-dev/pylint"><img src="https://img.shields.io/badge/linting-pylint-yellowgreen"></a>

# PyDBBackups

A backup handler

## Installation

```bash
pip install pydbbackups
```

## CLI example

```bash
dbbackups dump \
    --name backup-example \
    --database-type postgres \
    --host localhost \
    --database test \
    --username postgres \
    --port 5432

# 0__backup-example.sql Created !
```

## Code example

```python
from pydbbackups import Postgres

cls = Postgres(
    database="test",
    host="localhost",
    port=5432,
    username="postgres",
    password="postgres"
)

# In some cases dump method, return None

output = cls.dump()  # Return BytesIO
print(output.read().decode('utf-8'))

```

<p align="center">@jbuendia1y &#60;jbuendia1y@gmail.com&#62;</p>
