Python Library and CLI for exporting MySQL databases
Project description
expdb
Python library and CLI for exporting MySQL databases
Installation
-
Pre-requisites
MySQL serverPython 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-
exportallExports all tables in the input database -
exportdbExport a whole database in SQL format -
exportmanyExport multiple tables from the input database -
exportoneExport 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
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 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
|