Socket
Socket
Sign inDemoInstall

mysqlqueryresult2dict

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysqlqueryresult2dict

Create dict from MySQL query result text.


Maintainers
1

===================== 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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc