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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size python-binary-memcached-0.23.tar.gz (81.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for python-binary-memcached-0.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42085c098376c087dfdd7bdcfb561b5f5374681ba21ee326bd73d690bddeaba1 |
|
MD5 | e4a1aceef95d9fffcfd002b2e3875bfb |
|
BLAKE2-256 | 9a8e7398715d03fc4728d7af214bc5ebc71e3da12f2053616baf7e58f33ad157 |