Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A python client for Github's Camo image proxy

Project Description

A python client for Github’s Camo image proxy.


This package is available on pypi. Installation is as simple as:

pip install camo-client


For individual urls

from camo import CamoClient

client = CamoClient("", key="my camo key")
url = client.image_url("")

For html snippets

from camo import CamoClient

client = CamoClient("", key="my camo key")
html = """\
    Here is a picture:
    <img src="" alt="It's a banana">


For Django

This doesn’t directly ship with a django filter but you can simply add the following snippet to you templatetags

from camo import CamoClient
from django import template
from django.utils.safestring import mark_safe

register = template.Library()

def proxy_images(text):
    client = CamoClient(settings.CAMO_URL, key=settings.CAMO_KEY)
    return client.parse_html(text)


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Ensure the tests pass (nosetests)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(1.5 kB) Copy SHA256 Hash SHA256
Source None Feb 10, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting