Skip to main content

pywe-storage

Wechat Storage Module for Python.

Installation

pip install pywe-storage

Usage

MemoryStorage:

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}

RedisStorage:

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}'

Method

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

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

Metadata

Release files for pywe-storage 1.0.1

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

Source distribution (sdist)

Source distribution for pywe-storage 1.0.1
File Size Uploaded Provenance Actions
pywe-storage-1.0.1.tar.gz 2.3 kB Without provenance Details for pywe-storage-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywe-storage 1.0.1
File Interpreter ABI Platform Actions
pywe_storage-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for pywe_storage-1.0.1-py2.py3-none-any.whl

Total release size: 7.7 kB

Release files / pywe-storage-1.0.1.tar.gz

Download URL pywe-storage-1.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2a0a70d436633d6eb14f1730812dea1af0f3c8e98bf4d8610555942362e354c4
BLAKE2b-256 checksum
How to use checksums
3bc280eb273950cfef6051386587c333feaf26f7f40525c19e120129984d72f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pywe_storage-1.0.1-py2.py3-none-any.whl

Download URL pywe_storage-1.0.1-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8369bbccb41ae923a5558a1fa61a02054ba1aafb083835f98f92cbba89155735
BLAKE2b-256 checksum
How to use checksums
bb16a7b241c6e052b72ab5cdc173b22c4511e72e6a3a59d84adde459a81c3172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pywe-storage 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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