Skip to main content

Generate signed URLs for Camo image proxy

Project description

Camo sign

https://travis-ci.org/BKNO3/camo-sign.svg?branch=master

Create signed URLs for use with camo.

Installation

pip install camo-sign

Example usage

>>> base_url = 'https://camo.example.com/'
>>> secret_key = b'OMGWTFBBQ'
>>> image_url = 'http://example.com/img.jpg'

>>> create_signed_url(base_url, secret_key, image_url)
https://camo.example.com/22fd0910eeefa6db9d4b105aa92c56d09bccf05f/687474703a2f2f6578616d706c652e636f6d2f696d672e6a7067'

Changes

v0.1

  • Support generating signed URLs for camo.

Project details


Download files

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

Source Distribution

camo-sign-0.1.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

camo_sign-0.1.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page