Skip to main content

Piuma Python library with Django support

Project description

Latest Version codecov Build Status License: MIT

A library to use Piuma with Python and Django


pip install pypiuma


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 %}



Disable Piuma core, useful in development.

Default: False


The host of your Piuma instance.

Default: /piuma/


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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pypiuma, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pypiuma-1.0.2-py3-none-any.whl (5.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pypiuma-1.0.2.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page