Metadata-Version: 1.1
Name: lorm
Version: 0.2.10
Summary: A light weight python ORM without models.
Home-page: https://github.com/zii/lorm
Author: zii
Author-email: gamcat@gmail.com
License: MIT
Description: Lorm: Python ORM without models.
        =================================
        
        .. image:: https://img.shields.io/pypi/v/lorm.svg
            :target: https://pypi.python.org/pypi/lorm
        
        Lorm is a light weight ORM library for Python, model-less, Django style lookup expressions. It's very suitable for small scripts. 
        
        
        Installation
        ------------
        The last stable release is available on PyPI and can be installed with ``pip``::
        
            $ pip install lorm
        
        Example
        -------
        .. code:: sql
        
            CREATE TABLE `pets` (
              `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
              `name` varchar(20) NOT NULL DEFAULT '',
              `add_time` datetime DEFAULT NULL,
              PRIMARY KEY (`id`)
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
        
        .. code:: python
        
            >>> c = lorm.mysql_connect('localhost', 3306, 'root', 'root', 'test')
            >>> id = c.pets.create(name='cat')
            1
            >>> c.pets.get(id=id)
            {u'id': 2, u'name': u'cat'}
        
        For more examples, see `test.py <https://github.com/zii/lorm/blob/master/test.py>`_ and source code.
        
        Features
        --------
        - No Model, use table name directly.
        - Auto reconnect
        - Connection pool
        - Django style lookup expressions
        - Threading safe
        
        
        Requirements
        ------------
        - pymysql
        
Keywords: orm
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
