semvec/pypi-packages huggingface dataset:
untestable 1.0.0
A python version of the untestable application at https://bitbucket.org/tcbakes/untestable
License: MIT
Keywords: sample unittest design

Untestable Python System
=======================

A python equivalent of the java application here: https://bitbucket.org/tcbakes/untestable.  The purpose of this project
is to demonstrate how the patterns used in the original Java application can be applied to a python application.
The original Java Untestable project will always be the home for the detailed evolutionary history of the system from its
first spaghetti implementation to final elegant, testable one.  So the deliberate evolutionary steps will not be
repeated here.  For that level of insight, refer to the original project.
mytor 0.2.7
Tornado asynchronous MySQL Driver [fork of TorMysql]
License: MIT
Keywords: tornado,mysql

mytor
=====

.. image:: https://travis-ci.org/mosquito/mytor.svg
    :target: https://travis-ci.org/mosquito/mytor

Tornado asynchronous MySQL Driver.

This if fork of TorMySQL_.

.. _TorMySQL: https://github.com/snower/TorMySQL

About
=====

mytor - presents a Tornado Future-based API and greenlet for
non-blocking access to MySQL.

Installation
============

::

    pip install mytor

Examples
========

::

    import mytor
    from tornado.ioloop import IOLoop
    from tornado.gen import coroutine


    pool = mytor.ConnectionPool(
        max_connections = 20,       #max open connections
        idle_seconds = 7200,        #conntion idle timeout time, 0 is not timeout
        host = "127.0.0.1",
        user = "root",
        passwd = "secret",
        db = "test",
        charset = "utf8"
    )


    @coroutine
    def test():
        with (yield pool.Connection()) as conn:
            with conn.cursor() as cursor:
                yield cursor.execute("SELECT * FROM test")
                datas = cursor.fetchall()

        print datas
        yield pool.close()

    IOLoop.current().run_sync(test)