Metadata-Version: 1.1
Name: django-sheets
Version: 0.1.2
Summary: Use Google Sheets as context variables in Django templates
Home-page: https://github.com/georgewhewell/django-sheets
Author: George Whewell
Author-email: georgerw@gmail.com
License: BSD
Description: =============================
        django-sheets
        =============================
        
        Use Google Sheets as context variables in Django templates
        
        .. image:: https://badge.fury.io/py/django-sheets.png
            :target: https://badge.fury.io/py/django-sheets
        
        .. image:: https://travis-ci.org/georgewhewell/django-sheets.png?branch=master
            :target: https://travis-ci.org/georgewhewell/django-sheets
        
        .. image:: https://coveralls.io/repos/georgewhewell/django-sheets/badge.png?branch=master
            :target: https://coveralls.io/r/georgewhewell/django-sheets?branch=master
            
        .. image:: https://requires.io/github/georgewhewell/django-sheets/requirements.svg?branch=master
             :target: https://requires.io/github/georgewhewell/django-sheets/requirements/?branch=master
             :alt: Requirements Status
        
        Usage
        _____________
        
        In your template::
        
            {% load sheets %}
            {% csv "1uPsdcGUnUsf3d2xGHRGUUb7_k5IQPtBvfQY61u8Z8wE" as data %}
            <table>
                <thead>
                    <tr>
                    {% for header in data.headers %}
                        <th>{{ header }}</th>
                    {% endfor %}
                    </tr>
                </thead>
                <tbody>
                    {% for row in data.rows %}
                    <tr>
                        {% for cell in row %}
                            <td>{{ cell }}</td>
                        {% endfor %}
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            
        
        View the output, you should see
        
        =================================  =======================  ====================  =======================
        **Origin (English)**               **Name (English)**       **Origin (Native)**   **Name (Native)**
        Australia                          Nicole Kidman            Australia             Nicole Kidman
        Austria                            Johann Strauss           Österreich            Johann Strauß
        Belgium (Flemish)                  Rene Magritte            België                René Magritte
        Belgium (French)                   Rene Magritte            Belgique              René Magritte
        Belgium (German)                   Rene Magritte            Belgien               René Magritte
        =================================  =======================  ====================  =======================
        
        Documentation
        -------------
        
        Documentation is available at https://django-sheets.readthedocs.org.
        
        
        
        
        History
        -------
        
        0.1.2 (2014-24-03)
        ++++++++++++++++++
        
        * Added gid parameter for multi-sheet documents
        
        0.1.1 (2014-22-01)
        ++++++++++++++++++
        
        * Added .headers and .rows methods (aliases for [0] and [1:])
        
        0.1.0 (2014-18-01)
        ++++++++++++++++++
        
        * First release on PyPI.
        
Keywords: django-sheets
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
