Metadata-Version: 2.0
Name: pypiuma
Version: 1.0.1
Summary: Piuma Python library with Django support
Home-page: UNKNOWN
Author: Lotrèk
Author-email: dimmitutto@lotrek.it
License: MIT
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3

PyPiuma
=======

|Latest Version| |codecov| |Build Status| |License: MIT|

A library to use Piuma with Python and Django

Install
-------

::

    pip install pypiuma

Usage
-----

::

    from pypiuma import piuma_url

    piuma_url("http://mypiumahost", "http://myimagehost/static/img/a.png", 200, 200, 80)

Usage with Django
-----------------

::

    {% load pypiuma_tags %}

    <img src="{% piuma 'http://myimagehost/static/img/a.png' width=200 %}">
    <img src="{% piuma_static 'img/mylogo.png' width=200 %}">

Picture tags
------------

::

    {% load pypiuma_tags %}

    {% piuma_picture 'http://myimagehost/static/img/a.png'%}
    {% piuma_picture_static 'img/a.png' width=200 %}

Settings
--------

PIUMA\_DISABLED
~~~~~~~~~~~~~~~

Disable Piuma core, useful in development.

Default: ``False``

PIUMA\_HOST
~~~~~~~~~~~

The host of your Piuma instance.

Default: ``/piuma/``

PIUMA\_MEDIA\_RULES
~~~~~~~~~~~~~~~~~~~

Media rules for picture tags.

Default:
``(max-width: 576px),(max-width: 768px),(max-width: 992px),(max-width: 1366px)``

Run tests
---------

::

    pip install -r requirements-dev.txt
    make test

.. |Latest Version| image:: https://img.shields.io/pypi/v/pypiuma.svg
   :target: https://pypi.python.org/pypi/pypiuma/
.. |codecov| image:: https://codecov.io/gh/piumaio/pypiuma/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/piumaio/pypiuma
.. |Build Status| image:: https://travis-ci.org/piumaio/pypiuma.svg?branch=master
   :target: https://travis-ci.org/piumaio/pypiuma
.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-blue.svg
   :target: https://github.com/piumaio/pypiuma/blob/master/LICENSE


