Metadata-Version: 2.1
Name: pydbbackups
Version: 0.0.1
Summary: DB backups handler
Author: jbuendia1y
Author-email: jgamer669@gmail.com
Requires-Python: >=3.10,<4.0
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: pymongo (>=4.3.3,<5.0.0)
Requires-Dist: rich (>=13.3.3,<14.0.0)
Description-Content-Type: text/markdown

# PyDBBackups

A backup handler

## CLI example

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

# backup-example___2023-04-10 11:42:59.090131 Created !
```

## Code example

```python
from pydbbackups import Postgres

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

# In some cases dump method, return None
# Like MongoDB

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

```

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