Python Library and CLI for exporting MySQL databases
Project description
expdb
Python library and CLI for exporting MySQL databases
Installation
-
Pre-requisites
MySQL server
Python 3.9+
-
Using
git
- Clone the repository to your local machine
git clone https://github.com/Devansh3712/expdb.git
- Install
python setup.py install
-
Using PyPI
- Windows
pip install expdb
- Linux/MacOS
pip3 install expdb
Usage
-
CLI
Usage: expdb [OPTIONS] COMMAND [ARGS]... CLI for exporting MySQL databases in various file formats Available formats: BIN, CSV, JSON, SQL Options: --help Show this message and exit. Commands: exportall Export all tables from a database exportdb Export a whole database in SQL file format exportmany Export multiple tables from a database exportone Export a single table from a database
-
exportall
Exports all tables in the input database -
exportdb
Export a whole database in SQL format -
exportmany
Export multiple tables from the input database -
exportone
Export a single table from the input database
-
-
Library
from expdb import JSON
OBJ = JSON(username = "root", password = "root", database = "test")
EXPORT = OBJ.exportmany(tables = ["users", "sales"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
expdb-1.0.tar.gz
(8.1 kB
view details)
Built Distribution
expdb-1.0-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file expdb-1.0.tar.gz
.
File metadata
- Download URL: expdb-1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4003ab83e1667cbd18856f51dd30c83f5f7b72f10aab0d347d21022f20a74fbc |
|
MD5 | 1785b681ad08303b0aa0f06733443338 |
|
BLAKE2b-256 | 9730498223205f27b37d2e8baaecd1bfdac108b3a220a5bd809a9a0690350c5c |
File details
Details for the file expdb-1.0-py3-none-any.whl
.
File metadata
- Download URL: expdb-1.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a0c40ecda04e6cb89647e9772aac7c772ffc42a287fdbf16be5464bead8b73 |
|
MD5 | 2a446c80c60ab378ae3b45c7c00abbf5 |
|
BLAKE2b-256 | 0cea9dd1c7746fb132c02826c415100d1cbffa433138c37124ad707e9ddf4756 |