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.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for pydbbackups-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf3de9431f7d6832c1ab2fb485bf26f9cead9843bb16f495301db9af37431cf7 |
|
MD5 | 5414fd4f0447c8a710215de23ff87b88 |
|
BLAKE2b-256 | 75863aee244578445ab545aec1a4d009b594e0c21550a1bdea3c96953c84cbed |