Skip to main content

[![Build Status](https://travis-ci.org/glborges/thumbor-cassandra.svg?branch=master)](https://travis-ci.org/glborges/thumbor-cassandra)

Introduction

[Thumbor](https://github.com/globocom/thumbor/wiki) is a smart imaging service. It enables on-demand crop, resizing and flipping of images.

[Apache Cassandra](https://cassandra.apache.org/) is a free and open-source, distributed, wide column store, NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra offers robust support for clusters spanning multiple datacenters,[1] with asynchronous masterless replication allowing low latency operations for all clients.

Installation

In order to install the Apache Cassandra Module for Thumbor, you have to install Apache Cassandra ecosystem first.

## Apache Cassandra installation

The Apache Cassandra Module for Thumbor was originally developed and tested using the Cassandra docker image [Cassandra Official Docker Image](https://hub.docker.com/_/cassandra).

## Thumbor installation

You have to install [Thumbor](https://github.com/globocom/thumbor) following the [Thumbor Installation Guide](https://github.com/globocom/thumbor/wiki/Installing)…

## Apache Cassandra Module installation

… and finally the Apache Cassandra Module :

pip install thumbor_cassandra

Usage

Using it is simple, just change your configuration in thumbor.conf:

CASSANDRA_LOADER_SERVER_HOST = ‘localhost’ CASSANDRA_LOADER_SERVER_PORT = 9042 CASSANDRA_LOADER_KEYSPACE = ‘general’ CASSANDRA_LOADER_TABLE_NAME = ‘images’ CASSANDRA_LOADER_TABLE_ID_COLUMN = ‘image_id’ CASSANDRA_LOADER_TABLE_BLOB_COLUMN = ‘image_data’ CASSANDRA_LOADER_QUERY’ = ‘SELECT * FROM {0} WHERE {1}=%s’

To use thumbor_cassandra for loading original images, change your thumbor.conf to read:

LOADER = ‘thumbor_cassandra.loader’

Testing

In order to execute [pyvows](http://heynemann.github.com/pyvows/) tests, you have to install pyvows :

pip install pyvows

and run tests with :

pyvows vows

License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license Copyright (c) 2019 TMG Digital - Speurders.nl

Release files for thumbor-cassandra 1.0

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-cassandra 1.0
File Size Uploaded
thumbor_cassandra-1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thumbor-cassandra 1.0
File Interpreter ABI Platform
thumbor_cassandra-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / thumbor_cassandra-1.0.tar.gz

Download URL thumbor_cassandra-1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b6723b34fbb4a6741544e9f95713ec71eea9012ee8f3cb6dfe7b184346ceb0
BLAKE2b-256 checksum
How to use checksums
784413afaf636e0a6887e805c4b0b4907adb8d9a22d07550775b1cd110dd9b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.9

Release files / thumbor_cassandra-1.0-py3-none-any.whl

Download URL thumbor_cassandra-1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4da3363110f72dd58bdb4f4ac4dba40e84666d0d76dff86e725d1b29c2c3912
BLAKE2b-256 checksum
How to use checksums
bf79e5e9804052a80b14bf6193e3173e6b912eadbdd70ba8b6a1104b9c05d956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.9

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

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