Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Create dict from MySQL query result text.

Project description

=====================
mysqlqueryresult2dict
=====================


Description
===========

Create dict from MySQL query result text.
python port of https://github.com/koyachi/ruby-hash-from_mysql_query_result .

Example
=======

.. code:: python
import mysqlqueryresult2dict

DATA = '''mysql> SELECT * FROM foo;
+----+-------+
| id | value |
+----+-------+
| 1 | A |
| 2 | b |
| 3 | C |
+----+-------+
3 rows in set (0.01 sec)


dict = mysqlqueryresult2dict.parse_text(DATA)
print dict

Author
======

koyachi, rtk2106@gmail.com

License
=======

mysqlquery2dict is avairable under the MIT license. See the LICENSE file for more info.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mysqlqueryresult2dict, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mysqlqueryresult2dict-0.0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page