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.
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 | 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
File details
Details for the file mysqlqueryresult2dict-0.0.1.tar.gz.
File metadata
- Download URL: mysqlqueryresult2dict-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62543edbdee182b5add11d81cbe47b36d6e718afac2ee1a60ea34336a87de7b3
|
|
| MD5 |
14c3a74fcbcaff7b3d2cb725d7c98452
|
|
| BLAKE2b-256 |
46256e8313f8597a2f8c2ad355834b5750a51f1563943aa9a26dad6fce949624
|