Metadata-Version: 2.0
Name: dodotable
Version: 0.1.1
Summary: dodotable
Home-page: UNKNOWN
Author: Kang Hyojun
Author-email: ed@spoqa.com
License: MIT
Platform: UNKNOWN
Requires-Dist: Flask
Requires-Dist: Jinja2
Requires-Dist: SQLAlchemy
Requires-Dist: setuptools
Requires-Dist: six (>=1.10.0,<2.0.0)
Provides-Extra: tests
Requires-Dist: flake8; extra == 'tests'
Requires-Dist: import-order; extra == 'tests'
Requires-Dist: lxml; extra == 'tests'
Requires-Dist: pytest (>=2.7.0); extra == 'tests'
Requires-Dist: tox (>=2.1.1); extra == 'tests'

dodotable
=========

HTML table representation for `SQLAlchemy`_ .

.. _SQLAlchemy: http://www.sqlalchemy.org/


SQLAlchemy to ``<table>``
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: python

   from dodotable.schema import Table

   table = Table(
       cls=Music,
       label='music table',
       columns=[
           Column(attr='id', label=u'id'),
           Column(attr='name', label=u'name'),
       ],
       sqlalchemy_session=session
   )
   print(table.select(offset=0, limit=10).__html__())


