Skip to main content

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

This version

1.0

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 hashes)

Uploaded Source

Built Distribution

expdb-1.0-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page