# 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 <jbuendia1y@gmail.com></p>
Raw data
{
"_id": null,
"home_page": "https://github.com/jbuendia1y/pydbbackups",
"name": "pydbbackups",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "backups,databases,handler,library,cli",
"author": "jbuendia1y",
"author_email": "jgamer669@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/da/ea/d507c4d70f2e8b05e195618fe76a47b2b00306077f56d9b2c41b240ff7f1/pydbbackups-0.1.0.tar.gz",
"platform": null,
"description": "# PyDBBackups\n\nA backup handler\n\n## Installation\n\n```bash\npip install pydbbackups\n```\n\n## CLI example\n\n```bash\ndbbackups dump \\\n --name backup-example \\\n --database-type postgres \\\n --host localhost \\\n --database test \\\n --username postgres \\\n --port 5432\n\n# 0__backup-example.sql Created !\n```\n\n## Code example\n\n```python\nfrom pydbbackups import Postgres\n\ncls = Postgres(\n database=\"test\",\n host=\"localhost\",\n port=5432,\n username=\"postgres\",\n password=\"postgres\"\n)\n\n# In some cases dump method, return None\n\noutput = cls.dump() # Return BytesIO\nprint(output.read().decode('utf-8'))\n\n```\n\n<p align=\"center\">@jbuendia1y <jbuendia1y@gmail.com></p>",
"bugtrack_url": null,
"license": "MIT",
"summary": "DB backups handler",
"version": "0.1.0",
"split_keywords": [
"backups",
"databases",
"handler",
"library",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "75863aee244578445ab545aec1a4d009b594e0c21550a1bdea3c96953c84cbed",
"md5": "5414fd4f0447c8a710215de23ff87b88",
"sha256": "cf3de9431f7d6832c1ab2fb485bf26f9cead9843bb16f495301db9af37431cf7"
},
"downloads": -1,
"filename": "pydbbackups-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5414fd4f0447c8a710215de23ff87b88",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 11090,
"upload_time": "2023-04-17T13:31:48",
"upload_time_iso_8601": "2023-04-17T13:31:48.442467Z",
"url": "https://files.pythonhosted.org/packages/75/86/3aee244578445ab545aec1a4d009b594e0c21550a1bdea3c96953c84cbed/pydbbackups-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "daead507c4d70f2e8b05e195618fe76a47b2b00306077f56d9b2c41b240ff7f1",
"md5": "25d7ebde64c2b27b6539477b77b914ba",
"sha256": "f746125d7f64ce63afa3deb18c3f3f2736e746f5aaf85ab6524696e97483ee94"
},
"downloads": -1,
"filename": "pydbbackups-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "25d7ebde64c2b27b6539477b77b914ba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 7507,
"upload_time": "2023-04-17T13:31:50",
"upload_time_iso_8601": "2023-04-17T13:31:50.261396Z",
"url": "https://files.pythonhosted.org/packages/da/ea/d507c4d70f2e8b05e195618fe76a47b2b00306077f56d9b2c41b240ff7f1/pydbbackups-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-17 13:31:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "jbuendia1y",
"github_project": "pydbbackups",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pydbbackups"
}