Skip to main content

A pure python module (thread safe) to access memcached via it's binary protocol with SASL auth support

Project description

A pure python module (thread safe) to access memcached via it’s binary with SASL auth support.

The main purpose of this module it to be able to communicate with memcached using binary protocol and support authentication, so it can work with Heroku for example.

Latest compiled docs on Read The Docs here.

Installing

Use pip or easy_install.

pip install python-binary-memcached

Using

import bmemcached
client = bmemcached.Client(('127.0.0.1:11211', ), 'user',
                            'password')
client.set('key', 'value')
print client.get('key')

Running the tests

First run memcached with:

memcached -S -vvv
memcached -p5000 -S -vvv
memcached -S -s/tmp/memcached.sock -vvv

This is to cover all tests with socket, standard port and non standard port.

Then, run the tests.

cd src_dir/
py.test

Using with Django

If you want to use it with Django, go to django-bmemcached to get a Django backend.

Tests Status

https://travis-ci.org/jaysonsantos/python-binary-memcached.png?branch=master

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

python-binary-memcached-0.21.tar.gz (80.4 kB view details)

Uploaded Source

File details

Details for the file python-binary-memcached-0.21.tar.gz.

File metadata

File hashes

Hashes for python-binary-memcached-0.21.tar.gz
Algorithm Hash digest
SHA256 5297165200702ae2362119069819343b137a77aee9f41181886b1cf6f4c7ae49
MD5 d639205e643911b050cb656f87db6fa6
BLAKE2b-256 ace8fc504091e21792e75d975f28cef72609e67e6bd788bfa702d8b1cde46d86

See more details on using hashes here.

Supported by

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