Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Wechat Storage Module for Python.

Project description

Wechat Storage Module for Python.


pip install pywe-storage



In [1]: from pywe_storage import MemoryStorage

In [2]: storage = MemoryStorage()

In [3]: storage.set('xx:oo', {'a': 1, 'b': 2})

In [4]: storage.get('xx:oo')
Out[4]: {'a': 1, 'b': 2}


In [1]: import redis_extensions as redis

In [2]: r = redis.StrictRedisExtensions(host='localhost', port=6379, db=0)

In [3]: from pywe_storage import RedisStorage

In [4]: storage = RedisStorage(r)

In [5]: storage.set('xx:oo', {'a': 1, 'b': 2})

In [6]: storage.get('xx:oo')
Out[6]: {u'a': 1, u'b': 2}

In [7]: r.get('pywe:xx:oo')
Out[7]: '{"a": 1, "b": 2}'


class MemoryStorage(BaseStorage):
    def __init__(self, prefix='pywe'):

class RedisStorage(BaseStorage):
    def __init__(self, redis, prefix='pywe'):

Project details

Download files

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

Files for pywe-storage, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pywe_storage-1.0.1-py2.py3-none-any.whl (5.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pywe-storage-1.0.1.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page