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 mysqltotsv
Usage
The following command takes a MySQL dump and creates a separate TSV file for each table found inside (the output directory needs to be present):
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
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 mysqltotsv-0.0.4.tar.gz.
File metadata
- Download URL: mysqltotsv-0.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ead078f029b0bd9df098d1a169f84b60a9decf7ab096cc08163e84a4eb64f8ae
|
|
| MD5 |
f8ba02ee99c89b72d271802ce07a052d
|
|
| BLAKE2b-256 |
4fe0dcf903c3e21d7890e4c273b7f4029546303ab0b72190cc1357fac3434e2f
|
File details
Details for the file mysqltotsv-0.0.4-py3-none-any.whl.
File metadata
- Download URL: mysqltotsv-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20e108c5f2b942c536e40324a06a7963edff0748e571761b5641e598a912497d
|
|
| MD5 |
d6a47f21490fd0b87c1f8cbed7cc2758
|
|
| BLAKE2b-256 |
da326891578a29e47bbbc41e7c7328bcd2ca2481f3cdb2619f6f3777705822dd
|