Skip to main content
Thumbor URL Aliases plugin
==========================
.. image:: https://travis-ci.org/bluekiri/thumbor-aliases.svg?branch=master
**thumbor_aliases** let's you create custom urls to redirect your most-used request
using a friendly url.

Imagine that your company decides that all thumbnails should go to ``100x100/smart``.

Wouldn't be awesome to just name this url: ``thumbnail``? So, if you need to change
it later, you can even just modify the alias to point to ``200x200/smart`` instead,
without having to change your application code.


Install
^^^^^^^^^^
Before installing, be sure you're using Python2.7 (Python3 isn't supported yet).

Install it by using pip::

$ pip install thumbor-aliases

Easy, right?

Configure
^^^^^^^^^
Create, if not done yet, your thumbor config file::

$ thumbor-config > config.cfg

And enable **thumbor_aliases** plugin on community extensions. This can be done by
just adding next lines at the end of configuration file::

COMMUNITY_EXTENSIONS = [
'thumbor_aliases',
...
]

By default it will use the ``yaml_file`` storage handler, which reads a file located on ``~/aliases.yml``.

In case you want to change the file location, you can set the config variable: ``ALIASES_STORAGE_FILE`` ::

ALIASES_STORAGE_FILE = "~/your_custom_filename.yml"

The YAML file should follow next format::

alias: "url/to/redirect"

For example::

thumbnail: "100x100/smart"
header: "800x200/smart"

And in order to finally execute the app and let the magic happen, run next command::

$ thumbor --conf=your_thumbor_config.cfg -a tc_core.app.App

Metadata

Release files for thumbor-aliases 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thumbor-aliases 0.0.3
File Size Uploaded
thumbor_aliases-0.0.3.tar.gz 3.6 kB Details

Release files / thumbor_aliases-0.0.3.tar.gz

Download URL thumbor_aliases-0.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0488dc2243e840bb70b798153d4d7e8ade7d86367d66043bfb2d6edc378f3be7
BLAKE2b-256 checksum
How to use checksums
d2e1095fd8d266de33f5c93c9113247ca1bd7211bf2ec8b395248330f3b07001
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page