Tool for conversion of MySQL dumps to TSV format
Project description
About
This module provides the mysqltotsv.Splitter class and a CLI tool to allow conversion of large MySQL dumps to the TSV format.
The module assumes the MySQL dump to be encoded in UTF-8 format.
Install
To install from pypi:
pip3 install --user mysql-to-tsv
Usage
The following command takes a MySQL dump and creates a separate TSV file for each table found inside:
python3.7 mysql-to-tsv.py --file dump.sql --outdir out1
There is also a switch to only process certain tables and skip the rest. Example:
python3.7 mysql-to-tsv.py --file dump.sql --outdir out1 --table-filter=updates,updates_edited
More details about the CLI switches:
usage: mysql-to-tsv.py [-h] --file FILE --outdir OUTDIR
[--table-filter TABLE_FILTER]
Tool for conversion of large MySQL dumps to TSV format
optional arguments:
-h, --help show this help message and exit
--file FILE mysql dump file
--outdir OUTDIR output directory
--table-filter TABLE_FILTER
filtered tables
Support
For questions or requests for paid support, please send an e-mail to business@garage-coding.com
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
mysqltotsv-0.0.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for mysqltotsv-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05391b2f6999e6213ed674530ab9ae7ca954ed7161c93150d93b9e1d1bce1652 |
|
MD5 | 63c83580b2e0a1be801e9a8476f6d3a5 |
|
BLAKE2b-256 | b3d368316918b57a46bddd10d44f340dff244b05389af52864a4c29bd19afabe |