DB backups handler
Project description
PyDBBackups
A backup handler
Installation
pip install pydbbackups
CLI example
dbbackups dump \
--name backup-example \
--database-type postgres \
--host localhost \
--database test \
--username postgres \
--port 5432
# 0__backup-example.sql Created !
Code example
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'))
@jbuendia1y <jbuendia1y@gmail.com>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydbbackups-0.1.1.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydbbackups-0.1.1.tar.gz.
File metadata
- Download URL: pydbbackups-0.1.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a5297654cb36278b1954b5a413dc87e679d559f876c54f73489575d3651d172
|
|
| MD5 |
465c5bc81854e4b2763bbdb49a73f707
|
|
| BLAKE2b-256 |
31612370a55fbc991dfeab74cfa2ba7a45abe7baabedcf9251ff2bab91e8af8c
|
File details
Details for the file pydbbackups-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pydbbackups-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.10.6 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa24b459dbd3d0bf7ee4b42c7dc4f5020e8a895d9cdefbf1491f6e88227f1a00
|
|
| MD5 |
e7a032cafd1bd7c02793e6030fdd7ef5
|
|
| BLAKE2b-256 |
0c6cc4569338f5849bbef53815ff4181d6479f04a9535a97aba04a1ad2b7cd81
|