Skip to main content

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"])

Release files for expdb 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for expdb 1.0
File Size Uploaded
expdb-1.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for expdb 1.0
File Interpreter ABI Platform
expdb-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / expdb-1.0.tar.gz

Download URL expdb-1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4003ab83e1667cbd18856f51dd30c83f5f7b72f10aab0d347d21022f20a74fbc
BLAKE2b-256 checksum
How to use checksums
9730498223205f27b37d2e8baaecd1bfdac108b3a220a5bd809a9a0690350c5c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / expdb-1.0-py3-none-any.whl

Download URL expdb-1.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3a0c40ecda04e6cb89647e9772aac7c772ffc42a287fdbf16be5464bead8b73
BLAKE2b-256 checksum
How to use checksums
0cea9dd1c7746fb132c02826c415100d1cbffa433138c37124ad707e9ddf4756
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page