dictmysql-0.6.8


توضیحات

A MySQL class for more convenient database manipulations with Python dictionary.
ویژگی مقدار
سیستم عامل -
نام فایل dictmysql-0.6.8
نام dictmysql
نسخه کتابخانه 0.6.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Guangyang Li
ایمیل نویسنده mail@guangyangli.com
آدرس صفحه اصلی https://ligyxy.github.io/DictMySQL/
آدرس اینترنتی https://pypi.org/project/dictmysql/
مجوز MIT
DictMySQL ========= PyPI page: https://pypi.python.org/pypi/dictmysql Documentation: https://git.io/dictmysql Introduction ------------ DictMySQL is a MySQL query builder on the top of `PyMySQL <https://github.com/PyMySQL/PyMySQL>`__. It allows convenient database manipulation with Python dictionary. DictMySQL simplifies and unifies the input/output of MySQL queries, by allowing passing values and conditions in dictionary into database. With DictCursor, you can even have a dict-in, dict-out mysql connector. To install: .. code:: bash pip install dictmysql Quick example: .. code:: python from dictmysql import DictMySQL db = DictMySQL(db='occupation', host='127.0.0.1', user='root', passwd='') db.select(table='jobs', columns=['id','value'], where={'$OR': [{'value': {'$LIKE': 'Artist%'}}, {'id': 10}]}) # SELECT `id`, `value` FROM `jobs` WHERE (`value` LIKE "Artist%") OR (`id` = 10); With DictCursor: .. code:: python from dictmysql import DictMySQL, cursors db = DictMySQL(db='occupation', host='127.0.0.1', user='root', passwd='', cursorclass=cursors.DictCursor) db.select(table='jobs', columns=['id','value'], limit=2) # returns [{u'id': 1, u'value': u'Artist'}, {u'id': 2, u'value': u'Engineer'}] Future Works ------------ 1. Full support of CRUD 2. Better documents License ------- DictMySQL uses the MIT license, see ``LICENSE`` file for the details.


نحوه نصب


نصب پکیج whl dictmysql-0.6.8:

    pip install dictmysql-0.6.8.whl


نصب پکیج tar.gz dictmysql-0.6.8:

    pip install dictmysql-0.6.8.tar.gz